Skip to content

devops-workflow/terraform-aws-s3-buckets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCI

AWS S3 Buckets Terraform module

Terraform module which creates S3 buckets on AWS.

Terraform Registry: https://registry.terraform.io/modules/devops-workflow/s3-buckets/aws

Usage

module "s3-buckets" {
  source      = "devops-workflow/s3-buckets/aws"
  names       = ["bucket1", "bucket2", "bucket3"]
  environment = "dev"
  org         = "corp"
}

This would create/manage 3 S3 buckets: corp-dev-bucket1, corp-dev-bucket2, and corp-dev-bucket3

If a S3 bucket already exists, you will need to import it. Like this:

terraform import module.s3-buckets.aws_s3_bucket.this[0] corp-dev-bucket1