Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1.51 KB

README.md

File metadata and controls

49 lines (36 loc) · 1.51 KB

Netic AWS Terraform S3/DynamoDB Backend

Supported Terraform Versions

Terraform 0.12

Usage

module "tf_s3_backend" {
  source = "github.com/neticdk/tf-aws-s3-backend"

  bootstrap         = 1
  operator_role_arn = "arn:aws:iam::123456789012:role/operator-role"
  bucket            = "my-terraform-backend-bucket"
  dynamodb_table    = "my-terraform-dynamodb-lock-table"
  key               = "terraform.tfstate"
}

Inputs

Name Description Type Default Required
bootstrap Whether to initialize the backend or not string "0" no
bucket Name of S3 bucket string n/a yes
bucket_lifecycle_enabled Enable/disable bucket lifecycle string "true" no
bucket_lifecycle_expiration_days Days to keep noncurrent versions before expiration string "90" no
bucket_versioning_enabled Enable/disable bucket versioning string "true" no
dynamodb_table Name of DynamoDB table string n/a yes
key Name of S3 key string n/a yes
operator_role_arn ARN of role to use for running terraform string n/a yes
tags A map of tags to add to all resources map <map> no

Outputs

Name Description
operator_role_arn

Copyright

Copyright (c) 2019 Netic A/S. All rights reserved.

License

MIT Licened. See LICENSE for full details.