File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
terraform/modules/department Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -960,3 +960,14 @@ resource "aws_iam_policy_document" "department_ecs_policy" {
960960 policy = data. aws_iam_policy_document . department_ecs . json
961961 tags = var. tags
962962}
963+
964+ data "aws_iam_policy_document" "ecs_assume_role_policy" {
965+ statement {
966+ effect = " allow"
967+ principals {
968+ identifiers = [" ecs-tasks.amazonaws.com" ]
969+ type = " Service"
970+ }
971+ actions = " sts:AssumeRole"
972+ }
973+ }
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ resource "aws_secretsmanager_secret_version" "airflow_user_secret_version" {
143143# Department ECS
144144resource "aws_iam_role" "department_ecs_role" {
145145 name = lower (" ${ var . identifier_prefix } -glue-${ local . department_identifier } " )
146- assume_role_policy = data. aws_iam_policy_document . department
146+ assume_role_policy = data. aws_iam_policy_document . ecs_assume_role_policy . json
147147 tags = var. tags
148148}
149149
You can’t perform that action at this time.
0 commit comments