Grubhold
11/16/2021, 3:09 PMterraform-aws-components to bootstrap an account on an already available organisation. I went through as a first step to the account module but pretty stuck with understanding how it works and how the yaml found in the README can help with specifying the organization_config etc.
Any hints or example will be highly appreciated!Matt Gowie
11/16/2021, 5:06 PMRB
11/16/2021, 7:12 PMGrubhold
11/17/2021, 8:43 AMdefault.auto.tfvars currently has these inputs
I did get a successful plan even though the inputs are just generic currently, but as Matt suggested I’ll go through the documentation to understand. Because I’m not sure how I can use this to bootstrap an account on an existing organisation. What will I need to deploy an account to that organisation etc.Grubhold
11/17/2021, 8:44 AMGrubhold
11/17/2021, 11:32 AMGrubhold
11/17/2021, 11:33 AMGrubhold
11/17/2021, 11:35 AM.tfvars file to provide the information needed to create an account under the existing organisation?Grubhold
11/17/2021, 12:36 PMservice_control_policies_config_paths to the yaml stacks?RB
11/17/2021, 1:38 PMRB
11/17/2021, 1:39 PMGrubhold
11/17/2021, 1:47 PMGrubhold
11/17/2021, 1:48 PM│ Error: Error creating organization: AlreadyInOrganizationException: The AWS account is already a member of an organization.
│
│ with aws_organizations_organization.this,
│ on <http://main.tf|main.tf> line 91, in resource "aws_organizations_organization" "this":
│ 91: resource "aws_organizations_organization" "this" {
I have the root account credentials. What am I missing here? Can’t I just deploy the account on an already existing org with this component?RB
11/17/2021, 2:00 PMRB
11/17/2021, 2:03 PMGrubhold
11/17/2021, 2:05 PMGrubhold
11/17/2021, 2:05 PMRB
11/17/2021, 2:13 PMGrubhold
11/17/2021, 2:23 PMapply and it added outputs as well. But then it says that the real infra matches with the current configuration so nothing changes. Why is it not trying to provision the account I have specified?Grubhold
11/17/2021, 2:40 PMGrubhold
11/17/2021, 3:27 PM