Skip to content

Commit c7f5810

Browse files
authored
Merge pull request #4 from silinternational/feature-execution-role
Added execution role in the module
2 parents 2897d0e + d6f667e commit c7f5810

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ resource "aws_ecs_task_definition" "td" {
1313
family = "${var.service_name}-${var.service_env}"
1414
container_definitions = var.container_def_json
1515
task_role_arn = var.task_role_arn
16+
execution_role_arn = var.execution_role_arn
1617
network_mode = var.network_mode
1718

1819
dynamic "volume" {

variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,9 @@ variable "ordered_placement_strategy" {
8585
field = "instanceId"
8686
}]
8787
}
88+
89+
variable "execution_role_arn" {
90+
description = "The IAM role that allows ECS to make AWS API calls on your behalf, such as to pull container images from ECR when using Fargate or to reference secrets from SSM Parameter Store."
91+
type = string
92+
default = ""
93+
}

0 commit comments

Comments
 (0)