Skip to content

Terraform module for setting up state in s3 and locking in dynamodb

License

Notifications You must be signed in to change notification settings

neticdk/tf-aws-s3-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Terraform module for setting up state in s3 and locking in dynamodb

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages