Terraform module for creating a aws s3 state bucket
NOTE: bucket names have to be unique globally
This project is internal open source and currently maintained by the INF.
The following requirements are needed by this module:
- terraform (>= 0.12)
The following providers are used by this module:
- aws
The following input variables are required:
Description: the environment this bucket is used for (e.g. 'testing')
Type: string
Description: bucket name
Type: string
The following input variables are optional (have default values):
Description: common tags to add to the ressources
Type: map(string)
Default: {}
Description: if bucket versioning is enabled
Type: bool
Default: true
The following outputs are exported:
Description: bucket arn
Description: bucket
Description: bucket name with region in domain
Description: bucket id
module "state" {
source = "github.com/ryte/INF-tf-s3//state?ref=v0.4.3"
name = var.remote_state_bucket
tags = local.common_tags
environment = var.environment
versioning_enabled = true
}