This repository holds a Terraform module that creates organisational units and accounts for environments.
module "environments" {
source = "github.com/ministryofjustice/modernisation-platform-terraform-environments"
environment_directory = "./environments"
environment_parent_organisation_id = "ou-123456789"
environment_prefix = "modernisation-platform"
}
| Name | Version |
|---|---|
| terraform | >= 1.0.1 |
| aws | ~> 6.0 |
| random | ~> 3.0 |
| Name | Version |
|---|---|
| aws | ~> 6.0 |
| random | ~> 3.0 |
No modules.
| 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 |
| 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 |
If you're looking to raise an issue with this module, please create a new issue in the Modernisation Platform repository.