This Terraform project creates a private, versioned and encrypted AWS S3 bucket
At the end of the execution the output displays the S3 bucket's details
- AWS CLI configured with credentials to access AWS S3
- Terraform version >=0.12
Execute the terraform scripts as follows:
# Minimal invocation : Uses randomly generated alphanumeric team-name
terraform apply
# Recommended invocation : Uses randomly generated alphanumeric team-name
terraform apply -var "team-name=my-team-name"
The team-name
variable is optional, but highly recommended to be set as your team's name.
If not supplied a random string is generated and used as the team-name
The Terraform scripts will upload the contents of bucket_objects directory:
- This upload is recursive
- Changes to the content of the files will be propagated to S3
- File deletion is NOT propagated, so the Terraform scripts are not meant to be a replacement for AWS CLI's
s3 sync
Name | Description | Type | Default | Required |
---|---|---|---|---|
team-name | String used to prefix the S3 bucket. Random value used if not supplied. | string | "" |
no |
Name | Description |
---|---|
s3_bucket_arn | The ARN of the S3 bucket |
s3_bucket_aws_console_link | AWS Console link for the S3 bucket |
s3_bucket_name | The Name of the S3 bucket |
Copyright (c) 2017 Crown Copyright (Office for National Statistics)
Released under MIT license, see LICENSE for details.