lundi 23 mars 2015

Creating a cloudfront distribution using aws cli json

Hi i am trying to create a new custom origin cloudfront distribution from aws cli. But i am getting the following error. I ve checked my json file. no errors found but aws cli is throwing the below error


[ec2-user@ip-172-31-20-146 ~]$ aws cloudfront create-distribution --distribution-config "$(


Here is my json file





{
"DistributionConfig": {
"CallerReference": "fucking16483256",
"Aliases": {
"Quantity": 1,
"Items": [
"cdn.nammacloud.com"
]
},
"Origins": {
"Quantity": 1,
"Items": [
{
"origin": {
"CustomOriginConfig": {
"OriginProtocolPolicy": "match-viewer",
"HTTPPort": 80,
"HTTPSPort": 443
},
"Id": "Custom-www.nammacloud.com",
"DomainName": "www.nammacloud.com"
}
}
]
},
"DefaultCacheBehavior": {
"TargetOriginId": "Custom-www.nammacloud.com",
"ViewerProtocolPolicy": "allow-all",
"MinTTL": 3600
},
"Comment": "new distribution",
"Logging": {
"Bucket": "",
"Prefix": "",
"Enabled": false,
"IncludeCookies": false
},
"PriceClass": "PriceClass_All"
}
}






Aucun commentaire:

Enregistrer un commentaire