Skip to content

Commit

Permalink
Revert "Updating dev dns manager AWS role (#1538)" (#1540)
Browse files Browse the repository at this point in the history
This reverts commit bc4d861.
  • Loading branch information
ben851 authored Sep 13, 2024
1 parent 2c1e345 commit 6005ad6
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions aws/dns/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -157,23 +157,21 @@ resource "aws_iam_role" "dev_dns_manager" {
count = var.env == "staging" ? 1 : 0
name = "dev_dns_manager_role"

assume_role_policy = jsonencode({
Version = "2012-10-17",
Statement = [
{
Effect = "Allow",
Principal = {
AWS = [
"800095993820",
"arn:aws:iam::800095993820:role/notification-terraform-apply",
"arn:aws:iam::800095993820:role/notification-terraform-plan",
"arn:aws:sts::800095993820:assumed-role/notification-terraform-plan/NotifyTerraformPlan"
]
},
Action = "sts:AssumeRole"
}
]
})
assume_role_policy = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
"Principal": {
"AWS": "800095993820"
},
"Effect": "Allow",
"Sid": ""
}
]
}
EOF
}

resource "aws_iam_role_policy" "sandbox_dns_manager_policy" {
Expand Down

0 comments on commit 6005ad6

Please sign in to comment.