Skip to content

Commit

Permalink
add iam listaccountaliases permission
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 5, 2023
1 parent 6b14abb commit 174330c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion route53-zone-association/lambda-role/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# About aws-vpc-setup :: route53-zone-assoication :: terraform-role
# About aws-vpc-setup :: route53-zone-assoication :: lambda-role

Role to be assumed from terraform in a remote account (or local account) to allow for associating the VPC to the PHZ
and for updating route53 entries. This fails if not a member of an organization.
Expand Down
3 changes: 2 additions & 1 deletion route53-zone-association/lambda-role/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* # About aws-vpc-setup :: route53-zone-assoication :: terraform-role
* # About aws-vpc-setup :: route53-zone-assoication :: lambda-role
*
* Role to be assumed from terraform in a remote account (or local account) to allow for associating the VPC to the PHZ
* and for updating route53 entries. This fails if not a member of an organization.
Expand Down Expand Up @@ -46,6 +46,7 @@ data "aws_iam_policy_document" "policy" {
sid = "TFRemoteRoute53Actions"
effect = "Allow"
actions = [
"iam:ListAccountAliases",
"route53:Get*",
"route53:List*",
"route53:TestDNSAnswer",
Expand Down
1 change: 1 addition & 0 deletions route53-zone-association/terraform-role/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ data "aws_iam_policy_document" "policy" {
sid = "TFRemoteRoute53Actions"
effect = "Allow"
actions = [
"iam:ListAccountAliases",
"route53:Get*",
"route53:List*",
"route53:AssociateVPCWithHostedZone",
Expand Down

0 comments on commit 174330c

Please sign in to comment.