You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tf-modules/organizations/aws-master
lalanza808 bc534db02e formatting all templates 4 years ago
..
README.md adding aws-master module for configuring a standalone account as a master payer 4 years ago
cur.tf adding aws-master module for configuring a standalone account as a master payer 4 years ago
main.tf formatting all templates 4 years ago
output.tf adding aws-master module for configuring a standalone account as a master payer 4 years ago
variables.tf adding aws-master module for configuring a standalone account as a master payer 4 years ago

README.md

Organizations

This module sets up the foundation of an AWS account playing the role of "Master Payer"; the parent organization in the AWS Organizations service. This module will manage the parent Organization's service along with subordinate Organizational Units (OU), policies, and policy attachments.

This module explicitly does not setup the AWS accounts; it will setup the backend Organizations service and cost and usage reporting only and should be referenced by additional templates for provisioning accounts.

Only use this module on a standalone AWS account that is not already a member of an Organization.

Usage

module "master_payer" {
  source = "github.com/lalanza808/tf-modules.git/organizations/aws-master"
}

module "sandbox-account" {
  source = "github.com/lalanza808/tf-modules.git/organizations/subaccount"

  account_name   = "sandbox"
  account_email  = "root+sandbox@domain.com"
  parent_ou_id   = module.master_payer.prod_ou_id
}

output "sandbox-account" {
  value = module.sandbox-account.account_id
}

Inputs

See the full list of inputs here: variables.tf

Outputs

output.tf