Skip to content

Script preparing s3 bucket to handle terraform files

Notifications You must be signed in to change notification settings

gdajuk/s3-bucket-state

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

S3 BUCKET STATE

In this repository, you'll find a script which configures the AWS S3 backend to store terraform state files. Script do not take any arguments, so there 3 variables to set before usage:

bucket_name = Bucket name
profile     = AWS profile
region      = AWS region

Please note, that bucket name can be between 3 and 63 characters long, and can contain only lower-case characters, numbers, periods, and dashes. Each label in the bucket name must start with a lowercase letter or number. You need to use a unique bucket name when creating S3 bucket. All those 3 variables can be customized. Otherwise default one will be used.

To execute the script, simply run it:

./create_bucket.sh

About

Script preparing s3 bucket to handle terraform files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages