Closed C-Otto closed 6 years ago
The AWS::CloudFront::CloudFrontOriginAccessIdentity resource provides an attribute named S3CanonicalUserId. Accessing it via !GetAtt results in an "unknown attribute" error.
AWS::CloudFront::CloudFrontOriginAccessIdentity
S3CanonicalUserId
!GetAtt
My attempt at fixing it:
diff --git a/src/main/resources/cloudformation-metadata.xml b/src/main/resources/cloudformation-metadata.xml index 1f271c3..cf32de5 100644 --- a/src/main/resources/cloudformation-metadata.xml +++ b/src/main/resources/cloudformation-metadata.xml @@ -3070,7 +3070,14 @@ </ResourceProperty> </entry> </properties> - <attributes class="linked-hash-map"/> + <attributes class="linked-hash-map"> + <entry> + <string>S3CanonicalUserId</string> + <ResourceAttribute> + <name>S3CanonicalUserId</name> + </ResourceAttribute> + </entry> + </attributes> </ResourceType> </entry> <entry>
fixed in 0.5.68
Thank you! That was quick :)
The
AWS::CloudFront::CloudFrontOriginAccessIdentity
resource provides an attribute namedS3CanonicalUserId
. Accessing it via!GetAtt
results in an "unknown attribute" error.My attempt at fixing it: