Skip to content

Commit

Permalink
feat: add secret to hold Ingest server root CA certificate data
Browse files Browse the repository at this point in the history
  • Loading branch information
luigidifraiawork committed Oct 15, 2024
1 parent c2ac904 commit cf88dea
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion terraform/environments/xhibit-portal/xp-secrets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,34 @@ resource "aws_secretsmanager_secret" "domainadmin-aladmin" {
POLICY

tags = local.tags
}
}

resource "aws_secretsmanager_secret" "ingest_root_ca_cert" {
name = "${local.environment}/ingest-root-ca-cert"
description = "Root CA certificate data for the Ingest service"
policy = <<POLICY
{
"Version" : "2012-10-17",
"Statement" : [ {
"Sid" : "AdministratorFullAccess",
"Effect" : "Allow",
"Principal" : {
"AWS" : "${sort(data.aws_iam_roles.admin.arns)[0]}"
},
"Action" : "secretsmanager:*",
"Resource" : "*"
},
{
"Sid" : "MPDeveloperFullAccess",
"Effect" : "Allow",
"Principal" : {
"AWS" : "${sort(data.aws_iam_roles.developer.arns)[0]}"
},
"Action" : "secretsmanager:*",
"Resource" : "*"
} ]
}
POLICY

tags = local.tags
}

0 comments on commit cf88dea

Please sign in to comment.