s3-buckets

devops-workflow/s3-buckets/aws

Terraform Module HCL AWS

Terraform module to manage AWS S3 buckets

Install
module "s3-buckets" {
source = "devops-workflow/s3-buckets/aws"
version = "0.3.0"
}
plain text: /constructs/tfmod-devops-workflow-s3-buckets-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

![CircleCI](https://circleci.com/gh/devops-workflow/terraform-aws-s3-buckets) 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 ----- ``hcl 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: `Shell terraform import module.s3-buckets.aws_s3_bucket.this[0] corp-dev-bucket1 ``

Inputs (19)
NameTypeDescriptionDefault
namesanyList of S3 bucket names required
environmentanyEnvironment (ex: `dev`, `qa`, `stage`, `prod`). (Second or top level namespace. required
namespace-envanyPrefix name with the environment. If true, format is: <env>-<name>true
productanyTAG: Company/business product"UNDEF-S3-Buckets"
teamanyTAG: Department/team of people responsible for service"UNDEF-S3-Buckets"
versionedanyVersion the bucketfalse
namespace-organyPrefix name with the organization. If true, format is: <org>-<env namespaced namtrue
force_destroyanyDelete all objects in bucket on destroyfalse
attributesanySuffix name with additional attributes (policy, role, etc.)[]
componentanyTAG: Underlying, dedicated piece of service (Cache, DB, ...)"UNDEF-S3-Buckets"
delimiteranyDelimiter to be used between `name`, `namespaces`, `attributes`, etc."-"
organizationanyOrganization name (Top level namespace)""
owneranyTAG: Owner of the service"UNDEF-S3-Buckets"
principalanyprincipal"*"
monitoranyTAG: Should resource be monitored"UNDEF-S3-Buckets"
serviceanyTAG: Application (microservice) name"UNDEF-S3-Buckets"
tagsanyA map of additional tags{}
enabledanySet to false to prevent the module from creating anythingtrue
publicanyAllow public read access to bucketfalse
Outputs (6)
hosted_zone_ids — List of AWS S3 Bucket Hosted Zone IDs
ids — List of AWS S3 Bucket IDs
names — List of AWS S3 Bucket Names
regions — List of AWS S3 Bucket Regions
arns — List of AWS S3 Bucket ARNs
domain_names — List of AWS S3 Bucket Domain Names
Details
FrameworkTerraform Module
LanguageHCL
Version0.3.0
Cloud AWS
★ Stars9
Forks16
Total downloads10.5k
Inputs19
Outputs6
Examples5
Namespacedevops-workflow
Updated