Skip to content

Latest commit

 

History

History
91 lines (51 loc) · 1.49 KB

README.md

File metadata and controls

91 lines (51 loc) · 1.49 KB

INF-tf-s3 state

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.

Requirements

The following requirements are needed by this module:

  • terraform (>= 0.12)

Providers

The following providers are used by this module:

  • aws

Required Inputs

The following input variables are required:

environment

Description: the environment this bucket is used for (e.g. 'testing')

Type: string

name

Description: bucket name

Type: string

Optional Inputs

The following input variables are optional (have default values):

tags

Description: common tags to add to the ressources

Type: map(string)

Default: {}

versioning_enabled

Description: if bucket versioning is enabled

Type: bool

Default: true

Outputs

The following outputs are exported:

arn

Description: bucket arn

bucket

Description: bucket

bucket_regional_domain_name

Description: bucket name with region in domain

id

Description: bucket id

Usage

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
}