Skip to content

About, how we can setup a subdomain in Route53, and giving access to a specific IAM user with policy for editing the subdomain DNS records.

Notifications You must be signed in to change notification settings

ManuGeorge96/Allowing_IAM_access_to_only_a_specific_subdomain_on_Route53

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Situation

A co-worker has come to us asking to to create a subdomain and to grant him permission to edit the DNS records for the same. Here, while granting access to the co-worker we should ensure that he is not able to edit other DNS records associated with other subdomian or the main domains on the Rote53.

Methode

  • For this, first we have to create a new Hosted Zone on Route53 for the sub-domain.

    Unix

  • Once created, note down the nameservers provided for the sub-domain, and add these Nameservers as NS records on the main domain Eg:, if the subdomain is test.dnsrecords.tech, then the nameserevrs of the subdomain should be listed as NS record on the DNS records of dnsrecords.tech.

    Unix

  • Note down the Hosted Zone ID for the newely created Hosted Zone for the subdomian.

    Unix

  • Create an IAM policy for the user. Click on create policy

    Unix

  • On the Create policy section go for JSON tab and add the JSON code, replace HOSTED_ZONE_ID with the ID found on step 3. Refer image below,

    Unix

  • Now create the user.

    Unix

  • Attach the above created IAM policy for that user. Filter the result by choosing customer managed, and then proceed.

    Unix

  • You are dne with the setup now testing.

Result

  • On accessing the main domain on Route53 as the newely craeted user.

    Unix

  • On accessing the subdomain using the same user,

    Unix

About

About, how we can setup a subdomain in Route53, and giving access to a specific IAM user with policy for editing the subdomain DNS records.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages