Skip to content

Commit

Permalink
give instance more permissions and kill failed fsx deployment (#9044)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsweetman authored Dec 10, 2024
1 parent 1673313 commit 7b53b17
Showing 1 changed file with 42 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ locals {
}
))
instance_profile_policies = concat(local.ec2_instances.bods.config.instance_profile_policies, [
"Ec2SecretPolicy",
"Ec2SecretPolicy", "Ec2DescribeSubnets",
])
})
# IMPORTANT: EBS volume initialization, labelling, formatting was carried out manually on this instance. It was not automated so these ebs_volume settings are bespoke. Additional volumes should NOT be /dev/xvd* see the local.ec2_instances.bods.ebs_volumes setting for the correct device names.
Expand Down Expand Up @@ -130,36 +130,36 @@ locals {
# })
}

fsx_windows = {
# fsx_windows = {

pp-bods-win-share = {
deployment_type = "SINGLE_AZ_1"
security_groups = ["bods"]
skip_final_backup = true
storage_capacity = 600
throughput_capacity = 8
# pp-bods-win-share = {
# deployment_type = "SINGLE_AZ_1"
# security_groups = ["bods"]
# skip_final_backup = true
# storage_capacity = 600
# throughput_capacity = 8

subnets = [
{
name = "private"
availability_zones = ["eu-west-2a"]
}
]
# subnets = [
# {
# name = "private"
# availability_zones = ["eu-west-2a"]
# }
# ]

self_managed_active_directory = {
dns_ips = [
module.ip_addresses.azure_fixngo_ip.PCMCW0011,
module.ip_addresses.azure_fixngo_ip.PCMCW0012,
]
domain_name = "azure.hmpp.root"
username = "svc_join_domain"
password_secret_name = "/sap/bods/pp/passwords"
}
tags = {
backup = true
}
}
}
# self_managed_active_directory = {
# dns_ips = [
# module.ip_addresses.azure_fixngo_ip.PCMCW0011,
# module.ip_addresses.azure_fixngo_ip.PCMCW0012,
# ]
# domain_name = "azure.hmpp.root"
# username = "svc_join_domain"
# password_secret_name = "/sap/bods/pp/passwords"
# }
# tags = {
# backup = true
# }
# }
# }

iam_policies = {
Ec2SecretPolicy = {
Expand All @@ -179,6 +179,20 @@ locals {
}
]
}
Ec2DescribeSubnets = {
description = "Permissions required for instances to describe subnets"
statements = [
{
effect = "Allow"
actions = [
"ec2:DescribeSubnets",
]
resources = [
"arn:aws:ec2:*:*:instance/*"
]
}
]
}
}

# DO NOT DEPLOY YET AS OTHER THINGS AREN'T READY
Expand Down

0 comments on commit 7b53b17

Please sign in to comment.