Skip to content

Commit

Permalink
Added Arn Ourput to S3 cloudformation templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
gitwater committed May 5, 2021
1 parent 5b58224 commit 61379a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/paco/cftemplates/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ def __init__(self, stack, paco_ctx, bucket_context, bucket_policy_only):
value=troposphere.Ref(s3_resource),
ref=bucket.paco_ref_parts + '.name'
)
self.create_output(
title=s3_logical_id + 'Arn',
value=troposphere.GetAtt(s3_resource, 'Arn'),
ref=bucket.paco_ref_parts + '.arn'
)

# Bucket Policy
policy_statements = []
Expand Down

0 comments on commit 61379a1

Please sign in to comment.