atmos terraform import account aws_organizations_organizational_unit.this["mgmt"] ou-k3gn-1no08klw --stack gbl-root
{"account_email_format":"devops_%[email protected]","account_iam_user_access_to_billing":"DENY","aws_service_access_principals":["cloudtrail.amazonaws.com","ram.amazonaws.com"],"enabled_policy_types":["SERVICE_CONTROL_POLICY","TAG_POLICY"],"namespace":"crl","organization_config":{"accounts":[],"organization":{"service_control_policies":[]},"organizational_units":[{"accounts":[{"name":"dev","tags":{"eks":true}}],"name":"platform","service_control_policies":["DenyLeavingOrganization"]},{"accounts":[{"name":"audit","tags":{"eks":false}}],"name":"mgmt","service_control_policies":["DenyLeavingOrganization"]}],"root_account_stage_name":"root"},"organization_enabled":false,"region":"us-east-2"}
Initializing modules...
Downloading git::https://github.com/cloudposse/terraform-aws-service-control-policies.git?ref=tags/0.4.0 for accounts_service_control_policies...
- accounts_service_control_policies in .terraform/modules/accounts_service_control_policies
Downloading git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.21.0 for accounts_service_control_policies.this...
- accounts_service_control_policies.this in .terraform/modules/accounts_service_control_policies.this
Downloading git::https://github.com/cloudposse/terraform-aws-service-control-policies.git?ref=tags/0.4.0 for organization_service_control_policies...
- organization_service_control_policies in .terraform/modules/organization_service_control_policies
Downloading git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.21.0 for organization_service_control_policies.this...
- organization_service_control_policies.this in .terraform/modules/organization_service_control_policies.this
Downloading git::https://github.com/cloudposse/terraform-aws-service-control-policies.git?ref=tags/0.4.0 for organizational_units_service_control_policies...
- organizational_units_service_control_policies in .terraform/modules/organizational_units_service_control_policies
Downloading git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.21.0 for organizational_units_service_control_policies.this...
- organizational_units_service_control_policies.this in .terraform/modules/organizational_units_service_control_policies.this
Downloading git::https://github.com/cloudposse/terraform-yaml-config.git?ref=tags/0.1.0 for service_control_policy_statements_yaml_config...
- service_control_policy_statements_yaml_config in .terraform/modules/service_control_policy_statements_yaml_config
Downloading git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.21.0 for service_control_policy_statements_yaml_config.this...
- service_control_policy_statements_yaml_config.this in .terraform/modules/service_control_policy_statements_yaml_config.this
Downloading git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.21.0 for this...
- this in .terraform/modules/this
Initializing the backend...
Initializing provider plugins...
- Finding hashicorp/http versions matching ">= 2.0.0"...
- Finding hashicorp/local versions matching ">= 1.3.0"...
- Finding hashicorp/aws versions matching ">= 3.0.0"...
- Finding hashicorp/template versions matching ">= 2.0.0, >= 2.2.0"...
- Using hashicorp/template v2.2.0 from the shared cache directory
- Using hashicorp/http v2.1.0 from the shared cache directory
- Using hashicorp/local v2.1.0 from the shared cache directory
- Using hashicorp/aws v3.37.0 from the shared cache directory
Terraform has created a lock file .terraform.lock.hcl to record the provider
selections it made above. Include this file in your version control repository
so that Terraform can guarantee to make the same selections by default when
you run "terraform init" in the future.
Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
Workspace "gbl-root" doesn't exist.
You can create this workspace with the "new" subcommand.
Created and switched to workspace "gbl-root"!
You're now on a new, empty workspace. Workspaces isolate their state,
so if you run "terraform plan" Terraform will not see any existing state
for this configuration.
Error: Unsupported attribute
on /modules/terraform/terraform-core.variant line 223:
(source code not available)
This object does not have an attribute named "region".
Error: Unsupported attribute
on /modules/terraform/terraform-core.variant line 223:
(source code not available)
This object does not have an attribute named "region".
Error: 1 error occurred:
* step "write provider override": job "terraform write override": config "override-contents": source 0: job "terraform provider override": /modules/terraform/terraform-core.variant:223,27-34: Unsupported attribute; This object does not have an attribute named "region"., and 1 other diagnostic(s)
The import should apply cleanly.