Skip to content

Commit 0649a56

Browse files
ci: AWS_DEFAULT_REGION environment variable (#36)
* add efs vol support * fix tests? * ci: hard-code AWS region in actions workflow Co-authored-by: Kevin Mahoney <[email protected]>
1 parent 4d34b3d commit 0649a56

File tree

6 files changed

+10
-4
lines changed

6 files changed

+10
-4
lines changed

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ jobs:
22
lint:
33
env:
44
AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}"
5-
AWS_DEFAULT_REGION: "${{ secrets.AWS_DEFAULT_REGION }}"
5+
AWS_DEFAULT_REGION: us-east-1
66
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
77
runs-on: ubuntu-latest
88
steps:

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ jobs:
22
test:
33
env:
44
AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}"
5-
AWS_DEFAULT_REGION: "${{ secrets.AWS_DEFAULT_REGION }}"
5+
AWS_DEFAULT_REGION: us-east-1
66
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
77
runs-on: ubuntu-latest
88
steps:

main.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,13 @@ resource "aws_ecs_task_definition" "ecs_task_definition" {
170170
scope = lookup(docker_volume_configuration.value, "scope", null)
171171
}
172172
}
173+
dynamic "efs_volume_configuration" {
174+
for_each = lookup(volume.value, "efs_volume_configuration", [])
175+
content {
176+
file_system_id = lookup(efs_volume_configuration.value, "file_system_id", null)
177+
root_directory = lookup(efs_volume_configuration.value, "root_directory", null)
178+
}
179+
}
173180
}
174181
}
175182

terraform.tfvars

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/terraform_ecs_task_definition_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func TestSingleContainerDefinition(t *testing.T) {
1717
t.Parallel()
1818
options := &terraform.Options{
1919
TerraformDir: "..",
20-
VarFiles: []string{"varfile.tfvars"},
20+
VarFiles: []string{"test/varfile.tfvars"},
2121
}
2222
defer terraform.Destroy(t, options)
2323
terraform.InitAndApply(t, options)
File renamed without changes.

0 commit comments

Comments
 (0)