Skip to content

Commit

Permalink
fix policy
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Nov 7, 2024
1 parent 8bf9a8f commit cc12f40
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions terraform/modules/services/airflow/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ resource "aws_iam_policy" "read-secrets" {

# allow updating of elb and autoscaling
resource "aws_iam_policy" "elb-auto-scaling"{

name = "${var.aws-domain}-${var.aws-environment}-elb-auto-scale-policy-airflow"
path = "/"
description = "Policy to allow airflow to auto scale and update elb"

policy = jsonencode({
"Version": "2012-10-17",
"Statement": [
{
Expand Down Expand Up @@ -153,6 +159,7 @@ resource "aws_iam_policy" "elb-auto-scaling"{
"Resource": "*"
}
]
})
}

##################
Expand Down

0 comments on commit cc12f40

Please sign in to comment.