Skip to content

Can't give permissions to different users to manage domain

0

Hi guys, first time here..

Pretty much what the title says, I can only manage my hosted zone in Route 53 using my root account, I can't do that in any of my IAM accounts. Even though all policies seems to be correct, they still cannot see the hosted domain. They can access route 53, but no domains shows up. This is what's applied to the users:

{ "Version": "2012-10-17", "Statement":[ { "Effect":"Allow", "Action":[ "route53:", "route53domains:", "tag:", "ssm:GetParametersByPath", "cloudfront:ListDistributions", "elasticloadbalancing:DescribeLoadBalancers", "elasticbeanstalk:DescribeEnvironments", "s3:ListAllMyBuckets", "s3:GetBucketLocation", "s3:GetBucketWebsite", "ec2:DescribeRegions", "ec2:DescribeVpcs", "ec2:CreateNetworkInterface", "ec2:CreateNetworkInterfacePermission", "ec2:DeleteNetworkInterface", "ec2:DescribeAvailabilityZones", "ec2:DescribeNetworkInterfaces", "ec2:DescribeSecurityGroups", "ec2:DescribeSubnets", "ec2:ModifyNetworkInterfaceAttribute", "sns:ListTopics", "sns:ListSubscriptionsByTopic", "sns:CreateTopic", "kms:ListAliases", "kms:DescribeKey", "kms:CreateKey", "kms:CreateAlias", "kms:Sign", "cloudwatch:DescribeAlarms", "cloudwatch:PutMetricAlarm", "cloudwatch:DeleteAlarms", "cloudwatch:GetMetricStatistics" ], "Resource":"" }, { "Effect": "Allow", "Action": "apigateway:GET", "Resource": "arn:aws:apigateway:*::/domainnames" } ] }

I followed this article but no luck: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/access-control-overview.html

Does anyone know what am I missing here?

Thanks!

asked 2 years ago424 views

4 Answers
0

I tried both and the user still can't see/manage the hosted domain. Besides the custom policy, these are the policies that I assigned to the user Enter image description here

and still nothing: Enter image description here

answered 2 years ago

  • can you check CLI interface: <aws route53 list-hosted-zones>

0

It appears that you've granted a comprehensive set of permissions to your IAM users, including full access to Route 53 and Route 53 Domains. However, there are a few potential reasons why your IAM users might not be able to see or manage the hosted domains:

  1. Resource-based permissions: Make sure that the hosted zone itself doesn't have any resource-based policies that are restricting access to specific IAM users or roles.

  2. Organizational restrictions: If you're using AWS Organizations, check if there are any service control policies (SCPs) that might be limiting access to Route 53 resources.

  3. Domain registration and hosted zone separation: Remember that domain registration and hosted zones are separate in Route 53. The permissions you've granted should allow access to both, but double-check that the domains are actually registered through Route 53 and not just using Route 53 for DNS management.

  4. Hosted zone ownership: Ensure that the hosted zones were created in the same AWS account where the IAM users exist. If the zones were created in a different account, you'll need to set up cross-account access.

  5. Console vs. API access: Sometimes, permissions might allow API access but not console access. Try using the AWS CLI or SDK to verify if the users can list and manage the hosted zones programmatically.

  6. IAM user group permissions: If the users are part of an IAM group, make sure that the group permissions aren't overriding or restricting the individual user permissions.

  7. Waiting period for new domains: If you've recently registered or transferred domains to Route 53, be aware that there's typically a 60-day waiting period before you can transfer them again, which might affect some management operations.

To troubleshoot further, you could try creating a test hosted zone and see if the IAM users can access and manage it. If they can manage the test zone but not the existing ones, it might indicate an issue with the specific hosted zones rather than the permissions.

If none of these suggestions resolve the issue, you may need to contact AWS support for further assistance, as there might be an account-specific configuration or limitation at play.
Sources
json code need to disallow Delete Domain by im user. "route53:DeleteDomain" ERROR | AWS re:Post
Route 53: Can't transfer out a domain to another domain | AWS re:Post
Using IAM policy conditions for fine-grained access control - Amazon Route 53
AWS managed policies for Amazon Route 53 - Amazon Route 53

answered 2 years ago

EXPERT

reviewed 2 years ago

0

AWS doc you mentioned says route53 resource, like Domain, can't have access control by IAM policies. However, Hosted IAM users can manage Hosted Zones.

here is the link: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/security-iam-awsmanpol-route53.html

you current policy granting broad permission, it should theoretically work, but the doc you provided seems like Domain resource can't have access via IAM policy. Here is the JSON policy might work.

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "route53:ListHostedZones", // Lets IAM users see the list of hosted zones "route53:GetHostedZone", "route53:ChangeResourceRecordSets", "route53:ListResourceRecordSets" ], "Resource": "arn:aws:route53:::hostedzone/" // Use "" for all zones or replace with a specific Zone ID (e.g., Z1X2Y3Z4) }, { "Effect": "Allow", "Action": "route53:", "Resource": "" } ] }

Hope it helps.

answered 2 years ago

EXPERT

reviewed 2 years ago

0

You can try the following to start with and then go granular if needed.

ManagedPolicies:
        - arn:aws:iam::aws:policy/AmazonRoute53DomainsFullAccess
        - arn:aws:iam::aws:policy/AmazonRoute53FullAccess
EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.