Awesome
modernisation-platform-terraform-environments
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"
}
<!-- BEGIN_TF_DOCS -->
Requirements
Name | Version |
---|---|
<a name="requirement_terraform"></a> terraform | >= 1.0.1 |
<a name="requirement_aws"></a> aws | >= 3.47.0 |
<a name="requirement_random"></a> random | >= 3.0.0 |
Providers
Name | Version |
---|---|
<a name="provider_aws"></a> aws | >= 3.47.0 |
<a name="provider_random"></a> random | >= 3.0.0 |
Modules
No modules.
Resources
Inputs
Name | Description | Type | Default | Required |
---|---|---|---|---|
<a name="input_environment_directory"></a> environment_directory | Directory path for environment definitions | string | n/a | yes |
<a name="input_environment_parent_organisation_id"></a> environment_parent_organisation_id | Organisation ID for newly configured environments to sit within | string | n/a | yes |
<a name="input_environment_prefix"></a> environment_prefix | Prefix for all new environment and account names | string | n/a | yes |
Outputs
Name | Description |
---|---|
<a name="output_environment_account_ids"></a> environment_account_ids | Map of account keys and their IDs (e.g. { account_name => 1234567890 }) |
<a name="output_environment_nuke_accounts"></a> environment_nuke_accounts | List of autonuke account names. |
<a name="output_environment_nuke_blocklist_accounts"></a> environment_nuke_blocklist_accounts | List of account names blocklisted from autonuke. |
<a name="output_environment_rebuild_after_nuke_accounts"></a> environment_rebuild_after_nuke_accounts | List of rebuild-after-autonuke account names. |
<a name="output_modernisation_platform_core_ou_id"></a> modernisation_platform_core_ou_id | n/a |
<a name="output_modernisation_platform_member_ou_id"></a> modernisation_platform_member_ou_id | n/a |
<a name="output_modernisation_platform_member_unrestricted_ou_id"></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.