Skip to content

Instantly share code, notes, and snippets.

@felipecosta09
Last active April 11, 2020 07:38
Show Gist options
  • Save felipecosta09/0ee32be4203ba21bf661356f4f5b9a55 to your computer and use it in GitHub Desktop.
Save felipecosta09/0ee32be4203ba21bf661356f4f5b9a55 to your computer and use it in GitHub Desktop.
S3 Bucket Creation
#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