Skip to content

Commit

Permalink
RAM not allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
georgepstaylor committed May 30, 2024
1 parent 31a631d commit 0d21572
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,6 @@ resource "aws_ssm_parameter" "ldap_admin_password" {
tags = local.tags
}

resource "aws_ram_resource_share" "ldap_admin_password" {
name = format("/%s-%s/LDAP_ADMIN_PASSWORD", var.account_info.application_name, var.env_name)
allow_external_principals = true
tags = local.tags
}

resource "aws_ram_principal_association" "ldap_admin_password" {
principal = "${var.platform_vars.environment_management.account_ids[join("-", ["delius-nextcloud", var.account_info.mp_environment])]}"
resource_share_arn = aws_ram_resource_share.ldap_admin_password.arn
}

resource "aws_ram_resource_association" "ldap_admin_password" {
resource_share_arn = aws_ram_resource_share.ldap_admin_password.arn
resource_arn = aws_ssm_parameter.ldap_admin_password.arn
}

resource "aws_ssm_parameter" "oasys_user" {
name = format("/%s-%s/oasys_user", var.account_info.application_name, var.env_name)
type = "SecureString"
Expand Down

0 comments on commit 0d21572

Please sign in to comment.