shalupov / idea-cloudformation

AWS CloudFormation plugin for IntelliJ-based IDEs (IntelliJ IDEA, RubyMine, WebStorm, PhpStorm, PyCharm, AppCode, Android Studio, DataGrip, CLion)
https://teamcity.jetbrains.com/viewType.html?buildTypeId=IdeaAwsCloudFormation_Master_Build&guest=1
Apache License 2.0
136 stars 27 forks source link

Add missing attribute S3CanonicalUserId for AWS::CloudFront::CloudFrontOriginAccessIdentity #131

Closed C-Otto closed 6 years ago

C-Otto commented 6 years ago

The AWS::CloudFront::CloudFrontOriginAccessIdentity resource provides an attribute named S3CanonicalUserId. Accessing it via !GetAtt results in an "unknown attribute" error.

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>
shalupov commented 6 years ago

fixed in 0.5.68

C-Otto commented 6 years ago

Thank you! That was quick :)