AC
Size: a a a
AC
AC
R
AC
AC
AC
R
R
AC
AC
AC
PS
MC
MC
OK
output "cluster_ca" {
value = "${google_container_cluster.cluster.master_auth.0.client_ca_certificate}"
# sensitive = true
}
output "cluster_cert" {
value = "${google_container_cluster.cluster.master_auth.0.client_certificate}"
# sensitive = true
}
output "cluster_key" {
value = "${google_container_cluster.cluster.master_auth.0.client_key}"
# sensitive = true
}
module "ingress" {
source = "../modules/ingress"
# These values are set from the terrafrom.tfvas file
gcp_project_id = "${var.gcp_project_id}"
region = "${var.region}"
env = "${var.env}"
cluster_endpoint = "${module.cluster.cluster_endpoint}"
cluster_ca = "${base64decode(module.cluster.cluster_ca)}"
cluster_cert = "${base64decode(module.cluster.cluster_cert)}"
cluster_key = "${base64decode(module.cluster.cluster_key)}"
}
* module.ingress.var.cluster_ca: base64decode: failed to decode base64 data '1' in:
${base64decode(module.cluster.cluster_ca)}
PS
OK
|
// Generate Password
resource "random_string" "rds_password" {
length = 12
special = true
override_special = "!#$&*()"
keepers = {
engine = var.engine
engine_version = var.engine_version
}
}
// Store Password in SSM Parameter Store
resource "aws_ssm_parameter" "rds_password" {
name = "/staging/rds/mydb/Password"
description = "Master Password for RDS"
type = "SecureString"
value = random_string.rds_password.result
}
ЗД
S