The Ansible task is the following:
`
- name: listing the distributions
command: aws cloudfront list-distributions
register: distributions_list
`
The following JSON is given (as a result of the debug module):
`
ok: [localhost] => {
“var”: {
“distributions_list”: {
“changed”: true,
“cmd”: [
“aws”,
“cloudfront”,
“list-distributions”
],
“delta”: “0:00:01.104561”,
“end”: “2015-01-14 17:35:02.932315”,
“invocation”: {
“module_args”: “aws cloudfront list-distributions”,
“module_name”: “command”
},
“rc”: 0,
“start”: “2015-01-14 17:35:01.827754”,
“stderr”: “”,
“stdout”: “{\n "DistributionList": {\n "Items": [\n {\n "Status": "Deployed", \n "CacheBehaviors": {\n "Items": [\n {\n "TrustedSigners": {\n "Enabled": false, \n "Quantity": 0\n }, \n "TargetOriginId": "S3-example-bucket", \n "ViewerProtocolPolicy": "allow-all", \n "ForwardedValues": {\n "Headers": {\n "Quantity": 0\n }, \n "Cookies": {\n "Forward": "none"\n }, \n "QueryString": true\n }, \n "PathPattern": "catalog/", \n "SmoothStreaming": false, \n "AllowedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "CachedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "Quantity": 2\n }, \n "Quantity": 2\n }, \n "MinTTL": 0\n }\n ], \n "Quantity": 1\n }, \n "Origins": {\n "Items": [\n {\n "S3OriginConfig": {\n "OriginAccessIdentity": null\n }, \n "Id": "S3-example-bucket", \n "DomainName": "example-bucket.s3.amazonaws.com"\n }, \n {\n "CustomOriginConfig": {\n "OriginProtocolPolicy": "match-viewer", \n "HTTPPort": 80, \n "HTTPSPort": 443\n }, \n "Id": "awss1.example.com", \n "DomainName": "awss1.example.com"\n }\n ], \n "Quantity": 2\n }, \n "DomainName": "example.cloudfront.net", \n "PriceClass": "PriceClass_100", \n "Enabled": true, \n "DefaultCacheBehavior": {\n "TrustedSigners": {\n "Enabled": false, \n "Quantity": 0\n }, \n "TargetOriginId": "awss1.example.com", \n "ViewerProtocolPolicy": "allow-all", \n "ForwardedValues": {\n "Headers": {\n "Quantity": 0\n }, \n "Cookies": {\n "Forward": "none"\n }, \n "QueryString": true\n }, \n "SmoothStreaming": false, \n "AllowedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "CachedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "Quantity": 2\n }, \n "Quantity": 2\n }, \n "MinTTL": 0\n }, \n "Comment": "TEST COM distribution", \n "ViewerCertificate": {\n "CloudFrontDefaultCertificate": true, \n "MinimumProtocolVersion": "SSLv3"\n }, \n "CustomErrorResponses": {\n "Quantity": 0\n }, \n "LastModifiedTime": "2014-07-15T14:06:11.596Z", \n "Id": "E13GR8T7XAD5CA", \n "Restrictions": {\n "GeoRestriction": {\n "RestrictionType": "none", \n "Quantity": 0\n }\n }, \n "Aliases": {\n "Items": [\n "cdn-awss1.example.com"\n ], \n "Quantity": 1\n }\n }, \n {\n "Status": "Deployed", \n "CacheBehaviors": {\n "Items": [\n {\n "TrustedSigners": {\n "Enabled": false, \n "Quantity": 0\n }, \n "TargetOriginId": "S3-example-bucket", \n "ViewerProtocolPolicy": "allow-all", \n "ForwardedValues": {\n "Headers": {\n "Quantity": 0\n }, \n "Cookies": {\n "Forward": "none"\n }, \n "QueryString": true\n }, \n "PathPattern": "catalog/", \n "SmoothStreaming": false, \n "AllowedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "CachedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "Quantity": 2\n }, \n "Quantity": 2\n }, \n "MinTTL": 0\n }\n ], \n "Quantity": 1\n }, \n "Origins": {\n "Items": [\n {\n "CustomOriginConfig": {\n "OriginProtocolPolicy": "match-viewer", \n "HTTPPort": 80, \n "HTTPSPort": 443\n }, \n "Id": "www.example.com", \n "DomainName": "www.example.com"\n }, \n {\n "S3OriginConfig": {\n "OriginAccessIdentity": null\n }, \n "Id": "S3-example-bucket", \n "DomainName": "example-bucket.s3.amazonaws.com"\n }\n ], \n "Quantity": 2\n }, \n "DomainName": "example.cloudfront.net", \n "PriceClass": "PriceClass_All", \n "Enabled": true, \n "DefaultCacheBehavior": {\n "TrustedSigners": {\n "Enabled": false, \n "Quantity": 0\n }, \n "TargetOriginId": "www.example.com", \n "ViewerProtocolPolicy": "allow-all", \n "ForwardedValues": {\n "Headers": {\n "Quantity": 0\n }, \n "Cookies": {\n "Forward": "none"\n }, \n "QueryString": true\n }, \n "SmoothStreaming": false, \n "AllowedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "CachedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "Quantity": 2\n }, \n "Quantity": 2\n }, \n "MinTTL": 0\n }, \n "Comment": "MAIN", \n "ViewerCertificate": {\n "CloudFrontDefaultCertificate": true, \n "MinimumProtocolVersion": "SSLv3"\n }, \n "CustomErrorResponses": {\n "Quantity": 0\n }, \n "LastModifiedTime": "2014-09-25T15:59:31.104Z", \n "Id": "E2DFOYRWGTHH3E", \n "Restrictions": {\n "GeoRestriction": {\n "RestrictionType": "none", \n "Quantity": 0\n }\n }, \n "Aliases": {\n "Items": [\n "cdn.example.com"\n ], \n "Quantity": 1\n }\n }, \n {\n "Status": "Deployed", \n "CacheBehaviors": {\n "Items": [\n {\n "TrustedSigners": {\n "Enabled": false, \n "Quantity": 0\n }, \n "TargetOriginId": "S3-example-bucket", \n "ViewerProtocolPolicy": "allow-all", \n "ForwardedValues": {\n "Headers": {\n "Quantity": 0\n }, \n "Cookies": {\n "Forward": "none"\n }, \n "QueryString": true\n }, \n "PathPattern": "catalog/", \n "SmoothStreaming": false, \n "AllowedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "CachedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "Quantity": 2\n }, \n "Quantity": 2\n }, \n "MinTTL": 0\n }\n ], \n "Quantity": 1\n }, \n "Origins": {\n "Items": [\n {\n "CustomOriginConfig": {\n "OriginProtocolPolicy": "match-viewer", \n "HTTPPort": 80, \n "HTTPSPort": 443\n }, \n "Id": "www.example.at", \n "DomainName": "www.example.at"\n }, \n {\n "S3OriginConfig": {\n "OriginAccessIdentity": null\n }, \n "Id": "S3-example-bucket", \n "DomainName": "example-bucket.s3.amazonaws.com"\n }\n ], \n "Quantity": 2\n }, \n "DomainName": "example.cloudfront.net", \n "PriceClass": "PriceClass_100", \n "Enabled": true, \n "DefaultCacheBehavior": {\n "TrustedSigners": {\n "Enabled": false, \n "Quantity": 0\n }, \n "TargetOriginId": "www.example.at", \n "ViewerProtocolPolicy": "allow-all", \n "ForwardedValues": {\n "Headers": {\n "Quantity": 0\n }, \n "Cookies": {\n "Forward": "none"\n }, \n "QueryString": true\n }, \n "SmoothStreaming": false, \n "AllowedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "CachedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "Quantity": 2\n }, \n "Quantity": 2\n }, \n "MinTTL": 0\n }, \n "Comment": null, \n "ViewerCertificate": {\n "CloudFrontDefaultCertificate": true, \n "MinimumProtocolVersion": "SSLv3"\n }, \n "CustomErrorResponses": {\n "Quantity": 0\n }, \n "LastModifiedTime": "2014-09-25T16:40:38.162Z", \n "Id": "E22AVVEP0UA3N7", \n "Restrictions": {\n "GeoRestriction": {\n "RestrictionType": "none", \n "Quantity": 0\n }\n }, \n "Aliases": {\n "Items": [\n "cdn.example.at"\n ], \n "Quantity": 1\n }\n }, \n {\n "Status": "Deployed", \n "CacheBehaviors": {\n "Items": [\n {\n "TrustedSigners": {\n "Enabled": false, \n "Quantity": 0\n }, \n "TargetOriginId": "S3-example-bucket", \n "ViewerProtocolPolicy": "allow-all", \n "ForwardedValues": {\n "Headers": {\n "Quantity": 0\n }, \n "Cookies": {\n "Forward": "none"\n }, \n "QueryString": true\n }, \n "PathPattern": "catalog/", \n "SmoothStreaming": false, \n "AllowedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "CachedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "Quantity": 2\n }, \n "Quantity": 2\n }, \n "MinTTL": 0\n }\n ], \n "Quantity": 1\n }, \n "Origins": {\n "Items": [\n {\n "S3OriginConfig": {\n "OriginAccessIdentity": null\n }, \n "Id": "S3-example-bucket", \n "DomainName": "example-bucket.s3.amazonaws.com"\n }, \n {\n "CustomOriginConfig": {\n "OriginProtocolPolicy": "match-viewer", \n "HTTPPort": 80, \n "HTTPSPort": 443\n }, \n "Id": "www.example.ch", \n "DomainName": "www.example.ch"\n }\n ], \n "Quantity": 2\n }, \n "DomainName": "example.cloudfront.net", \n "PriceClass": "PriceClass_100", \n "Enabled": true, \n "DefaultCacheBehavior": {\n "TrustedSigners": {\n "Enabled": false, \n "Quantity": 0\n }, \n "TargetOriginId": "www.example.ch", \n "ViewerProtocolPolicy": "allow-all", \n "ForwardedValues": {\n "Headers": {\n "Quantity": 0\n }, \n "Cookies": {\n "Forward": "none"\n }, \n "QueryString": true\n }, \n "SmoothStreaming": false, \n "AllowedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "CachedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "Quantity": 2\n }, \n "Quantity": 2\n }, \n "MinTTL": 0\n }, \n "Comment": null, \n "ViewerCertificate": {\n "CloudFrontDefaultCertificate": true, \n "MinimumProtocolVersion": "SSLv3"\n }, \n "CustomErrorResponses": {\n "Quantity": 0\n }, \n "LastModifiedTime": "2014-09-25T16:39:19.018Z", \n "Id": "E3PSH9W4NXHA57", \n "Restrictions": {\n "GeoRestriction": {\n "RestrictionType": "none", \n "Quantity": 0\n }\n }, \n "Aliases": {\n "Items": [\n "cdn.example.ch"\n ], \n "Quantity": 1\n }\n }, \n {\n "Status": "Deployed", \n "CacheBehaviors": {\n "Items": [\n {\n "TrustedSigners": {\n "Enabled": false, \n "Quantity": 0\n }, \n "TargetOriginId": "www.example.co.uk", \n "ViewerProtocolPolicy": "allow-all", \n "ForwardedValues": {\n "Headers": {\n "Quantity": 0\n }, \n "Cookies": {\n "Forward": "none"\n }, \n "QueryString": true\n }, \n "PathPattern": "catalog/", \n "SmoothStreaming": false, \n "AllowedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "CachedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "Quantity": 2\n }, \n "Quantity": 2\n }, \n "MinTTL": 0\n }\n ], \n "Quantity": 1\n }, \n "Origins": {\n "Items": [\n {\n "CustomOriginConfig": {\n "OriginProtocolPolicy": "match-viewer", \n "HTTPPort": 80, \n "HTTPSPort": 443\n }, \n "Id": "www.example.co.uk", \n "DomainName": "www.example.co.uk"\n }, \n {\n "S3OriginConfig": {\n "OriginAccessIdentity": null\n }, \n "Id": "S3-example-bucket", \n "DomainName": "example-bucket.s3.amazonaws.com"\n }\n ], \n "Quantity": 2\n }, \n "DomainName": "example.cloudfront.net", \n "PriceClass": "PriceClass_100", \n "Enabled": true, \n "DefaultCacheBehavior": {\n "TrustedSigners": {\n "Enabled": false, \n "Quantity": 0\n }, \n "TargetOriginId": "www.example.co.uk", \n "ViewerProtocolPolicy": "allow-all", \n "ForwardedValues": {\n "Headers": {\n "Quantity": 0\n }, \n "Cookies": {\n "Forward": "none"\n }, \n "QueryString": true\n }, \n "SmoothStreaming": false, \n "AllowedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "CachedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "Quantity": 2\n }, \n "Quantity": 2\n }, \n "MinTTL": 0\n }, \n "Comment": null, \n "ViewerCertificate": {\n "CloudFrontDefaultCertificate": true, \n "MinimumProtocolVersion": "SSLv3"\n }, \n "CustomErrorResponses": {\n "Quantity": 0\n }, \n "LastModifiedTime": "2014-09-25T16:43:59.824Z", \n "Id": "E1B61P76OTSUBW", \n "Restrictions": {\n "GeoRestriction": {\n "RestrictionType": "none", \n "Quantity": 0\n }\n }, \n "Aliases": {\n "Items": [\n "cdn.example.co.uk"\n ], \n "Quantity": 1\n }\n }, \n {\n "Status": "Deployed", \n "CacheBehaviors": {\n "Items": [\n {\n "TrustedSigners": {\n "Enabled": false, \n "Quantity": 0\n }, \n "TargetOriginId": "S3-example-bucket", \n "ViewerProtocolPolicy": "allow-all", \n "ForwardedValues": {\n "Headers": {\n "Quantity": 0\n }, \n "Cookies": {\n "Forward": "none"\n }, \n "QueryString": true\n }, \n "PathPattern": "catalog/", \n "SmoothStreaming": false, \n "AllowedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "CachedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "Quantity": 2\n }, \n "Quantity": 2\n }, \n "MinTTL": 0\n }\n ], \n "Quantity": 1\n }, \n "Origins": {\n "Items": [\n {\n "S3OriginConfig": {\n "OriginAccessIdentity": null\n }, \n "Id": "S3-example-bucket", \n "DomainName": "example-bucket.s3.amazonaws.com"\n }, \n {\n "CustomOriginConfig": {\n "OriginProtocolPolicy": "match-viewer", \n "HTTPPort": 80, \n "HTTPSPort": 443\n }, \n "Id": "www.example.fr", \n "DomainName": "www.example.fr"\n }\n ], \n "Quantity": 2\n }, \n "DomainName": "example.cloudfront.net", \n "PriceClass": "PriceClass_100", \n "Enabled": true, \n "DefaultCacheBehavior": {\n "TrustedSigners": {\n "Enabled": false, \n "Quantity": 0\n }, \n "TargetOriginId": "www.example.fr", \n "ViewerProtocolPolicy": "allow-all", \n "ForwardedValues": {\n "Headers": {\n "Quantity": 0\n }, \n "Cookies": {\n "Forward": "none"\n }, \n "QueryString": true\n }, \n "SmoothStreaming": false, \n "AllowedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "CachedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "Quantity": 2\n }, \n "Quantity": 2\n }, \n "MinTTL": 0\n }, \n "Comment": null, \n "ViewerCertificate": {\n "CloudFrontDefaultCertificate": true, \n "MinimumProtocolVersion": "SSLv3"\n }, \n "CustomErrorResponses": {\n "Quantity": 0\n }, \n "LastModifiedTime": "2014-09-25T16:37:14.157Z", \n "Id": "E2Z2TQAXPE6IGF", \n "Restrictions": {\n "GeoRestriction": {\n "RestrictionType": "none", \n "Quantity": 0\n }\n }, \n "Aliases": {\n "Items": [\n "cdn.example.fr"\n ], \n "Quantity": 1\n }\n }, \n {\n "Status": "Deployed", \n "CacheBehaviors": {\n "Items": [\n {\n "TrustedSigners": {\n "Enabled": false, \n "Quantity": 0\n }, \n "TargetOriginId": "S3-example-bucket", \n "ViewerProtocolPolicy": "allow-all", \n "ForwardedValues": {\n "Headers": {\n "Quantity": 0\n }, \n "Cookies": {\n "Forward": "none"\n }, \n "QueryString": true\n }, \n "PathPattern": "catalog/", \n "SmoothStreaming": false, \n "AllowedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "CachedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "Quantity": 2\n }, \n "Quantity": 2\n }, \n "MinTTL": 0\n }\n ], \n "Quantity": 1\n }, \n "Origins": {\n "Items": [\n {\n "CustomOriginConfig": {\n "OriginProtocolPolicy": "match-viewer", \n "HTTPPort": 80, \n "HTTPSPort": 443\n }, \n "Id": "www.example.it", \n "DomainName": "www.example.it"\n }, \n {\n "S3OriginConfig": {\n "OriginAccessIdentity": null\n }, \n "Id": "S3-example-bucket", \n "DomainName": "example-bucket.s3.amazonaws.com"\n }\n ], \n "Quantity": 2\n }, \n "DomainName": "example.cloudfront.net", \n "PriceClass": "PriceClass_100", \n "Enabled": true, \n "DefaultCacheBehavior": {\n "TrustedSigners": {\n "Enabled": false, \n "Quantity": 0\n }, \n "TargetOriginId": "www.example.it", \n "ViewerProtocolPolicy": "allow-all", \n "ForwardedValues": {\n "Headers": {\n "Quantity": 0\n }, \n "Cookies": {\n "Forward": "none"\n }, \n "QueryString": true\n }, \n "SmoothStreaming": false, \n "AllowedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "CachedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "Quantity": 2\n }, \n "Quantity": 2\n }, \n "MinTTL": 0\n }, \n "Comment": null, \n "ViewerCertificate": {\n "CloudFrontDefaultCertificate": true, \n "MinimumProtocolVersion": "SSLv3"\n }, \n "CustomErrorResponses": {\n "Quantity": 0\n }, \n "LastModifiedTime": "2014-09-25T16:33:44.478Z", \n "Id": "E2VW6BL67APKXK", \n "Restrictions": {\n "GeoRestriction": {\n "RestrictionType": "none", \n "Quantity": 0\n }\n }, \n "Aliases": {\n "Items": [\n "cdn.example.it"\n ], \n "Quantity": 1\n }\n }, \n {\n "Status": "Deployed", \n "CacheBehaviors": {\n "Items": [\n {\n "TrustedSigners": {\n "Enabled": false, \n "Quantity": 0\n }, \n "TargetOriginId": "www.example.se", \n "ViewerProtocolPolicy": "allow-all", \n "ForwardedValues": {\n "Headers": {\n "Quantity": 0\n }, \n "Cookies": {\n "Forward": "none"\n }, \n "QueryString": true\n }, \n "PathPattern": "catalog/", \n "SmoothStreaming": false, \n "AllowedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "CachedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "Quantity": 2\n }, \n "Quantity": 2\n }, \n "MinTTL": 0\n }\n ], \n "Quantity": 1\n }, \n "Origins": {\n "Items": [\n {\n "CustomOriginConfig": {\n "OriginProtocolPolicy": "match-viewer", \n "HTTPPort": 80, \n "HTTPSPort": 443\n }, \n "Id": "www.example.se", \n "DomainName": "www.example.se"\n }, \n {\n "S3OriginConfig": {\n "OriginAccessIdentity": null\n }, \n "Id": "S3-example-bucket", \n "DomainName": "example-bucket.s3.amazonaws.com"\n }\n ], \n "Quantity": 2\n }, \n "DomainName": "example.cloudfront.net", \n "PriceClass": "PriceClass_100", \n "Enabled": true, \n "DefaultCacheBehavior": {\n "TrustedSigners": {\n "Enabled": false, \n "Quantity": 0\n }, \n "TargetOriginId": "www.example.se", \n "ViewerProtocolPolicy": "allow-all", \n "ForwardedValues": {\n "Headers": {\n "Quantity": 0\n }, \n "Cookies": {\n "Forward": "none"\n }, \n "QueryString": true\n }, \n "SmoothStreaming": false, \n "AllowedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "CachedMethods": {\n "Items": [\n "GET", \n "HEAD"\n ], \n "Quantity": 2\n }, \n "Quantity": 2\n }, \n "MinTTL": 0\n }, \n "Comment": null, \n "ViewerCertificate": {\n "CloudFrontDefaultCertificate": true, \n "MinimumProtocolVersion": "SSLv3"\n }, \n "CustomErrorResponses": {\n "Quantity": 0\n }, \n "LastModifiedTime": "2014-09-25T16:45:46.263Z", \n "Id": "E15I1ED6UWY838", \n "Restrictions": {\n "GeoRestriction": {\n "RestrictionType": "none", \n "Quantity": 0\n }\n }, \n "Aliases": {\n "Items": [\n "cdn.example.se"\n ], \n "Quantity": 1\n }\n }\n ]\n }\n}”,
“stdout_lines”: [
“{”,
" "DistributionList": {“,
" "Items": [”,
" {“,
" "Status": "Deployed", “,
" "CacheBehaviors": {”,
" "Items": [”,
" {“,
" "TrustedSigners": {”,
" "Enabled": false, “,
" "Quantity": 0”,
" }, “,
" "TargetOriginId": "S3-example-bucket", “,
" "ViewerProtocolPolicy": "allow-all", “,
" "ForwardedValues": {”,
" "Headers": {”,
" "Quantity": 0”,
" }, “,
" "Cookies": {”,
" "Forward": "none"“,
" }, “,
" "QueryString": true”,
" }, “,
" "PathPattern": "catalog/", “,
" "SmoothStreaming": false, “,
" "AllowedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "CachedMethods": {”,
" "Items": [“,
" "GET", “,
" "HEAD"”,
" ], “,
" "Quantity": 2”,
" }, “,
" "Quantity": 2”,
" }, “,
" "MinTTL": 0”,
" }”,
" ], “,
" "Quantity": 1”,
" }, “,
" "Origins": {”,
" "Items": [“,
" {”,
" "S3OriginConfig": {“,
" "OriginAccessIdentity": null”,
" }, “,
" "Id": "S3-example-bucket", “,
" "DomainName": "example-bucket.s3.amazonaws.com"”,
" }, “,
" {”,
" "CustomOriginConfig": {”,
" "OriginProtocolPolicy": "match-viewer", “,
" "HTTPPort": 80, “,
" "HTTPSPort": 443”,
" }, “,
" "Id": "awss1.example.com", “,
" "DomainName": "awss1.example.com"”,
" }”,
" ], “,
" "Quantity": 2”,
" }, “,
" "DomainName": "example.cloudfront.net", “,
" "PriceClass": "PriceClass_100", “,
" "Enabled": true, “,
" "DefaultCacheBehavior": {”,
" "TrustedSigners": {”,
" "Enabled": false, “,
" "Quantity": 0”,
" }, “,
" "TargetOriginId": "awss1.example.com", “,
" "ViewerProtocolPolicy": "allow-all", “,
" "ForwardedValues": {”,
" "Headers": {”,
" "Quantity": 0”,
" }, “,
" "Cookies": {”,
" "Forward": "none"”,
" }, “,
" "QueryString": true”,
" }, “,
" "SmoothStreaming": false, “,
" "AllowedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "CachedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "Quantity": 2”,
" }, “,
" "Quantity": 2”,
" }, “,
" "MinTTL": 0”,
" }, “,
" "Comment": "TEST COM distribution", “,
" "ViewerCertificate": {”,
" "CloudFrontDefaultCertificate": true, “,
" "MinimumProtocolVersion": "SSLv3"”,
" }, “,
" "CustomErrorResponses": {”,
" "Quantity": 0”,
" }, “,
" "LastModifiedTime": "2014-07-15T14:06:11.596Z", “,
" "Id": "E13GR8T7XAD5CA", “,
" "Restrictions": {”,
" "GeoRestriction": {”,
" "RestrictionType": "none", “,
" "Quantity": 0”,
" }”,
" }, “,
" "Aliases": {”,
" "Items": [”,
" "cdn-awss1.example.com"“,
" ], “,
" "Quantity": 1”,
" }”,
" }, “,
" {”,
" "Status": "Deployed", “,
" "CacheBehaviors": {”,
" "Items": [“,
" {”,
" "TrustedSigners": {“,
" "Enabled": false, “,
" "Quantity": 0”,
" }, “,
" "TargetOriginId": "S3-example-bucket", “,
" "ViewerProtocolPolicy": "allow-all", “,
" "ForwardedValues": {”,
" "Headers": {”,
" "Quantity": 0”,
" }, “,
" "Cookies": {”,
" "Forward": "none"”,
" }, “,
" "QueryString": true”,
" }, ",
" "PathPattern": "catalog/", “,
" "SmoothStreaming": false, “,
" "AllowedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "CachedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "Quantity": 2”,
" }, “,
" "Quantity": 2”,
" }, “,
" "MinTTL": 0”,
" }”,
" ], “,
" "Quantity": 1”,
" }, “,
" "Origins": {”,
" "Items": [“,
" {”,
" "CustomOriginConfig": {“,
" "OriginProtocolPolicy": "match-viewer", “,
" "HTTPPort": 80, “,
" "HTTPSPort": 443”,
" }, “,
" "Id": "www.example.com", “,
" "DomainName": "www.example.com"”,
" }, “,
" {”,
" "S3OriginConfig": {”,
" "OriginAccessIdentity": null”,
" }, “,
" "Id": "S3-example-bucket", “,
" "DomainName": "example-bucket.s3.amazonaws.com"”,
" }”,
" ], “,
" "Quantity": 2”,
" }, “,
" "DomainName": "example.cloudfront.net", “,
" "PriceClass": "PriceClass_All", “,
" "Enabled": true, “,
" "DefaultCacheBehavior": {”,
" "TrustedSigners": {”,
" "Enabled": false, “,
" "Quantity": 0”,
" }, “,
" "TargetOriginId": "www.example.com", “,
" "ViewerProtocolPolicy": "allow-all", “,
" "ForwardedValues": {”,
" "Headers": {”,
" "Quantity": 0”,
" }, “,
" "Cookies": {”,
" "Forward": "none"”,
" }, “,
" "QueryString": true”,
" }, “,
" "SmoothStreaming": false, “,
" "AllowedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "CachedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "Quantity": 2”,
" }, “,
" "Quantity": 2”,
" }, “,
" "MinTTL": 0”,
" }, “,
" "Comment": "MAIN", “,
" "ViewerCertificate": {”,
" "CloudFrontDefaultCertificate": true, “,
" "MinimumProtocolVersion": "SSLv3"”,
" }, “,
" "CustomErrorResponses": {”,
" "Quantity": 0”,
" }, “,
" "LastModifiedTime": "2014-09-25T15:59:31.104Z", “,
" "Id": "E2DFOYRWGTHH3E", “,
" "Restrictions": {”,
" "GeoRestriction": {”,
" "RestrictionType": "none", “,
" "Quantity": 0”,
" }”,
" }, “,
" "Aliases": {”,
" "Items": [”,
" "cdn.example.com"“,
" ], “,
" "Quantity": 1”,
" }”,
" }, “,
" {”,
" "Status": "Deployed", “,
" "CacheBehaviors": {”,
" "Items": [“,
" {”,
" "TrustedSigners": {“,
" "Enabled": false, “,
" "Quantity": 0”,
" }, “,
" "TargetOriginId": "S3-example-bucket", “,
" "ViewerProtocolPolicy": "allow-all", “,
" "ForwardedValues": {”,
" "Headers": {”,
" "Quantity": 0”,
" }, “,
" "Cookies": {”,
" "Forward": "none"”,
" }, “,
" "QueryString": true”,
" }, “,
" "PathPattern": "catalog/", “,
" "SmoothStreaming": false, “,
" "AllowedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "CachedMethods": {”,
" "Items": [“,
" "GET", “,
" "HEAD"”,
" ], “,
" "Quantity": 2”,
" }, “,
" "Quantity": 2”,
" }, “,
" "MinTTL": 0”,
" }”,
" ], “,
" "Quantity": 1”,
" }, “,
" "Origins": {”,
" "Items": [“,
" {”,
" "CustomOriginConfig": {“,
" "OriginProtocolPolicy": "match-viewer", “,
" "HTTPPort": 80, “,
" "HTTPSPort": 443”,
" }, “,
" "Id": "www.example.at", “,
" "DomainName": "www.example.at"”,
" }, “,
" {”,
" "S3OriginConfig": {”,
" "OriginAccessIdentity": null”,
" }, “,
" "Id": "S3-example-bucket", “,
" "DomainName": "example-bucket.s3.amazonaws.com"”,
" }”,
" ], “,
" "Quantity": 2”,
" }, “,
" "DomainName": "example.cloudfront.net", “,
" "PriceClass": "PriceClass_100", “,
" "Enabled": true, “,
" "DefaultCacheBehavior": {”,
" "TrustedSigners": {”,
" "Enabled": false, “,
" "Quantity": 0”,
" }, “,
" "TargetOriginId": "www.example.at", “,
" "ViewerProtocolPolicy": "allow-all", “,
" "ForwardedValues": {”,
" "Headers": {”,
" "Quantity": 0”,
" }, “,
" "Cookies": {”,
" "Forward": "none"”,
" }, “,
" "QueryString": true”,
" }, “,
" "SmoothStreaming": false, “,
" "AllowedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "CachedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "Quantity": 2”,
" }, “,
" "Quantity": 2”,
" }, “,
" "MinTTL": 0”,
" }, “,
" "Comment": null, “,
" "ViewerCertificate": {”,
" "CloudFrontDefaultCertificate": true, “,
" "MinimumProtocolVersion": "SSLv3"”,
" }, “,
" "CustomErrorResponses": {”,
" "Quantity": 0”,
" }, “,
" "LastModifiedTime": "2014-09-25T16:40:38.162Z", “,
" "Id": "E22AVVEP0UA3N7", “,
" "Restrictions": {”,
" "GeoRestriction": {”,
" "RestrictionType": "none", “,
" "Quantity": 0”,
" }”,
" }, “,
" "Aliases": {”,
" "Items": [”,
" "cdn.example.at"“,
" ], “,
" "Quantity": 1”,
" }”,
" }, “,
" {”,
" "Status": "Deployed", “,
" "CacheBehaviors": {”,
" "Items": [“,
" {”,
" "TrustedSigners": {“,
" "Enabled": false, “,
" "Quantity": 0”,
" }, “,
" "TargetOriginId": "S3-example-bucket", “,
" "ViewerProtocolPolicy": "allow-all", “,
" "ForwardedValues": {”,
" "Headers": {”,
" "Quantity": 0”,
" }, “,
" "Cookies": {”,
" "Forward": "none"”,
" }, “,
" "QueryString": true”,
" }, ",
" "PathPattern": "catalog/", “,
" "SmoothStreaming": false, “,
" "AllowedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "CachedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "Quantity": 2”,
" }, “,
" "Quantity": 2”,
" }, “,
" "MinTTL": 0”,
" }“,
" ], “,
" "Quantity": 1”,
" }, “,
" "Origins": {”,
" "Items": [”,
" {“,
" "S3OriginConfig": {”,
" "OriginAccessIdentity": null",
" }, “,
" "Id": "S3-example-bucket", “,
" "DomainName": "example-bucket.s3.amazonaws.com"”,
" }, “,
" {”,
" "CustomOriginConfig": {”,
" "OriginProtocolPolicy": "match-viewer", “,
" "HTTPPort": 80, “,
" "HTTPSPort": 443”,
" }, “,
" "Id": "www.example.ch", “,
" "DomainName": "www.example.ch"”,
" }”,
" ], “,
" "Quantity": 2”,
" }, “,
" "DomainName": "example.cloudfront.net", “,
" "PriceClass": "PriceClass_100", “,
" "Enabled": true, “,
" "DefaultCacheBehavior": {”,
" "TrustedSigners": {”,
" "Enabled": false, “,
" "Quantity": 0”,
" }, “,
" "TargetOriginId": "www.example.ch", “,
" "ViewerProtocolPolicy": "allow-all", “,
" "ForwardedValues": {”,
" "Headers": {”,
" "Quantity": 0”,
" }, “,
" "Cookies": {”,
" "Forward": "none"”,
" }, “,
" "QueryString": true”,
" }, “,
" "SmoothStreaming": false, “,
" "AllowedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "CachedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "Quantity": 2”,
" }, “,
" "Quantity": 2”,
" }, “,
" "MinTTL": 0”,
" }, “,
" "Comment": null, “,
" "ViewerCertificate": {”,
" "CloudFrontDefaultCertificate": true, “,
" "MinimumProtocolVersion": "SSLv3"”,
" }, “,
" "CustomErrorResponses": {”,
" "Quantity": 0”,
" }, “,
" "LastModifiedTime": "2014-09-25T16:39:19.018Z", “,
" "Id": "E3PSH9W4NXHA57", “,
" "Restrictions": {”,
" "GeoRestriction": {”,
" "RestrictionType": "none", “,
" "Quantity": 0”,
" }”,
" }, “,
" "Aliases": {”,
" "Items": [”,
" "cdn.example.ch"“,
" ], “,
" "Quantity": 1”,
" }”,
" }, “,
" {”,
" "Status": "Deployed", “,
" "CacheBehaviors": {”,
" "Items": [“,
" {”,
" "TrustedSigners": {“,
" "Enabled": false, “,
" "Quantity": 0”,
" }, “,
" "TargetOriginId": "www.example.co.uk", “,
" "ViewerProtocolPolicy": "allow-all", “,
" "ForwardedValues": {”,
" "Headers": {”,
" "Quantity": 0”,
" }, “,
" "Cookies": {”,
" "Forward": "none"”,
" }, “,
" "QueryString": true”,
" }, “,
" "PathPattern": "catalog/", “,
" "SmoothStreaming": false, “,
" "AllowedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "CachedMethods": {”,
" "Items": [“,
" "GET", “,
" "HEAD"”,
" ], “,
" "Quantity": 2”,
" }, “,
" "Quantity": 2”,
" }, “,
" "MinTTL": 0”,
" }”,
" ], “,
" "Quantity": 1”,
" }, “,
" "Origins": {”,
" "Items": [“,
" {”,
" "CustomOriginConfig": {“,
" "OriginProtocolPolicy": "match-viewer", “,
" "HTTPPort": 80, “,
" "HTTPSPort": 443”,
" }, “,
" "Id": "www.example.co.uk", “,
" "DomainName": "www.example.co.uk"”,
" }, “,
" {”,
" "S3OriginConfig": {”,
" "OriginAccessIdentity": null”,
" }, “,
" "Id": "S3-example-bucket", “,
" "DomainName": "example-bucket.s3.amazonaws.com"”,
" }”,
" ], “,
" "Quantity": 2”,
" }, “,
" "DomainName": "example.cloudfront.net", “,
" "PriceClass": "PriceClass_100", “,
" "Enabled": true, “,
" "DefaultCacheBehavior": {”,
" "TrustedSigners": {”,
" "Enabled": false, “,
" "Quantity": 0”,
" }, “,
" "TargetOriginId": "www.example.co.uk", “,
" "ViewerProtocolPolicy": "allow-all", “,
" "ForwardedValues": {”,
" "Headers": {”,
" "Quantity": 0”,
" }, “,
" "Cookies": {”,
" "Forward": "none"”,
" }, “,
" "QueryString": true”,
" }, “,
" "SmoothStreaming": false, “,
" "AllowedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "CachedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "Quantity": 2”,
" }, “,
" "Quantity": 2”,
" }, “,
" "MinTTL": 0”,
" }, “,
" "Comment": null, “,
" "ViewerCertificate": {”,
" "CloudFrontDefaultCertificate": true, “,
" "MinimumProtocolVersion": "SSLv3"”,
" }, “,
" "CustomErrorResponses": {”,
" "Quantity": 0”,
" }, “,
" "LastModifiedTime": "2014-09-25T16:43:59.824Z", “,
" "Id": "E1B61P76OTSUBW", “,
" "Restrictions": {”,
" "GeoRestriction": {”,
" "RestrictionType": "none", “,
" "Quantity": 0”,
" }”,
" }, “,
" "Aliases": {”,
" "Items": [”,
" "cdn.example.co.uk"“,
" ], “,
" "Quantity": 1”,
" }”,
" }, “,
" {”,
" "Status": "Deployed", “,
" "CacheBehaviors": {”,
" "Items": [“,
" {”,
" "TrustedSigners": {“,
" "Enabled": false, “,
" "Quantity": 0”,
" }, “,
" "TargetOriginId": "S3-example-bucket", “,
" "ViewerProtocolPolicy": "allow-all", “,
" "ForwardedValues": {”,
" "Headers": {”,
" "Quantity": 0”,
" }, “,
" "Cookies": {”,
" "Forward": "none"”,
" }, “,
" "QueryString": true”,
" }, ",
" "PathPattern": "catalog/", “,
" "SmoothStreaming": false, “,
" "AllowedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "CachedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "Quantity": 2”,
" }, “,
" "Quantity": 2”,
" }, “,
" "MinTTL": 0”,
" }“,
" ], “,
" "Quantity": 1”,
" }, “,
" "Origins": {”,
" "Items": [”,
" {“,
" "S3OriginConfig": {”,
" "OriginAccessIdentity": null",
" }, “,
" "Id": "S3-example-bucket", “,
" "DomainName": "example-bucket.s3.amazonaws.com"”,
" }, “,
" {”,
" "CustomOriginConfig": {”,
" "OriginProtocolPolicy": "match-viewer", “,
" "HTTPPort": 80, “,
" "HTTPSPort": 443”,
" }, “,
" "Id": "www.example.fr", “,
" "DomainName": "www.example.fr"”,
" }”,
" ], “,
" "Quantity": 2”,
" }, “,
" "DomainName": "example.cloudfront.net", “,
" "PriceClass": "PriceClass_100", “,
" "Enabled": true, “,
" "DefaultCacheBehavior": {”,
" "TrustedSigners": {”,
" "Enabled": false, “,
" "Quantity": 0”,
" }, “,
" "TargetOriginId": "www.example.fr", “,
" "ViewerProtocolPolicy": "allow-all", “,
" "ForwardedValues": {”,
" "Headers": {”,
" "Quantity": 0”,
" }, “,
" "Cookies": {”,
" "Forward": "none"”,
" }, “,
" "QueryString": true”,
" }, “,
" "SmoothStreaming": false, “,
" "AllowedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "CachedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "Quantity": 2”,
" }, “,
" "Quantity": 2”,
" }, “,
" "MinTTL": 0”,
" }, “,
" "Comment": null, “,
" "ViewerCertificate": {”,
" "CloudFrontDefaultCertificate": true, “,
" "MinimumProtocolVersion": "SSLv3"”,
" }, “,
" "CustomErrorResponses": {”,
" "Quantity": 0”,
" }, “,
" "LastModifiedTime": "2014-09-25T16:37:14.157Z", “,
" "Id": "E2Z2TQAXPE6IGF", “,
" "Restrictions": {”,
" "GeoRestriction": {”,
" "RestrictionType": "none", “,
" "Quantity": 0”,
" }”,
" }, “,
" "Aliases": {”,
" "Items": [”,
" "cdn.example.fr"“,
" ], “,
" "Quantity": 1”,
" }”,
" }, “,
" {”,
" "Status": "Deployed", “,
" "CacheBehaviors": {”,
" "Items": [“,
" {”,
" "TrustedSigners": {“,
" "Enabled": false, “,
" "Quantity": 0”,
" }, “,
" "TargetOriginId": "S3-example-bucket", “,
" "ViewerProtocolPolicy": "allow-all", “,
" "ForwardedValues": {”,
" "Headers": {”,
" "Quantity": 0”,
" }, “,
" "Cookies": {”,
" "Forward": "none"”,
" }, “,
" "QueryString": true”,
" }, “,
" "PathPattern": "catalog/", “,
" "SmoothStreaming": false, “,
" "AllowedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "CachedMethods": {”,
" "Items": [“,
" "GET", “,
" "HEAD"”,
" ], “,
" "Quantity": 2”,
" }, “,
" "Quantity": 2”,
" }, “,
" "MinTTL": 0”,
" }”,
" ], “,
" "Quantity": 1”,
" }, “,
" "Origins": {”,
" "Items": [“,
" {”,
" "CustomOriginConfig": {“,
" "OriginProtocolPolicy": "match-viewer", “,
" "HTTPPort": 80, “,
" "HTTPSPort": 443”,
" }, “,
" "Id": "www.example.it", “,
" "DomainName": "www.example.it"”,
" }, “,
" {”,
" "S3OriginConfig": {”,
" "OriginAccessIdentity": null”,
" }, “,
" "Id": "S3-example-bucket", “,
" "DomainName": "example-bucket.s3.amazonaws.com"”,
" }”,
" ], “,
" "Quantity": 2”,
" }, “,
" "DomainName": "example.cloudfront.net", “,
" "PriceClass": "PriceClass_100", “,
" "Enabled": true, “,
" "DefaultCacheBehavior": {”,
" "TrustedSigners": {”,
" "Enabled": false, “,
" "Quantity": 0”,
" }, “,
" "TargetOriginId": "www.example.it", “,
" "ViewerProtocolPolicy": "allow-all", “,
" "ForwardedValues": {”,
" "Headers": {”,
" "Quantity": 0”,
" }, “,
" "Cookies": {”,
" "Forward": "none"”,
" }, “,
" "QueryString": true”,
" }, “,
" "SmoothStreaming": false, “,
" "AllowedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "CachedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "Quantity": 2”,
" }, “,
" "Quantity": 2”,
" }, “,
" "MinTTL": 0”,
" }, “,
" "Comment": null, “,
" "ViewerCertificate": {”,
" "CloudFrontDefaultCertificate": true, “,
" "MinimumProtocolVersion": "SSLv3"”,
" }, “,
" "CustomErrorResponses": {”,
" "Quantity": 0”,
" }, “,
" "LastModifiedTime": "2014-09-25T16:33:44.478Z", “,
" "Id": "E2VW6BL67APKXK", “,
" "Restrictions": {”,
" "GeoRestriction": {”,
" "RestrictionType": "none", “,
" "Quantity": 0”,
" }”,
" }, “,
" "Aliases": {”,
" "Items": [”,
" "cdn.example.it"“,
" ], “,
" "Quantity": 1”,
" }”,
" }, “,
" {”,
" "Status": "Deployed", “,
" "CacheBehaviors": {”,
" "Items": [“,
" {”,
" "TrustedSigners": {“,
" "Enabled": false, “,
" "Quantity": 0”,
" }, “,
" "TargetOriginId": "www.example.se", “,
" "ViewerProtocolPolicy": "allow-all", “,
" "ForwardedValues": {”,
" "Headers": {”,
" "Quantity": 0”,
" }, “,
" "Cookies": {”,
" "Forward": "none"”,
" }, “,
" "QueryString": true”,
" }, ",
" "PathPattern": "catalog/", “,
" "SmoothStreaming": false, “,
" "AllowedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "CachedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "Quantity": 2”,
" }, “,
" "Quantity": 2”,
" }, “,
" "MinTTL": 0”,
" }“,
" ], “,
" "Quantity": 1”,
" }, “,
" "Origins": {”,
" "Items": [”,
" {“,
" "CustomOriginConfig": {”,
" "OriginProtocolPolicy": "match-viewer", “,
" "HTTPPort": 80, “,
" "HTTPSPort": 443”,
" }, “,
" "Id": "www.example.se", “,
" "DomainName": "www.example.se"”,
" }, “,
" {”,
" "S3OriginConfig": {”,
" "OriginAccessIdentity": null”,
" }, “,
" "Id": "S3-example-bucket", “,
" "DomainName": "example-bucket.s3.amazonaws.com"”,
" }”,
" ], “,
" "Quantity": 2”,
" }, “,
" "DomainName": "example.cloudfront.net", “,
" "PriceClass": "PriceClass_100", “,
" "Enabled": true, “,
" "DefaultCacheBehavior": {”,
" "TrustedSigners": {”,
" "Enabled": false, “,
" "Quantity": 0”,
" }, “,
" "TargetOriginId": "www.example.se", “,
" "ViewerProtocolPolicy": "allow-all", “,
" "ForwardedValues": {”,
" "Headers": {”,
" "Quantity": 0”,
" }, “,
" "Cookies": {”,
" "Forward": "none"”,
" }, “,
" "QueryString": true”,
" }, “,
" "SmoothStreaming": false, “,
" "AllowedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "CachedMethods": {”,
" "Items": [”,
" "GET", “,
" "HEAD"”,
" ], “,
" "Quantity": 2”,
" }, “,
" "Quantity": 2”,
" }, “,
" "MinTTL": 0”,
" }, “,
" "Comment": null, “,
" "ViewerCertificate": {”,
" "CloudFrontDefaultCertificate": true, “,
" "MinimumProtocolVersion": "SSLv3"”,
" }, “,
" "CustomErrorResponses": {”,
" "Quantity": 0”,
" }, “,
" "LastModifiedTime": "2014-09-25T16:45:46.263Z", “,
" "Id": "E15I1ED6UWY838", “,
" "Restrictions": {”,
" "GeoRestriction": {”,
" "RestrictionType": "none", “,
" "Quantity": 0”,
" }”,
" }, “,
" "Aliases": {”,
" "Items": [“,
" "cdn.example.se"”,
" ], “,
" "Quantity": 1”,
" }“,
" }”,
" ]“,
" }”,
“}”
],
“warnings”:
}
}
}
`
The problem is when I try to parse the JSON from the stdout and loop through the array objects:
`
-
set_fact:
parsed: “{{ distributions_list.stdout|from_json }}” -
command: echo {{ item }}
with_items: -
“{{ parsed.DistributionList.Items }}”
`
That outputs this mangled result:
`
TASK: [cloudfront | command echo {{ item }}] **********************************
changed: [localhost] => (item={u’Status’: u’Deployed’, u’Comment’: u’TEST COM distribution’, u’Origins’: {u’Items’: [{u’S3OriginConfig’: {u’OriginAccessIdentity’: None}, u’Id’: u’S3-example-bucket’, u’DomainName’: u’example-bucket.s3.amazonaws.com’}, {u’DomainName’: u’awss1.example.com’, u’Id’: u’awss1.example.com’, u’CustomOriginConfig’: {u’OriginProtocolPolicy’: u’match-viewer’, u’HTTPPort’: 80, u’HTTPSPort’: 443}}], u’Quantity’: 2}, u’PriceClass’: u’PriceClass_100’, u’DomainName’: u’example.cloudfront.net’, u’Enabled’: True, u’Id’: u’E13GR8T7XAD5CA’, u’DefaultCacheBehavior’: {u’ViewerProtocolPolicy’: u’allow-all’, u’ForwardedValues’: {u’Headers’: {u’Quantity’: 0}, u’Cookies’: {u’Forward’: u’none’}, u’QueryString’: True}, u’SmoothStreaming’: False, u’TargetOriginId’: u’awss1.example.com’, u’AllowedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2, u’CachedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2}}, u’TrustedSigners’: {u’Enabled’: False, u’Quantity’: 0}, u’MinTTL’: 0}, u’ViewerCertificate’: {u’CloudFrontDefaultCertificate’: True, u’MinimumProtocolVersion’: u’SSLv3’}, u’CustomErrorResponses’: {u’Quantity’: 0}, u’LastModifiedTime’: u’2014-07-15T14:06:11.596Z’, u’CacheBehaviors’: {u’Items’: [{u’TrustedSigners’: {u’Enabled’: False, u’Quantity’: 0}, u’SmoothStreaming’: False, u’TargetOriginId’: u’S3-example-bucket’, u’ViewerProtocolPolicy’: u’allow-all’, u’ForwardedValues’: {u’Headers’: {u’Quantity’: 0}, u’Cookies’: {u’Forward’: u’none’}, u’QueryString’: True}, u’PathPattern’: u’catalog/‘, u’AllowedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2, u’CachedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2}}, u’MinTTL’: 0}], u’Quantity’: 1}, u’Restrictions’: {u’GeoRestriction’: {u’RestrictionType’: u’none’, u’Quantity’: 0}}, u’Aliases’: {u’Items’: [u’cdn-awss1.example.com’], u’Quantity’: 1}})
changed: [localhost] => (item={u’Status’: u’Deployed’, u’Comment’: u’MAIN’, u’Origins’: {u’Items’: [{u’DomainName’: u’www.example.com’, u’Id’: u’www.example.com’, u’CustomOriginConfig’: {u’OriginProtocolPolicy’: u’match-viewer’, u’HTTPPort’: 80, u’HTTPSPort’: 443}}, {u’S3OriginConfig’: {u’OriginAccessIdentity’: None}, u’Id’: u’S3-example-bucket’, u’DomainName’: u’example-bucket.s3.amazonaws.com’}], u’Quantity’: 2}, u’PriceClass’: u’PriceClass_All’, u’DomainName’: u’example.cloudfront.net’, u’Enabled’: True, u’Id’: u’E2DFOYRWGTHH3E’, u’DefaultCacheBehavior’: {u’ViewerProtocolPolicy’: u’allow-all’, u’ForwardedValues’: {u’Headers’: {u’Quantity’: 0}, u’Cookies’: {u’Forward’: u’none’}, u’QueryString’: True}, u’SmoothStreaming’: False, u’TargetOriginId’: u’www.example.com’, u’AllowedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2, u’CachedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2}}, u’TrustedSigners’: {u’Enabled’: False, u’Quantity’: 0}, u’MinTTL’: 0}, u’ViewerCertificate’: {u’CloudFrontDefaultCertificate’: True, u’MinimumProtocolVersion’: u’SSLv3’}, u’CustomErrorResponses’: {u’Quantity’: 0}, u’LastModifiedTime’: u’2014-09-25T15:59:31.104Z’, u’CacheBehaviors’: {u’Items’: [{u’TrustedSigners’: {u’Enabled’: False, u’Quantity’: 0}, u’SmoothStreaming’: False, u’TargetOriginId’: u’S3-example-bucket’, u’ViewerProtocolPolicy’: u’allow-all’, u’ForwardedValues’: {u’Headers’: {u’Quantity’: 0}, u’Cookies’: {u’Forward’: u’none’}, u’QueryString’: True}, u’PathPattern’: u’catalog/‘, u’AllowedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2, u’CachedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2}}, u’MinTTL’: 0}], u’Quantity’: 1}, u’Restrictions’: {u’GeoRestriction’: {u’RestrictionType’: u’none’, u’Quantity’: 0}}, u’Aliases’: {u’Items’: [u’cdn.example.com’], u’Quantity’: 1}})
changed: [localhost] => (item={u’Status’: u’Deployed’, u’Comment’: None, u’Origins’: {u’Items’: [{u’DomainName’: u’www.example.at’, u’Id’: u’www.example.at’, u’CustomOriginConfig’: {u’OriginProtocolPolicy’: u’match-viewer’, u’HTTPPort’: 80, u’HTTPSPort’: 443}}, {u’S3OriginConfig’: {u’OriginAccessIdentity’: None}, u’Id’: u’S3-example-bucket’, u’DomainName’: u’example-bucket.s3.amazonaws.com’}], u’Quantity’: 2}, u’PriceClass’: u’PriceClass_100’, u’DomainName’: u’example.cloudfront.net’, u’Enabled’: True, u’Id’: u’E22AVVEP0UA3N7’, u’DefaultCacheBehavior’: {u’ViewerProtocolPolicy’: u’allow-all’, u’ForwardedValues’: {u’Headers’: {u’Quantity’: 0}, u’Cookies’: {u’Forward’: u’none’}, u’QueryString’: True}, u’SmoothStreaming’: False, u’TargetOriginId’: u’www.example.at’, u’AllowedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2, u’CachedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2}}, u’TrustedSigners’: {u’Enabled’: False, u’Quantity’: 0}, u’MinTTL’: 0}, u’ViewerCertificate’: {u’CloudFrontDefaultCertificate’: True, u’MinimumProtocolVersion’: u’SSLv3’}, u’CustomErrorResponses’: {u’Quantity’: 0}, u’LastModifiedTime’: u’2014-09-25T16:40:38.162Z’, u’CacheBehaviors’: {u’Items’: [{u’TrustedSigners’: {u’Enabled’: False, u’Quantity’: 0}, u’SmoothStreaming’: False, u’TargetOriginId’: u’S3-example-bucket’, u’ViewerProtocolPolicy’: u’allow-all’, u’ForwardedValues’: {u’Headers’: {u’Quantity’: 0}, u’Cookies’: {u’Forward’: u’none’}, u’QueryString’: True}, u’PathPattern’: u’catalog/‘, u’AllowedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2, u’CachedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2}}, u’MinTTL’: 0}], u’Quantity’: 1}, u’Restrictions’: {u’GeoRestriction’: {u’RestrictionType’: u’none’, u’Quantity’: 0}}, u’Aliases’: {u’Items’: [u’cdn.example.at’], u’Quantity’: 1}})
changed: [localhost] => (item={u’Status’: u’Deployed’, u’Comment’: None, u’Origins’: {u’Items’: [{u’S3OriginConfig’: {u’OriginAccessIdentity’: None}, u’Id’: u’S3-example-bucket’, u’DomainName’: u’example-bucket.s3.amazonaws.com’}, {u’DomainName’: u’www.example.ch’, u’Id’: u’www.example.ch’, u’CustomOriginConfig’: {u’OriginProtocolPolicy’: u’match-viewer’, u’HTTPPort’: 80, u’HTTPSPort’: 443}}], u’Quantity’: 2}, u’PriceClass’: u’PriceClass_100’, u’DomainName’: u’example.cloudfront.net’, u’Enabled’: True, u’Id’: u’E3PSH9W4NXHA57’, u’DefaultCacheBehavior’: {u’ViewerProtocolPolicy’: u’allow-all’, u’ForwardedValues’: {u’Headers’: {u’Quantity’: 0}, u’Cookies’: {u’Forward’: u’none’}, u’QueryString’: True}, u’SmoothStreaming’: False, u’TargetOriginId’: u’www.example.ch’, u’AllowedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2, u’CachedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2}}, u’TrustedSigners’: {u’Enabled’: False, u’Quantity’: 0}, u’MinTTL’: 0}, u’ViewerCertificate’: {u’CloudFrontDefaultCertificate’: True, u’MinimumProtocolVersion’: u’SSLv3’}, u’CustomErrorResponses’: {u’Quantity’: 0}, u’LastModifiedTime’: u’2014-09-25T16:39:19.018Z’, u’CacheBehaviors’: {u’Items’: [{u’TrustedSigners’: {u’Enabled’: False, u’Quantity’: 0}, u’SmoothStreaming’: False, u’TargetOriginId’: u’S3-example-bucket’, u’ViewerProtocolPolicy’: u’allow-all’, u’ForwardedValues’: {u’Headers’: {u’Quantity’: 0}, u’Cookies’: {u’Forward’: u’none’}, u’QueryString’: True}, u’PathPattern’: u’catalog/‘, u’AllowedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2, u’CachedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2}}, u’MinTTL’: 0}], u’Quantity’: 1}, u’Restrictions’: {u’GeoRestriction’: {u’RestrictionType’: u’none’, u’Quantity’: 0}}, u’Aliases’: {u’Items’: [u’cdn.example.ch’], u’Quantity’: 1}})
changed: [localhost] => (item={u’Status’: u’Deployed’, u’Comment’: None, u’Origins’: {u’Items’: [{u’DomainName’: u’www.example.co.uk’, u’Id’: u’www.example.co.uk’, u’CustomOriginConfig’: {u’OriginProtocolPolicy’: u’match-viewer’, u’HTTPPort’: 80, u’HTTPSPort’: 443}}, {u’S3OriginConfig’: {u’OriginAccessIdentity’: None}, u’Id’: u’S3-example-bucket’, u’DomainName’: u’example-bucket.s3.amazonaws.com’}], u’Quantity’: 2}, u’PriceClass’: u’PriceClass_100’, u’DomainName’: u’example.cloudfront.net’, u’Enabled’: True, u’Id’: u’E1B61P76OTSUBW’, u’DefaultCacheBehavior’: {u’ViewerProtocolPolicy’: u’allow-all’, u’ForwardedValues’: {u’Headers’: {u’Quantity’: 0}, u’Cookies’: {u’Forward’: u’none’}, u’QueryString’: True}, u’SmoothStreaming’: False, u’TargetOriginId’: u’www.example.co.uk’, u’AllowedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2, u’CachedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2}}, u’TrustedSigners’: {u’Enabled’: False, u’Quantity’: 0}, u’MinTTL’: 0}, u’ViewerCertificate’: {u’CloudFrontDefaultCertificate’: True, u’MinimumProtocolVersion’: u’SSLv3’}, u’CustomErrorResponses’: {u’Quantity’: 0}, u’LastModifiedTime’: u’2014-09-25T16:43:59.824Z’, u’CacheBehaviors’: {u’Items’: [{u’TrustedSigners’: {u’Enabled’: False, u’Quantity’: 0}, u’SmoothStreaming’: False, u’TargetOriginId’: u’www.example.co.uk’, u’ViewerProtocolPolicy’: u’allow-all’, u’ForwardedValues’: {u’Headers’: {u’Quantity’: 0}, u’Cookies’: {u’Forward’: u’none’}, u’QueryString’: True}, u’PathPattern’: u’catalog/‘, u’AllowedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2, u’CachedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2}}, u’MinTTL’: 0}], u’Quantity’: 1}, u’Restrictions’: {u’GeoRestriction’: {u’RestrictionType’: u’none’, u’Quantity’: 0}}, u’Aliases’: {u’Items’: [u’cdn.example.co.uk’], u’Quantity’: 1}})
changed: [localhost] => (item={u’Status’: u’Deployed’, u’Comment’: None, u’Origins’: {u’Items’: [{u’S3OriginConfig’: {u’OriginAccessIdentity’: None}, u’Id’: u’S3-example-bucket’, u’DomainName’: u’example-bucket.s3.amazonaws.com’}, {u’DomainName’: u’www.example.fr’, u’Id’: u’www.example.fr’, u’CustomOriginConfig’: {u’OriginProtocolPolicy’: u’match-viewer’, u’HTTPPort’: 80, u’HTTPSPort’: 443}}], u’Quantity’: 2}, u’PriceClass’: u’PriceClass_100’, u’DomainName’: u’example.cloudfront.net’, u’Enabled’: True, u’Id’: u’E2Z2TQAXPE6IGF’, u’DefaultCacheBehavior’: {u’ViewerProtocolPolicy’: u’allow-all’, u’ForwardedValues’: {u’Headers’: {u’Quantity’: 0}, u’Cookies’: {u’Forward’: u’none’}, u’QueryString’: True}, u’SmoothStreaming’: False, u’TargetOriginId’: u’www.example.fr’, u’AllowedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2, u’CachedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2}}, u’TrustedSigners’: {u’Enabled’: False, u’Quantity’: 0}, u’MinTTL’: 0}, u’ViewerCertificate’: {u’CloudFrontDefaultCertificate’: True, u’MinimumProtocolVersion’: u’SSLv3’}, u’CustomErrorResponses’: {u’Quantity’: 0}, u’LastModifiedTime’: u’2014-09-25T16:37:14.157Z’, u’CacheBehaviors’: {u’Items’: [{u’TrustedSigners’: {u’Enabled’: False, u’Quantity’: 0}, u’SmoothStreaming’: False, u’TargetOriginId’: u’S3-example-bucket’, u’ViewerProtocolPolicy’: u’allow-all’, u’ForwardedValues’: {u’Headers’: {u’Quantity’: 0}, u’Cookies’: {u’Forward’: u’none’}, u’QueryString’: True}, u’PathPattern’: u’catalog/‘, u’AllowedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2, u’CachedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2}}, u’MinTTL’: 0}], u’Quantity’: 1}, u’Restrictions’: {u’GeoRestriction’: {u’RestrictionType’: u’none’, u’Quantity’: 0}}, u’Aliases’: {u’Items’: [u’cdn.example.fr’], u’Quantity’: 1}})
changed: [localhost] => (item={u’Status’: u’Deployed’, u’Comment’: None, u’Origins’: {u’Items’: [{u’DomainName’: u’www.example.it’, u’Id’: u’www.example.it’, u’CustomOriginConfig’: {u’OriginProtocolPolicy’: u’match-viewer’, u’HTTPPort’: 80, u’HTTPSPort’: 443}}, {u’S3OriginConfig’: {u’OriginAccessIdentity’: None}, u’Id’: u’S3-example-bucket’, u’DomainName’: u’example-bucket.s3.amazonaws.com’}], u’Quantity’: 2}, u’PriceClass’: u’PriceClass_100’, u’DomainName’: u’example.cloudfront.net’, u’Enabled’: True, u’Id’: u’E2VW6BL67APKXK’, u’DefaultCacheBehavior’: {u’ViewerProtocolPolicy’: u’allow-all’, u’ForwardedValues’: {u’Headers’: {u’Quantity’: 0}, u’Cookies’: {u’Forward’: u’none’}, u’QueryString’: True}, u’SmoothStreaming’: False, u’TargetOriginId’: u’www.example.it’, u’AllowedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2, u’CachedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2}}, u’TrustedSigners’: {u’Enabled’: False, u’Quantity’: 0}, u’MinTTL’: 0}, u’ViewerCertificate’: {u’CloudFrontDefaultCertificate’: True, u’MinimumProtocolVersion’: u’SSLv3’}, u’CustomErrorResponses’: {u’Quantity’: 0}, u’LastModifiedTime’: u’2014-09-25T16:33:44.478Z’, u’CacheBehaviors’: {u’Items’: [{u’TrustedSigners’: {u’Enabled’: False, u’Quantity’: 0}, u’SmoothStreaming’: False, u’TargetOriginId’: u’S3-example-bucket’, u’ViewerProtocolPolicy’: u’allow-all’, u’ForwardedValues’: {u’Headers’: {u’Quantity’: 0}, u’Cookies’: {u’Forward’: u’none’}, u’QueryString’: True}, u’PathPattern’: u’catalog/‘, u’AllowedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2, u’CachedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2}}, u’MinTTL’: 0}], u’Quantity’: 1}, u’Restrictions’: {u’GeoRestriction’: {u’RestrictionType’: u’none’, u’Quantity’: 0}}, u’Aliases’: {u’Items’: [u’cdn.example.it’], u’Quantity’: 1}})
changed: [localhost] => (item={u’Status’: u’Deployed’, u’Comment’: None, u’Origins’: {u’Items’: [{u’DomainName’: u’www.example.se’, u’Id’: u’www.example.se’, u’CustomOriginConfig’: {u’OriginProtocolPolicy’: u’match-viewer’, u’HTTPPort’: 80, u’HTTPSPort’: 443}}, {u’S3OriginConfig’: {u’OriginAccessIdentity’: None}, u’Id’: u’S3-example-bucket’, u’DomainName’: u’example-bucket.s3.amazonaws.com’}], u’Quantity’: 2}, u’PriceClass’: u’PriceClass_100’, u’DomainName’: u’example.cloudfront.net’, u’Enabled’: True, u’Id’: u’E15I1ED6UWY838’, u’DefaultCacheBehavior’: {u’ViewerProtocolPolicy’: u’allow-all’, u’ForwardedValues’: {u’Headers’: {u’Quantity’: 0}, u’Cookies’: {u’Forward’: u’none’}, u’QueryString’: True}, u’SmoothStreaming’: False, u’TargetOriginId’: u’www.example.se’, u’AllowedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2, u’CachedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2}}, u’TrustedSigners’: {u’Enabled’: False, u’Quantity’: 0}, u’MinTTL’: 0}, u’ViewerCertificate’: {u’CloudFrontDefaultCertificate’: True, u’MinimumProtocolVersion’: u’SSLv3’}, u’CustomErrorResponses’: {u’Quantity’: 0}, u’LastModifiedTime’: u’2014-09-25T16:45:46.263Z’, u’CacheBehaviors’: {u’Items’: [{u’TrustedSigners’: {u’Enabled’: False, u’Quantity’: 0}, u’SmoothStreaming’: False, u’TargetOriginId’: u’www.example.se’, u’ViewerProtocolPolicy’: u’allow-all’, u’ForwardedValues’: {u’Headers’: {u’Quantity’: 0}, u’Cookies’: {u’Forward’: u’none’}, u’QueryString’: True}, u’PathPattern’: u’catalog/‘, u’AllowedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2, u’CachedMethods’: {u’Items’: [u’GET’, u’HEAD’], u’Quantity’: 2}}, u’MinTTL’: 0}], u’Quantity’: 1}, u’Restrictions’: {u’GeoRestriction’: {u’RestrictionType’: u’none’, u’Quantity’: 0}}, u’Aliases’: {u’Items’: [u’cdn.example.se’], u’Quantity’: 1}})
`
When trying to access any property or key inside the object, it will keep showing the same output as above.
Any hints would be greatly appreciated.
Thanks.