Skip to content

Commit

Permalink
adding in route53 Read Only Access (#96)
Browse files Browse the repository at this point in the history
Adding in Route53ReadOnly Access to Route53Domains-PowerUser RoleNeeded to add the route53ReadOnly policy to the Route53 power user IAM role that I created previously. I need to be able to read and download the zone files for our hosted domains and this should give me the privileges to do that.
  • Loading branch information
oliviabholmes authored and czimergebot committed May 15, 2019
1 parent a361c8d commit bdad602
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws-iam-role-route53domains-poweruser/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# AWS IAM role for Route53Domains Poweruser

This module will create a role which has Route53Domains FullAccess privileges.
This module will create a role which has Route53Domains FullAccess privileges and Route53 ReadOnly priveleges.

## Example

```hcl
module "route53domains-poweruser" {
source = "github.com/chanzuckerberg/cztack//aws-iam-role-route53domains-poweruser?ref=v0.14.0"
source = "github.com/chanzuckerberg/cztack/aws-iam-role-route53domains-poweruser?ref=v0.14.0"
# The name of the role to create in this account.
role_name = "..."
Expand Down
5 changes: 5 additions & 0 deletions aws-iam-role-route53domains-poweruser/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ resource "aws_iam_role_policy_attachment" "route53domains-fullaccess" {
role = "${aws_iam_role.route53domains-poweruser.name}"
policy_arn = "arn:aws:iam::aws:policy/AmazonRoute53DomainsFullAccess"
}

resource "aws_iam_role_policy_attachment" "route53-readonly" {
role = "${aws_iam_role.route53domains-poweruser.name}"
policy_arn = "arn:aws:iam::aws:policy/AmazonRoute53ReadOnlyAccess"
}

0 comments on commit bdad602

Please sign in to comment.