Skip to content

Commit 098a38f

Browse files
authored
Adding proxygen key ssm to terraform (#558)
1 parent b887eae commit 098a38f

2 files changed

Lines changed: 21 additions & 12 deletions

File tree

infrastructure/stacks/networking/ssm.tf

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
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+
1317
resource "aws_ssm_parameter" "mtls_api_ca_cert" {
1418
name = "/${var.environment}/mtls/api_ca_cert"
1519
type = "SecureString"

infrastructure/stacks/networking/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
}

0 commit comments

Comments
 (0)