Last active
April 11, 2020 07:38
-
-
Save felipecosta09/0ee32be4203ba21bf661356f4f5b9a55 to your computer and use it in GitHub Desktop.
S3 Bucket Creation
This file contains 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
#Create Bucket | |
aws s3api create-bucket --bucket prefix-example-com-state-store --region us-east-1 | |
#Enable Versioning | |
aws s3api put-bucket-versioning --bucket prefix-example-com-state-store --versioning-configuration Status=Enabled | |
#Enable Bucket Encryption | |
aws s3api put-bucket-encryption --bucket prefix-example-com-state-store --server-side-encryption-configuration '{"Rules":[{"ApplyServerSideEncryptionByDefault":{"SSEAlgorithm":"AES256"}}]}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment