Skip to content

Commit

Permalink
ECR policies
Browse files Browse the repository at this point in the history
  • Loading branch information
ha7315 committed Oct 15, 2024
1 parent d6cfe13 commit 28b75d9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion modules/postgres-etl/extract/etl_policies.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ data "aws_iam_policy_document" "ecs_exec_policy" {
}
}

data "aws_iam_policy_document" "etl_policy" {
data "aws_iam_policy_document" "ecr_policy" {
version = "2012-10-17"

statement {
Expand Down Expand Up @@ -201,3 +201,8 @@ resource "aws_iam_role_policy" "logging" {
role = var.ecs_extract_execution_role.name
policy = data.aws_iam_policy_document.logging_policy.json
}

resource "aws_iam_role_policy" "ecr" {
role = var.ecs_extract_execution_role.name
policy = data.aws_iam_policy_document.ecr_policy.json
}
7 changes: 6 additions & 1 deletion modules/postgres-etl/load/etl_policies.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ data "aws_iam_policy_document" "ecs_exec_policy" {
}
}

data "aws_iam_policy_document" "etl_policy" {
data "aws_iam_policy_document" "ecr_policy" {
version = "2012-10-17"

statement {
Expand Down Expand Up @@ -140,3 +140,8 @@ resource "aws_iam_role_policy" "logging" {
role = var.ecs_load_execution_role.name
policy = data.aws_iam_policy_document.logging_policy.json
}

resource "aws_iam_role_policy" "ecr" {
role = var.ecs_load_execution_role.name
policy = data.aws_iam_policy_document.ecr_policy.json
}

0 comments on commit 28b75d9

Please sign in to comment.