Panfactum LogoPanfactum
Infrastructure ModulesUtilitytf_bootstrap_resources

Terraform / OpenTofu Bootstrap Resources

tf_bootstrap_resources
Stable
Live
Source Code Link

Sets up the AWS resources necessary to begin using OpenTofu (Terraform) in an AWS account:

  • S3 state bucket

  • DynamoDB lock table

Provides the following features over the default Terragrunt bootstrapped resources:

  • Multi-region replication for dynamodb tables

  • Lifecycle transitions for S3 objects to cheaper storage tiers

  • Point-in-time backups retained for 24 hours via AWS Backup

Providers

The following providers are needed by this module:

Required Inputs

The following input variables are required:

lock_table

Description: The name of the dynamodb terraform lock table..

Type: string

state_bucket

Description: The name of the terraform state bucket.

Type: string

Optional Inputs

The following input variables are optional (have default values):

Outputs

No outputs.

Usage

No notes

Maintainer Notes

  • This module MUST be deployed in the ops environment. It defines its own aws provider for this reason. As a result, it uses its own aws profile which must be passed in as an input argument.