Files
threshold/enos/modules/aws_boundary/main.tf
T
Michael Li 9c9e033271 chore(enos): Move terraform-enos-aws-boundary to boundary (#3773)
* chore(enos): Move `terraform-enos-aws-boundary` to `boundary`

* chore(enos): Rename module tag

* chore(enos): Refactor module names

* fixup! chore(enos): Move `terraform-enos-aws-boundary` to `boundary`

* fixup! chore(enos): Move `terraform-enos-aws-boundary` to `boundary`

* chore(enos): Refactored hard-coded module tag
2023-10-10 09:28:04 -04:00

41 lines
894 B
Terraform

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
terraform {
required_version = ">= 1.1.2"
required_providers {
enos = {
source = "app.terraform.io/hashicorp-qti/enos"
version = ">= 0.3.25"
}
}
}
locals {
name_prefix = "${var.project_name}-${var.environment}"
boundary_cluster_tag = "boundary-server-${random_string.cluster_id.result}"
is_restored_db = var.db_snapshot_identifier != null
default_boundary_db_name = "boundary"
db_name = coalesce(var.db_name, local.default_boundary_db_name)
common_tags = merge(var.common_tags,
{
Module = "aws_boundary"
Pet = random_pet.default.id
},
)
}
resource "random_string" "cluster_id" {
length = 8
lower = true
upper = false
numeric = false
special = false
}
resource "random_pet" "default" {
separator = "_"
}