Last active
September 20, 2022 21:54
-
-
Save Pelirrojo/b65c10daa5cf237940164ad42e9c124a to your computer and use it in GitHub Desktop.
Iac Cloudformation Template for creating an AWS S3 Bucket
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: 2010-09-09 | |
Resources: | |
S3Bucket: | |
Type: AWS::S3::Bucket | |
DeletionPolicy: Retain | |
Properties: | |
AccessControl: Private | |
BucketName: !Sub | |
- custom-bucket-name-${AccountID} | |
- AccountID: !Ref AWS::AccountId | |
Outputs: | |
BucketArn: | |
Value: !GetAtt S3Bucket.Arn | |
Description: ARN Bucket | |
BucketName: | |
Value: !Ref S3Bucket | |
Description: ARN Name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment