Skip to content

Commit

Permalink
Updated tf condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ulises-jeremias committed Nov 14, 2023
1 parent 27a7a9d commit 8e79534
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions live/core/backend.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
# be bootstrapped according to the simple yet essential procedure in
# https://github.com/cloudposse/terraform-aws-tfstate-backend#usage
module "terraform_state_backend" {
source = "cloudposse/tfstate-backend/aws"
version = "1.1.1"
source = "cloudposse/tfstate-backend/aws"
version = "1.1.1"

# Avoid creating anything within if we are not in the workspace "default" and "prod".
count = contains(["default", "prod"], terraform.workspace) ? 1 : 0

name = module.label.name
namespace = module.label.namespace
attributes = ["state"]
Expand Down

0 comments on commit 8e79534

Please sign in to comment.