Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I hide some hosted zone from AWS IAM Users?

Can I restrict my AWS IAM Users to list only selected hosted zones that I would like them to see using AWS IAM Policies?

Suppose I have three hosted zones A, B & C and I would like to hide A from my AWS IAM Users. What changes I need to do in this policy -

{
"Statement":[{
"Effect":"Allow",
"Action":["route53:GetHostedZone",
"route53:ListResourceRecordSets"],
"Resource":"arn:aws:route53::123456789012:change/*"
},
{
"Effect":"Allow",
"Action":,
"Resource":"*"
}
]
} 
like image 594
Ashish Pancholi Avatar asked Oct 17 '12 06:10

Ashish Pancholi


People also ask

What is a private hosted zone in AWS?

A private hosted zone is a container for records for a domain that you host in one or more Amazon virtual private clouds (VPCs). You create a hosted zone for a domain (such as example.com), and then you create records to tell Amazon Route 53 how you want traffic to be routed for that domain within and among your VPCs.

What is difference between private and public hosted zone?

There are two types of hosted zones: Public hosted zones contain records that specify how you want to route traffic on the internet. For more information, see Working with public hosted zones. Private hosted zones contain records that specify how you want to route traffic in an Amazon VPC.

Can I have the same hosted zone in two AWS accounts?

Public hosted zones with the same name in two accountsYou can create more than one hosted zone with the same name and add different records to each hosted zone. Route 53 assigns four name servers to every hosted zone, and the name servers are different for each hosted zone.

How do I restrict access to AWS?

You can use AWS Identity and Access Management (IAM) identity-based policies and Amazon Simple Storage Service (Amazon S3) bucket policies to deny or control access to AWS resources.


1 Answers

Give this a try:

arn:aws:route53:::hostedzone/YOURHOSTEDZONEID

where YOURHOSTEDZONEID is replaced with your hosted zone id.

Add each hosted zone as a separate resource to which your IAM users should be allowed access.

See also: https://serverfault.com/questions/364264/how-do-i-determine-the-arn-of-my-amazon-route53-hosted-zone

like image 135
Eric Hammond Avatar answered Sep 18 '22 17:09

Eric Hammond