Skip to content

Commit

Permalink
Add ipam admin account for org
Browse files Browse the repository at this point in the history
  • Loading branch information
MelvinStans committed May 15, 2024
1 parent 395ebd9 commit 1e61acf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/accounts/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ resource "aws_inspector2_delegated_admin_account" "default" {
account_id = aws_organizations_account.default[each.value.account_name].id
}

### IPAM organization settings
resource "aws_vpc_ipam_organization_admin_account" "example" {
for_each = {
for delegated_administrator in local.delegated_administrators : delegated_administrator.account_name => delegated_administrator if delegated_administrator.service_principal == "ipam.amazonaws.com"
}
delegated_admin_account_id = aws_organizations_account.default[each.value.account_name].id
}

### Account Management
resource "aws_account_primary_contact" "default" {
for_each = var.accounts
Expand Down

0 comments on commit 1e61acf

Please sign in to comment.