From b2fb720d19b6ebd51d9291cf356523422a05c494 Mon Sep 17 00:00:00 2001 From: Chris Wright Date: Thu, 13 Jun 2024 11:20:42 +0100 Subject: [PATCH] Update account import readme --- README.md | 1 + examples/existing-account-import/README.md | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 8ee061f..43b7335 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,7 @@ module "aws_organizations_and_sso" { email = "existing@example.com" # If the account has been imported into terrafrom, this must be set to "NULL" # This behaviour cannot be changed once the account is created (only the root user account will be able to change it) + # (Terraform import example can be found at https://github.com/chris-qa-org/terraform-aws-organzation-and-sso/blob/main/examples/existing-account-import/README.md) iam_user_access_to_billing = "NULL" group_assignments = { "SysAdmins" = { diff --git a/examples/existing-account-import/README.md b/examples/existing-account-import/README.md index eaf4cf6..2f38c82 100644 --- a/examples/existing-account-import/README.md +++ b/examples/existing-account-import/README.md @@ -3,6 +3,12 @@ If an AWS account has been imported, the `iam_user_access_to_billing` setting must be set to "NULL" (`string`) This is because it can only be set during account creation +## Importing an account + +``` +terraform import 'module.aws_organizations_and_sso.aws_organizations_account.account["my-account-name"]' 0123456789112 +``` + ``` module "aws_organizations_and_sso" { source = "chris-qa-org/organzation-and-sso/aws"