Skip to content

A terraform module that creates a tagged S3 bucket with federated assumed role access

License

Notifications You must be signed in to change notification settings

haploeco/terraform-s3-employee

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-s3-employee

A terraform module that creates a tagged S3 bucket with federated assumed role access.

Note that the role_users must be valid roles that exist in the same account that the script is run in.

Inputs

Name Description Type Default Required
bucket_name name of the bucket string - yes
role_users bucket access: list of federated assumed role users (e.g., aws-account-devops/[email protected]). Roles must exist in the target account and are case sensitive. list - yes
tag_application application tag string - yes
tag_contact-email contact-email tag string - yes
tag_customer customer tag string - yes
tag_environment environment tag string - yes
tag_team team tag string - yes
versioning enable versioning string false no
multipart_delete enable incomplete multipart upload deletion string true no
multipart_days incomplete multipart upload deletion days string 3 no

Outputs

Name Description
bucket_arn the arn of the bucket that was created

usage example

requires terraform >= 0.12

provider "aws" {
  profile = "aws-account:aws-account-devops"
}

module "s3_employee" {
  source      = "github.com/turnerlabs/terraform-s3-employee?ref=v1.0.0"
  
  bucket_name = "my-bucket"

  role_users = [
    "aws-account-devops/[email protected]",
    "aws-account-devops/[email protected]",
  ]

  tag_team          = "my-team"
  tag_contact-email = "[email protected]"
  tag_application   = "my-app"
  tag_environment   = "dev"
  tag_customer      = "my-customer"
}
terraform init
terraform plan
terraform apply

About

A terraform module that creates a tagged S3 bucket with federated assumed role access

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL 100.0%