Skip to content

Latest commit

 

History

History
63 lines (47 loc) · 3.1 KB

README.md

File metadata and controls

63 lines (47 loc) · 3.1 KB

AWS Terraform backend module

Terraform module which creates terraform backend resources on AWS.

Usage

module "aws_remote_backend" {
  source  = "app.terraform.io/skafte/remote-backend/aws"

  tags = {
    Terraform = "true"
  }
}

Requirements

Name Version
terraform >= 1.2
aws ~> 4.0

Providers

Name Version
aws 4.59.0

Modules

No modules.

Resources

Name Type
aws_dynamodb_table.terraform_state_lock resource
aws_s3_bucket.terraform_state_backend resource
aws_s3_bucket_acl.terraform_state_backend resource
aws_s3_bucket_policy.terraform_state_backend resource
aws_s3_bucket_public_access_block.terraform_state_backend resource
aws_s3_bucket_server_side_encryption_configuration.terraform_state_backend resource
aws_s3_bucket_versioning.terraform_state_backend resource
aws_caller_identity.current data source
aws_iam_policy_document.terraform_state_backend data source

Inputs

Name Description Type Default Required
dynamodb_state_lock_tags A map of tags to add to the dynaodb table containing terraform lock map(string) {} no
s3_state_backend_tags A map of tags to add to the s3 bucket containing terraform state map(string) {} no
tags A map of tags to add to all resources map(string) {} no

Outputs

Name Description
dynamodb_table_arn ARN of the dynamodb table used for storing terraform state lock
s3_bucket_arn ARN of the bucket used for storing terraform state