I didn't find anything useful in the docs. Can this be done with terraform somehow?
Asked
Active
Viewed 6,984 times
1 Answers
15
Registering a domain name involves a commitment from a Domain Name Registrar for a minimum of 12 months.
Tools like Terraform and AWS CloudFormation are used to create, update and delete infrastructure such as networks, EC2 instances and database.
While AWS does offer the ability to register domain names (which is done through gandi.net), this is not something you would do with tools like Terraform because you cannot simply "unregister" a domain name.
You could choose to use such tools to add sub-domains to an existing domain. They just aren't appropriate for the initial purchase of a domain name.
John Rotenstein
- 241,921
- 22
- 380
- 470
-
Thanks for commenting, so is there another way of automating this task? Is there a python module that I can use or in aws cli? – deez Mar 09 '20 at 06:55
-
1I actually found that aws cli and boto3 have register_domain option that I can use, thanks! – deez Mar 09 '20 at 07:02