ministryofjustice / modernisation-platform-terraform-environments

Module for creating organizational units and accounts within AWS Organizations from JSON files • This repository is defined and managed in Terraform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

modernisation-platform-terraform-environments

repo standards badge

This repository holds a Terraform module that creates organisational units and accounts for environments.

Usage

module "environments" {
  source                             = "github.com/ministryofjustice/modernisation-platform-terraform-environments"
  environment_directory              = "./environments"
  environment_parent_organisation_id = "ou-123456789"
  environment_prefix                 = "modernisation-platform"
}

Requirements

Name Version
terraform >= 1.0.1
aws >= 3.47.0
random >= 3.0.0

Providers

Name Version
aws >= 3.47.0
random >= 3.0.0

Modules

No modules.

Resources

Name Type
aws_organizations_account.accounts resource
aws_organizations_organizational_unit.applications resource
aws_organizations_organizational_unit.platforms-and-architecture-modernisation-platform-core resource
aws_organizations_organizational_unit.platforms-and-architecture-modernisation-platform-member resource
aws_organizations_organizational_unit.platforms-and-architecture-modernisation-platform-member-unrestricted resource
random_string.email-address resource

Inputs

Name Description Type Default Required
environment_directory Directory path for environment definitions string n/a yes
environment_parent_organisation_id Organisation ID for newly configured environments to sit within string n/a yes
environment_prefix Prefix for all new environment and account names string n/a yes

Outputs

Name Description
environment_account_ids Map of account keys and their IDs (e.g. { account_name => 1234567890 })
environment_nuke_accounts List of autonuke account names.
environment_nuke_blocklist_accounts List of account names blocklisted from autonuke.
environment_rebuild_after_nuke_accounts List of rebuild-after-autonuke account names.
modernisation_platform_core_ou_id n/a
modernisation_platform_member_ou_id n/a
modernisation_platform_member_unrestricted_ou_id n/a

Looking for issues?

If you're looking to raise an issue with this module, please create a new issue in the Modernisation Platform repository.

About

Module for creating organizational units and accounts within AWS Organizations from JSON files • This repository is defined and managed in Terraform

License:MIT License


Languages

Language:HCL 100.0%