Skip to content

Commit 66d5e3e

Browse files
committed
feat: Add support for EBS volumes
1 parent 77ae067 commit 66d5e3e

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

examples/ec2-autoscaling/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ No inputs.
7373
| <a name="output_service_iam_role_name"></a> [service\_iam\_role\_name](#output\_service\_iam\_role\_name) | Service IAM role name |
7474
| <a name="output_service_iam_role_unique_id"></a> [service\_iam\_role\_unique\_id](#output\_service\_iam\_role\_unique\_id) | Stable and unique string identifying the service IAM role |
7575
| <a name="output_service_id"></a> [service\_id](#output\_service\_id) | ARN that identifies the service |
76+
| <a name="output_service_infrastructure_iam_role_arn"></a> [service\_infrastructure\_iam\_role\_arn](#output\_service\_infrastructure\_iam\_role\_arn) | Infrastructure IAM role ARN |
77+
| <a name="output_service_infrastructure_iam_role_name"></a> [service\_infrastructure\_iam\_role\_name](#output\_service\_infrastructure\_iam\_role\_name) | Infrastructure IAM role name |
7678
| <a name="output_service_name"></a> [service\_name](#output\_service\_name) | Name of the service |
7779
| <a name="output_service_task_definition_arn"></a> [service\_task\_definition\_arn](#output\_service\_task\_definition\_arn) | Full ARN of the Task Definition (including both `family` and `revision`) |
7880
| <a name="output_service_task_definition_revision"></a> [service\_task\_definition\_revision](#output\_service\_task\_definition\_revision) | Revision of the task in a particular family |

examples/ec2-autoscaling/outputs.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,13 @@ output "service_autoscaling_scheduled_actions" {
130130
description = "Map of autoscaling scheduled actions and their attributes"
131131
value = module.ecs_service.autoscaling_scheduled_actions
132132
}
133+
134+
output "service_infrastructure_iam_role_arn" {
135+
description = "Infrastructure IAM role ARN"
136+
value = module.ecs_service.infrastructure_iam_role_arn
137+
}
138+
139+
output "service_infrastructure_iam_role_name" {
140+
description = "Infrastructure IAM role name"
141+
value = module.ecs_service.infrastructure_iam_role_name
142+
}

modules/service/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,8 @@ module "ecs_service" {
346346
| <a name="output_iam_role_name"></a> [iam\_role\_name](#output\_iam\_role\_name) | Service IAM role name |
347347
| <a name="output_iam_role_unique_id"></a> [iam\_role\_unique\_id](#output\_iam\_role\_unique\_id) | Stable and unique string identifying the service IAM role |
348348
| <a name="output_id"></a> [id](#output\_id) | ARN that identifies the service |
349+
| <a name="output_infrastructure_iam_role_arn"></a> [infrastructure\_iam\_role\_arn](#output\_infrastructure\_iam\_role\_arn) | Infrastructure IAM role ARN |
350+
| <a name="output_infrastructure_iam_role_name"></a> [infrastructure\_iam\_role\_name](#output\_infrastructure\_iam\_role\_name) | Infrastructure IAM role name |
349351
| <a name="output_name"></a> [name](#output\_name) | Name of the service |
350352
| <a name="output_security_group_arn"></a> [security\_group\_arn](#output\_security\_group\_arn) | Amazon Resource Name (ARN) of the security group |
351353
| <a name="output_security_group_id"></a> [security\_group\_id](#output\_security\_group\_id) | ID of the security group |

modules/service/outputs.tf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,17 @@ output "security_group_id" {
155155
description = "ID of the security group"
156156
value = try(aws_security_group.this[0].id, null)
157157
}
158+
159+
############################################################################################
160+
# ECS infrastructure IAM role
161+
############################################################################################
162+
163+
output "infrastructure_iam_role_arn" {
164+
description = "Infrastructure IAM role ARN"
165+
value = try(aws_iam_role.infrastructure_iam_role[0].arn, null)
166+
}
167+
168+
output "infrastructure_iam_role_name" {
169+
description = "Infrastructure IAM role name"
170+
value = try(aws_iam_role.infrastructure_iam_role[0].name, null)
171+
}

0 commit comments

Comments
 (0)