Skip to content

Commit

Permalink
Add policies to exec role
Browse files Browse the repository at this point in the history
  • Loading branch information
ha7315 committed Oct 15, 2024
1 parent 2dfde2b commit 1fe723d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/postgres-etl/extract/extract_iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ resource "aws_iam_role_policy" "bucket_access__postgres_etl_extract" {

resource "aws_iam_role_policy" "ecs_exec_policy__postgres_etl_extract" {
name = "ecs_exec_policy_extract"
role = module.extract_task.task_role_name
role = var.ecs_extract_execution_role.name
policy = data.aws_iam_policy_document.ecs_exec_policy.json
}
2 changes: 1 addition & 1 deletion modules/postgres-etl/load/load_iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ resource "aws_iam_role_policy" "bucket_access__postgres_etl_load" {

resource "aws_iam_role_policy" "ecs_exec_policy__postgres_etl_load" {
name = "ecs_exec_policy_load"
role = module.load_task.task_role_name
role = var.ecs_load_execution_role.name
policy = data.aws_iam_policy_document.ecs_exec_policy.json
}

0 comments on commit 1fe723d

Please sign in to comment.