Forked from li0nel/change-resource-record-sets-bis.sh
Created
January 1, 2019 06:02
-
-
Save thehelvetian/30acb2e2a641538f1ef1137b7118b466 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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