Convert an AWS Route53 Resource Record Set to point to an Alias Target
Occasionally, you’ll want to change a Route53 Resource Record Set from one type to another. In the case of going from a traditonal ‘A’ record to an Alias Target the following code (with the aws-sdk rubygem) should do the trick.
The gotcha with this process is the need to unset ttl and resource_records as a part of the update.