Skip to content

Commit 56c592d

Browse files
committed
Removing provider block
1 parent eb0013b commit 56c592d

File tree

4 files changed

+16
-21
lines changed

4 files changed

+16
-21
lines changed

.circleci/config.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,9 @@ jobs:
55
- image: hashicorp/terraform
66
steps:
77
- checkout
8-
- run: terraform init
9-
- run: terraform validate
8+
- run:
9+
working_directory: examples/test
10+
command: terraform init
11+
- run:
12+
working_directory: examples/test
13+
command: terraform validate

examples/test/main.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
provider "aws" {
2+
region = "us-east-1"
3+
}
4+
5+
module "td" {
6+
source = "../../"
7+
name_preffix = "test"
8+
container_image = "ubuntu"
9+
container_name = "test"
10+
}

main.tf

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
# ---------------------------------------------------------------------------------------------------------------------
2-
# PROVIDER
3-
# ---------------------------------------------------------------------------------------------------------------------
4-
provider "aws" {
5-
profile = var.profile
6-
region = var.region
7-
}
8-
91
# ---------------------------------------------------------------------------------------------------------------------
102
# AWS ECS Task Execution Role
113
# ---------------------------------------------------------------------------------------------------------------------

variables.tf

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,6 @@ variable "name_preffix" {
55
description = "Name preffix for resources on AWS"
66
}
77

8-
# ---------------------------------------------------------------------------------------------------------------------
9-
# AWS CREDENTIALS AND REGION
10-
# ---------------------------------------------------------------------------------------------------------------------
11-
variable "profile" {
12-
description = "AWS API key credentials to use"
13-
}
14-
15-
variable "region" {
16-
description = "AWS Region the infrastructure is hosted in"
17-
}
18-
198
# ---------------------------------------------------------------------------------------------------------------------
209
# AWS ECS Container Definition Variables
2110
# ---------------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)