Skip to content

Instantly share code, notes, and snippets.

@li0nel
Created December 10, 2017 14:18
Show Gist options
  • Save li0nel/0dba305a0fc87eaf40a148046ece5275 to your computer and use it in GitHub Desktop.
Save li0nel/0dba305a0fc87eaf40a148046ece5275 to your computer and use it in GitHub Desktop.
# Add an ALIAS record to ELB URL
aws route53 change-resource-record-sets 
--hosted-zone-id /hostedzone/YOUR_HOSTED_ZONE_ID
--change-batch '{
"Changes":[
{
"Action":"CREATE",
"ResourceRecordSet":{
"Name":"files.laravelaws.com.",
"Type":"A",
"AliasTarget":{
"DNSName":"d165d2lrm1x3fz.cloudfront.net",
"EvaluateTargetHealth":true,
"HostedZoneId":"YOUR_HOSTED_ZONE_ID"
}
}
}
]
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment