Skip to content

Commit

Permalink
Merge branch 'master' into TDRD-447-rds-api-upgrade-v16-intg
Browse files Browse the repository at this point in the history
  • Loading branch information
TomJKing authored Dec 19, 2024
2 parents 4039ff6 + e1fe7f9 commit d5f02d4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
19 changes: 15 additions & 4 deletions root_draft_metadata.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,22 @@ module "draft_metadata_api_gateway" {
resource "aws_iam_role" "draft_metadata_api_gateway_execution_role" {
name = "TDRMetadataChecksAPIGatewayExecutionRole${title(local.environment)}"
assume_role_policy = templatefile("./templates/iam_policy/assume_role_policy.json.tpl", { service = "apigateway.amazonaws.com" })
}

inline_policy {
name = "TDRMetadataChecksAPIGatewayStepFunctionExecutionPolicy${title(local.environment)}"
policy = templatefile("./templates/iam_policy/api_gateway_state_machine_policy.json.tpl", { account_id = data.aws_caller_identity.current.account_id, state_machine_arn = module.draft_metadata_checks.step_function_arn })
}
resource "aws_iam_policy" "api_gateway_execution_policy" {
name = "TDRMetadataChecksAPIGatewayStepFunctionExecutionPolicy${title(local.environment)}"
policy = templatefile(
"./templates/iam_policy/api_gateway_state_machine_policy.json.tpl",
{
account_id = data.aws_caller_identity.current.account_id,
state_machine_arn = module.draft_metadata_checks.step_function_arn
}
)
}

resource "aws_iam_role_policy_attachment" "api_gateway_execution_policy" {
role = aws_iam_role.draft_metadata_api_gateway_execution_role.name
policy_arn = aws_iam_policy.api_gateway_execution_policy.arn
}

module "draft_metadata_bucket" {
Expand Down
2 changes: 1 addition & 1 deletion root_keycloak.tf
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ module "keycloak_database_instance" {
availability_zone = local.database_availability_zone
common_tags = local.common_tags
database_name = "keycloak"
database_version = "14.12"
database_version = local.environment == "prod" ? "14.12" : "16.3"
environment = local.environment
kms_key_id = module.encryption_key.kms_key_arn
private_subnets = module.shared_vpc.private_subnets
Expand Down

0 comments on commit d5f02d4

Please sign in to comment.