Skip to content

Latest commit

 

History

History
64 lines (52 loc) · 3.13 KB

README.md

File metadata and controls

64 lines (52 loc) · 3.13 KB

TFC Backup

Requirements

Name Version
terraform >= 1.1
aws >= 4.0
tfe >= 0.35
time >= 0.8

Providers

Name Version
aws >= 4.0
tfe >= 0.35
time >= 0.8

Modules

Name Source Version
api_gateway terraform-aws-modules/apigateway-v2/aws 2.1.0
s3_bucket terraform-aws-modules/s3-bucket/aws 2.2.0

Resources

Name Type
aws_iam_policy.tfc_backup_lambda_policy resource
aws_iam_role.tfc_workspaces_backup resource
aws_kms_key.tfc_workspace_backup resource
aws_lambda_function.tfc_workspaces_backup resource
aws_lambda_permission.apigw_lambda resource
tfe_notification_configuration.tfc_workspaces_backup resource
time_sleep.wait_120_seconds resource
aws_iam_policy_document.aws_lambda_trust_policy data source
aws_iam_policy_document.tfc_backup_lambda_policy data source
aws_iam_policy_document.tfc_backup_s3_policy data source
aws_lambda_function.tfc_backup data source

Inputs

Name Description Type Default Required
TFE_TOKEN Terraform Cloud Token string n/a yes
bucket_builds Lambda Builds Bucket string n/a yes
bucket_name Bucket to save the backups string n/a yes
lambda_s3_key Lambda Build Key string n/a yes
tags sdp-standard-tags object any n/a yes
workspace_ids List of the workspaces IDs to back up. list(string) n/a yes
apigw_name The name of the API gateway string "tfc-workspaces-backup" no
lambda_name The name of the lambda function string "tfc-workspaces-backup" no
notification_name The notification name for the TFC notification string "tfc-workspaces-backup" no

Outputs

Name Description
apigw_invoke_url The API gateway invocation url
bucket_id The ID of the s3 bucket used for the state backup