Skip to content

Commit

Permalink
Merge pull request #4 from theonestack/inline-config
Browse files Browse the repository at this point in the history
inline the cloudfront config
  • Loading branch information
Guslington authored Nov 19, 2020
2 parents 163da07 + 1a10f41 commit 50b804a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion s3-cloudfront.cfhighlander.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
ComponentParam 'DnsDomain', isGlobal: true
end

Component name: cloudfront_component_name, template: 'cloudfront@master.snapshot', render: Inline do
Component name: cloudfront_component_name, template: 'cloudfront@master.snapshot', render: Inline, config: @config do
parameter name: "s3bucketOriginDomainName", value: FnGetAtt('Bucket', 'DomainName')
end

Expand Down
2 changes: 1 addition & 1 deletion s3-cloudfront.cfndsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Effect: 'Allow',
Action: 's3:GetObject',
Resource: FnJoin('', [ 'arn:aws:s3:::', Ref("Bucket"), '/*']),
Principal: { CanonicalUser: FnGetAtt('s3bucketOriginAccessIdentity', 'S3CanonicalUserId') }
Principal: { CanonicalUser: { "Fn::GetAtt" => ['s3bucketOriginAccessIdentity', 'S3CanonicalUserId'] }}
}
]
}
Expand Down

0 comments on commit 50b804a

Please sign in to comment.