Skip to content

theJaxon/terraform-aws-s3-backend

Repository files navigation

terraform-aws-s3-backend

Terraform AWS S3 backend module for storing state file.

Requirements

Name Version
terraform >= 1.10.1
aws >= 5.82.0
random >= 3.6.3

Providers

Name Version
aws 5.82.2
random 3.6.3

Modules

No modules.

Resources

Name Type
aws_dynamodb_table.dynamodb_table resource
aws_iam_role.iam_role resource
aws_iam_role_policy.iam_role_policy resource
aws_kms_key.kms_key resource
aws_resourcegroups_group.resourcegroups_group resource
aws_s3_bucket.s3_bucket resource
aws_s3_bucket_public_access_block.s3_bucket_public_access_block resource
aws_s3_bucket_server_side_encryption_configuration.s3_bucket_server_side_encryption_configuration resource
aws_s3_bucket_versioning.s3_bucket_versioning resource
random_string.random resource
aws_caller_identity.current_caller_identity data source
aws_region.current_region data source

Inputs

Name Description Type Default Required
kms_encryption Whether S3 bucket encryption should be enabled or not. string false no
princiapl_arn_list List of principal ARNs allowed to assume the IAM role. list(string) null no
project_name Unique name representing the module, will be used to tag resources created by it. string "s3-backend" no
s3_force_destroy_bucket Force destroy the S3 Bucket containing the state file. bool false no
s3_versioning_status S3 Bucket versioning status, can be either Enabled or Disabled. string "Enabled" no

Outputs

Name Description
configurations Should be used as an input when using the S3 backend provider. Contains S3 bucket name, used IAM role ARN, dynamodb table name and AWS region where the resources were deployed.

References

  1. Terraform in Action
  2. Terraform Best Practices - docs

About

Terraform S3 backend module for storing state file.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages