{"action":"created","issue":{"url":"https://api.github.com/repos/cloudtools/troposphere/issues/566","repository_url":"https://api.github.com/repos/cloudtools/troposphere","labels_url":"https://api.github.com/repos/cloudtools/troposphere/issues/566/labels{/name}","comments_url":"https://api.github.com/repos/cloudtools/troposphere/issues/566/comments","events_url":"https://api.github.com/repos/cloudtools/troposphere/issues/566/events","html_url":"https://github.com/cloudtools/troposphere/issues/566","id":177460736,"number":566,"title":"Fn::GetAtt for Cloudfront Distribution returns the entire object definition ","user":{"login":"markhorta","id":7356278,"avatar_url":"https://avatars.githubusercontent.com/u/7356278?v=3","gravatar_id":"","url":"https://api.github.com/users/markhorta","html_url":"https://github.com/markhorta","followers_url":"https://api.github.com/users/markhorta/followers","following_url":"https://api.github.com/users/markhorta/following{/other_user}","gists_url":"https://api.github.com/users/markhorta/gists{/gist_id}","starred_url":"https://api.github.com/users/markhorta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markhorta/subscriptions","organizations_url":"https://api.github.com/users/markhorta/orgs","repos_url":"https://api.github.com/users/markhorta/repos","events_url":"https://api.github.com/users/markhorta/events{/privacy}","received_events_url":"https://api.github.com/users/markhorta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-16T15:57:15Z","updated_at":"2016-09-16T19:03:44Z","closed_at":null,"body":"Fn::GetAtt for Cloudfront Distribution returns the entire object definition as opposed to returning just the attribute being asked for.\r\n\r\ntemplate.add_output(Output(\r\n            \"CloudFrontDistributionEndpoint\",\r\n            Description=\"CloudFront distribution endpoint.\",\r\n            Value=GetAtt(cloudFrontDistribution, \"DomainName\")\r\n        ))\r\n\r\nReturns the following:\r\n\"Outputs\": {\r\n        \"CloudFrontDistributionEndpoint\": {\r\n            \"Description\": \"CloudFront distribution endpoint.\",\r\n            \"Value\": {\r\n                \"Fn::GetAtt\": [\r\n                    [\r\n                        {\r\n                            \"DependsOn\": [\r\n                                \"OriginS3BucketPolicyForCloudFront\"\r\n                            ],\r\n                            \"Properties\": {\r\n                                \"DistributionConfig\": {\r\n                                    \"Aliases\": [\r\n                                        {\r\n                                            \"Ref\": \"cloudFrontAlias\"\r\n                                        }\r\n                                    ],\r\n                                    \"Comment\": {   .............  etc.......\r\n       \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cloudtools/troposphere/issues/comments/247681396","html_url":"https://github.com/cloudtools/troposphere/issues/566#issuecomment-247681396","issue_url":"https://api.github.com/repos/cloudtools/troposphere/issues/566","id":247681396,"user":{"login":"markhorta","id":7356278,"avatar_url":"https://avatars.githubusercontent.com/u/7356278?v=3","gravatar_id":"","url":"https://api.github.com/users/markhorta","html_url":"https://github.com/markhorta","followers_url":"https://api.github.com/users/markhorta/followers","following_url":"https://api.github.com/users/markhorta/following{/other_user}","gists_url":"https://api.github.com/users/markhorta/gists{/gist_id}","starred_url":"https://api.github.com/users/markhorta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markhorta/subscriptions","organizations_url":"https://api.github.com/users/markhorta/orgs","repos_url":"https://api.github.com/users/markhorta/repos","events_url":"https://api.github.com/users/markhorta/events{/privacy}","received_events_url":"https://api.github.com/users/markhorta/received_events","type":"User","site_admin":false},"created_at":"2016-09-16T19:03:44Z","updated_at":"2016-09-16T19:03:44Z","body":"I'm assigning a Distribution object as follows below.  If I remove the output, the generated template provisions the Cloudfront distribution appropriately.  \r\n\r\n`cloudFrontDistribution = template.add_resource(Distribution(\r\n            cloudFrontDistributionName,\r\n            DistributionConfig=DistributionConfig(\r\n                Aliases=[Ref(cloudFrontAliasParam)],\r\n                Comment=Join(\"\", [\"Distribution for \", Ref(applicationNameParam)]),\r\n                CustomErrorResponses=[CustomErrorResponse(\r\n                    ErrorCachingMinTTL=300,\r\n                    ErrorCode=403,\r\n                    ResponseCode=404,\r\n                    ResponsePagePath=\"/404.html\",\r\n                )], ..... etc.......`"}}
{"actor":{"display_login":"markhorta"}}