Skip to content

Commit e47cffd

Browse files
authored
Add full for volume configuration (#20)
1 parent 5e12c99 commit e47cffd

File tree

6 files changed

+48
-12
lines changed

6 files changed

+48
-12
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v3.1.0
3+
rev: v3.2.0
44
hooks:
55
- id: check-added-large-files
66
args: ['--maxkb=500']
@@ -18,7 +18,7 @@ repos:
1818
args: ['--allow-missing-credentials']
1919
- id: trailing-whitespace
2020
- repo: git://github.com/antonbabenko/pre-commit-terraform
21-
rev: v1.30.0
21+
rev: v1.31.0
2222
hooks:
2323
- id: terraform_fmt
2424
- id: terraform_docs

CHANGELOG.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,25 @@ All notable changes to this project will be documented in this file.
77

88

99

10+
<a name="3.0.2"></a>
11+
## [3.0.2] - 2020-07-30
12+
13+
- Add task definition and execution role outputs ([#19](https://github.com/umotif-public/terraform-aws-ecs-fargate/issues/19))
14+
15+
16+
<a name="3.0.1"></a>
17+
## [3.0.1] - 2020-06-23
18+
19+
- Update variables.tf
20+
21+
22+
<a name="3.0.0"></a>
23+
## [3.0.0] - 2020-05-22
24+
25+
- Lock minimum version of provider and add force_new_deployment ([#18](https://github.com/umotif-public/terraform-aws-ecs-fargate/issues/18))
26+
- update changelog and versions
27+
28+
1029
<a name="2.0.0"></a>
1130
## [2.0.0] - 2020-05-20
1231

@@ -110,7 +129,10 @@ All notable changes to this project will be documented in this file.
110129
- Initial commit
111130

112131

113-
[Unreleased]: https://github.com/umotif-public/terraform-aws-ecs-fargate/compare/2.0.0...HEAD
132+
[Unreleased]: https://github.com/umotif-public/terraform-aws-ecs-fargate/compare/3.0.2...HEAD
133+
[3.0.2]: https://github.com/umotif-public/terraform-aws-ecs-fargate/compare/3.0.1...3.0.2
134+
[3.0.1]: https://github.com/umotif-public/terraform-aws-ecs-fargate/compare/3.0.0...3.0.1
135+
[3.0.0]: https://github.com/umotif-public/terraform-aws-ecs-fargate/compare/2.0.0...3.0.0
114136
[2.0.0]: https://github.com/umotif-public/terraform-aws-ecs-fargate/compare/1.4.0...2.0.0
115137
[1.4.0]: https://github.com/umotif-public/terraform-aws-ecs-fargate/compare/1.3.0...1.4.0
116138
[1.3.0]: https://github.com/umotif-public/terraform-aws-ecs-fargate/compare/1.2.0...1.3.0

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Terraform module to create AWS ECS FARGATE services. Module support both FARGATE
44

55
## Terraform versions
66

7-
Terraform 0.12. Pin module version to `~> v3.0`. Submit pull-requests to `master` branch.
7+
Terraform 0.12. Pin module version to `~> v4.0`. Submit pull-requests to `master` branch.
88

99
## Usage
1010

@@ -28,7 +28,7 @@ resource "aws_ecs_cluster" "cluster" {
2828
2929
module "ecs-farage" {
3030
source = "umotif-public/ecs-fargate/aws"
31-
version = "~> 3.0.0"
31+
version = "~> 4.0.0"
3232
3333
name_prefix = "ecs-fargate-example"
3434
vpc_id = "vpc-abasdasd132"
@@ -75,13 +75,13 @@ Module managed by [Marcin Cuber](https://github.com/marcincuber) [LinkedIn](http
7575

7676
| Name | Version |
7777
|------|---------|
78-
| aws | ~> 2.63 |
78+
| aws | ~> 2.68 |
7979

8080
## Providers
8181

8282
| Name | Version |
8383
|------|---------|
84-
| aws | ~> 2.63 |
84+
| aws | ~> 2.68 |
8585
| null | n/a |
8686

8787
## Inputs
@@ -139,12 +139,16 @@ Module managed by [Marcin Cuber](https://github.com/marcincuber) [LinkedIn](http
139139

140140
| Name | Description |
141141
|------|-------------|
142+
| execution\_role\_arn | The Amazon Resource Name (ARN) specifying the ECS execution role. |
143+
| execution\_role\_name | The name of the ECS execution role. |
142144
| log\_group\_name | The name of the Cloudwatch log group for the task. |
143145
| service\_arn | The Amazon Resource Name (ARN) that identifies the ECS service. |
144146
| service\_name | The name of the service. |
145147
| service\_sg\_id | The Amazon Resource Name (ARN) that identifies the service security group. |
146148
| target\_group\_arn | The ARN of the Target Group used by Load Balancer. |
147149
| target\_group\_name | The Name of the Target Group used by Load Balancer. |
150+
| task\_definition\_arn | The Amazon Resource Name (ARN) of the task definition created |
151+
| task\_definition\_name | The name of the task definition created |
148152
| task\_role\_arn | The Amazon Resource Name (ARN) specifying the ECS service role. |
149153
| task\_role\_name | The name of the Fargate task service role. |
150154

main.tf

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,18 @@ EOF
237237
dynamic "efs_volume_configuration" {
238238
for_each = lookup(volume.value, "efs_volume_configuration", [])
239239
content {
240-
file_system_id = lookup(efs_volume_configuration.value, "file_system_id", null)
241-
root_directory = lookup(efs_volume_configuration.value, "root_directory", null)
240+
file_system_id = lookup(efs_volume_configuration.value, "file_system_id", null)
241+
root_directory = lookup(efs_volume_configuration.value, "root_directory", null)
242+
transit_encryption = lookup(efs_volume_configuration.value, "transit_encryption", null)
243+
transit_encryption_port = lookup(efs_volume_configuration.value, "transit_encryption_port", null)
244+
245+
dynamic "authorization_config" {
246+
for_each = length(lookup(efs_volume_configuration.value, "authorization_config")) == 0 ? [] : [lookup(efs_volume_configuration.value, "authorization_config", {})]
247+
content {
248+
access_point_id = lookup(authorization_config.value, "access_point_id", null)
249+
iam = lookup(authorization_config.value, "iam", null)
250+
}
251+
}
242252
}
243253
}
244254
}

outputs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ output "execution_role_name" {
5050

5151
output "task_definition_arn" {
5252
description = "The Amazon Resource Name (ARN) of the task definition created"
53-
value = aws_ecs_task_definition.task.arn
53+
value = aws_ecs_task_definition.task.arn
5454
}
5555

5656
output "task_definition_name" {
5757
description = "The name of the task definition created"
58-
value = aws_ecs_task_definition.task.arn
58+
value = aws_ecs_task_definition.task.arn
5959
}

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
terraform {
22
required_providers {
3-
aws = "~> 2.63"
3+
aws = "~> 2.68"
44
}
55
}

0 commit comments

Comments
 (0)