Skip to content

Commit

Permalink
attach role
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Nov 7, 2024
1 parent af80ac2 commit 3b1f8c2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion terraform/modules/services/airflow/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ resource "aws_iam_policy" "read-secrets" {
}

# allow updating of elb and autoscaling
{
resource "aws_iam_policy" "elb-auto-scaling"{
"Version": "2012-10-17",
"Statement": [
{
Expand Down Expand Up @@ -237,3 +237,8 @@ resource "aws_iam_role_policy_attachment" "attach-read-secrets" {
role = aws_iam_role.instance-role.name
policy_arn = aws_iam_policy.read-secrets.arn
}

resource "aws_iam_role_policy_attachment" "attach-elb-auto-scaling" {
role = aws_iam_role.instance-role.name
policy_arn = aws_iam_policy.elb-auto-scaling.arn
}

0 comments on commit 3b1f8c2

Please sign in to comment.