Awesome
Modernisation Platform VM Import Module
Usage
module "vm-import" {
source = "github.com/ministryofjustice/modernisation-platform-terraform-aws-vm-import"
bucket_prefix = local.application_data.accounts[local.environment].bucket_prefix
tags = local.tags
application_name = local.application_name
}
<!--- BEGIN_TF_DOCS --->
Requirements
Name | Version |
---|---|
<a name="requirement_terraform"></a> terraform | >= 1.0.1 |
<a name="requirement_aws"></a> aws | ~> 4.0 |
Providers
Name | Version |
---|---|
<a name="provider_aws"></a> aws | ~> 4.0 |
Modules
Name | Source | Version |
---|---|---|
<a name="module_s3-bucket"></a> s3-bucket | github.com/ministryofjustice/modernisation-platform-terraform-s3-bucket | v6.1.0 |
Resources
Name | Type |
---|---|
aws_iam_policy.vmimport-policy | resource |
aws_iam_role.vmimport | resource |
aws_iam_role_policy_attachment.vmimport_policy_attachment | resource |
aws_iam_policy_document.vmimport-trust-policy | data source |
Inputs
Name | Description | Type | Default | Required |
---|---|---|---|---|
<a name="input_account_number"></a> account_number | Account number of current environment | string | n/a | yes |
<a name="input_application_name"></a> application_name | Name of application | string | n/a | yes |
<a name="input_bucket_prefix"></a> bucket_prefix | Prefix for s3 bucket | string | n/a | yes |
<a name="input_tags"></a> tags | Common tags to be used by all resources | map(string) | n/a | yes |
Outputs
Name | Description |
---|---|
<a name="output_policy"></a> policy | IAM policy name output |
<a name="output_role"></a> role | IAM role name output |
Looking for issues?
If you're looking to raise an issue with this module, please create a new issue in the Modernisation Platform repository.
<!-- BEGIN_TF_DOCS -->Requirements
Name | Version |
---|---|
<a name="requirement_terraform"></a> terraform | >= 1.0.1 |
<a name="requirement_aws"></a> aws | ~> 5.0 |
Providers
Name | Version |
---|---|
<a name="provider_aws"></a> aws | ~> 5.0 |
Modules
Name | Source | Version |
---|---|---|
<a name="module_s3-bucket"></a> s3-bucket | github.com/ministryofjustice/modernisation-platform-terraform-s3-bucket | 8688bc15a08fbf5a4f4eef9b7433c5a417df8df1 |
Resources
Name | Type |
---|---|
aws_iam_policy.vmimport-policy | resource |
aws_iam_role.vmimport | resource |
aws_iam_role_policy_attachment.vmimport_policy_attachment | resource |
aws_iam_policy_document.vmimport-trust-policy | data source |
Inputs
Name | Description | Type | Default | Required |
---|---|---|---|---|
<a name="input_account_number"></a> account_number | Account number of current environment | string | n/a | yes |
<a name="input_application_name"></a> application_name | Name of application | string | n/a | yes |
<a name="input_bucket_prefix"></a> bucket_prefix | Prefix for s3 bucket | string | n/a | yes |
<a name="input_region"></a> region | The AWS region where resources will be created | string | "eu-west-2" | no |
<a name="input_tags"></a> tags | Common tags to be used by all resources | map(string) | n/a | yes |
Outputs
Name | Description |
---|---|
<a name="output_policy"></a> policy | IAM policy name output |
<a name="output_role"></a> role | IAM role name output |