Skip to content

Commit

Permalink
Define a new API key for fathom trusted partner
Browse files Browse the repository at this point in the history
  • Loading branch information
nikki-t committed Feb 18, 2025
1 parent 15e34bf commit daafd87
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions terraform/hydrocron-apigw.tf
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ resource "aws_api_gateway_api_key" "confluence-user-key" {
}


resource "aws_api_gateway_api_key" "fathom-user-key" {
name = "${local.aws_resource_prefix}-api-key-fathom"
}


# Usage Plans
resource "aws_api_gateway_usage_plan" "default-user-usage-plan" {
name = "${local.aws_resource_prefix}-usage-plan-default"
Expand Down Expand Up @@ -154,3 +159,10 @@ resource "aws_api_gateway_usage_plan_key" "confluence-user-usage-key" {
key_type = "API_KEY"
usage_plan_id = aws_api_gateway_usage_plan.trusted-user-usage-plan.id
}


resource "aws_api_gateway_usage_plan_key" "fathom-user-usage-key" {
key_id = aws_api_gateway_api_key.fathom-user-key.id
key_type = "API_KEY"
usage_plan_id = aws_api_gateway_usage_plan.trusted-user-usage-plan.id
}
3 changes: 2 additions & 1 deletion terraform/hydrocron-ssm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ resource "aws_ssm_parameter" "trusted-user-parameter" {
type = "SecureString"
value = jsonencode(
[
"${aws_api_gateway_api_key.confluence-user-key.value}"
"${aws_api_gateway_api_key.confluence-user-key.value}",
"${aws_api_gateway_api_key.fathom-user-key.value}"
]
)
}
Expand Down

0 comments on commit daafd87

Please sign in to comment.