File tree Expand file tree Collapse file tree
infrastructure/stacks/networking Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # resource "aws_ssm_parameter" "proxygen_private_key" {
2- # count = var.environment == "dev" ? 1 : 0
3- # name = "/proxygen/private_key"
4- # type = "SecureString"
5- # value = var.PROXYGEN_PRIVATE_KEY
6- # tier = "Advanced"
7- #
8- # tags = {
9- # Stack = local.stack_name
10- # }
11- # }
12- #
1+ resource "aws_ssm_parameter" "proxygen_private_key" {
2+ name = " /${ var . environment } /proxygen/private_key"
3+ type = " SecureString"
4+ key_id = aws_kms_key. networking_ssm_key . id
5+ value = var. PROXYGEN_PRIVATE_KEY
6+ tier = " Advanced"
7+
8+ tags = {
9+ Stack = local.stack_name
10+ }
11+
12+ lifecycle {
13+ ignore_changes = [value ]
14+ }
15+ }
16+
1317resource "aws_ssm_parameter" "mtls_api_ca_cert" {
1418 name = " /${ var . environment } /mtls/api_ca_cert"
1519 type = " SecureString"
Original file line number Diff line number Diff line change @@ -13,3 +13,8 @@ variable "API_PRIVATE_KEY_CERT" {
1313 description = " The private key for the signed Client Certificate"
1414 sensitive = true
1515}
16+ variable "PROXYGEN_PRIVATE_KEY" {
17+ type = string
18+ description = " The private key for Proxygen authentication"
19+ sensitive = true
20+ }
You can’t perform that action at this time.
0 commit comments