Skip to content

Terraform module which creates Terraform remote backend resources on AWS.

License

Notifications You must be signed in to change notification settings

brian-skafte/terraform-aws-remote-backend

Repository files navigation

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

About

Terraform module which creates Terraform remote backend resources on AWS.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages