-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
43 lines (33 loc) · 859 Bytes
/
main.tf
File metadata and controls
43 lines (33 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
## PUT TERRAFORM CLOUD BLOCK HERE! ##
terraform {
cloud {
organization = "Rodri"
workspaces {
name = "lesson-11"
}
}
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.01"
}
}
}
# Variable blocks directly within the main.tf. No arguments necessary.
# variable "aws_access_key" {}
# variable "aws_secret_key" {}
variable "region" {}
# provider arguments call on the variables which then call on terraform.tfvars for the values.
provider "aws" {
# access_key = var.aws_access_key
# secret_key = var.aws_secret_key
region = var.region
}
# Add .gitignore file in this directory with the terraform.tfvars
# resource "aws_instance" "tc_instance" {
# ami = "ami-0e872aee57663ae2d"
# instance_type = "t2.micro"
# tags = {
# Name = "TC-triggered-instance"
# }
# }