Skip to content

Commit

Permalink
DSOS-2927: add permissions to hmpps to test LetsEncrypt certificate g…
Browse files Browse the repository at this point in the history
…eneration
  • Loading branch information
drobinson-moj committed Aug 22, 2024
1 parent 3214099 commit 7ba4316
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ locals {
pp-rds-1-a = merge(local.ec2_instances.rds, {
config = merge(local.ec2_instances.rds.config, {
availability_zone = "eu-west-2a"
instance_profile_policies = concat(local.ec2_instances.rds.config.instance_profile_policies, [
"Ec2PpRdsPolicy",
])
})
tags = merge(local.ec2_instances.rds.tags, {
description = "Remote Desktop Services for azure.hmpp.root domain"
Expand All @@ -96,6 +99,32 @@ locals {
})
}

iam_policies = {
Ec2PpRdsPolicy = {
description = "Permissions required for POSH-ACME Route53 Plugin"
statements = [
{
effect = "Allow"
actions = [
"route53:ListHostedZones",
]
resources = ["*"]
},
{
effect = "Allow"
actions = [
"route53:GetHostedZone",
"route53:ListResourceRecordSets",
"route53:ChangeResourceRecordSets"
]
resources = [
"arn:aws:route53:::hostedzone/*",
]
},
]
}
}

lbs = {
public = merge(local.lbs.public, {
instance_target_groups = {
Expand Down

0 comments on commit 7ba4316

Please sign in to comment.