Skip to content

Commit 8b0cb21

Browse files
committed
Arquivos separados e link para Makefile
1 parent 8202a2e commit 8b0cb21

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

providers/aws/simple/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../Makefile

providers/aws/simple/ec2.tf

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
variable "aws" {
2-
type = map
3-
4-
default = {
5-
region = "us-east-1"
6-
profile = "example-company"
7-
}
8-
}
9-
10-
provider "aws" {
11-
region = "${var.aws["region"]}"
12-
profile = "${var.aws["profile"]}"
13-
}
14-
151
resource "aws_instance" "web" {
162
ami = "ami-0378588b4ae11ec24"
173
instance_type = "t2.micro"

providers/aws/simple/provider.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
provider "aws" {
2+
region = "${var.aws["region"]}"
3+
profile = "${var.aws["profile"]}"
4+
}

providers/aws/simple/variables.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
variable "aws" {
2+
type = map
3+
4+
default = {
5+
region = "us-east-1"
6+
profile = "example-company"
7+
}
8+
}

0 commit comments

Comments
 (0)