Skip to content

Commit

Permalink
Allowing task execution policy to also be provided
Browse files Browse the repository at this point in the history
  • Loading branch information
chipbell4 committed Feb 20, 2025
1 parent 7b722ee commit 7b58beb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions optional.tf
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,12 @@ variable "role_policy_json" {
type = string
}

variable "task_execution_role_policy_json" {
description = "IAM policy to attach to task execution role used for this task"
default = null
type = string
}

variable "enable_execute_command" {
description = "Enables `ecs exec`. If null, will enable if not on prod"
default = null
Expand Down
3 changes: 2 additions & 1 deletion task.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ module "task" {
mesh_name = var.mesh_name
virtual_gateway = var.virtual_gateway

role_policy_json = var.role_policy_json
role_policy_json = var.role_policy_json
task_execution_role_policy_json = var.task_execution_role_policy_json

service_name = local.name
task_family = local.task_family
Expand Down

0 comments on commit 7b58beb

Please sign in to comment.