Files
threshold/enos/modules/aws_boundary/main.tf
T
Michael Li 333b9e855d chore(e2e): Use public version of enos (#4872)
* chore(e2e): Use public version of enos

* chore(e2e): Move vault module to this repo

terraform-enos-aws-vault is no longer supported
2024-06-10 11:13:09 -04:00

41 lines
901 B
Terraform

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
terraform {
required_version = ">= 1.1.2"
required_providers {
enos = {
source = "registry.terraform.io/hashicorp-forge/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 = "_"
}