Home

Awesome

Modernisation Platform VM Import Module

Standards Icon Format Code Icon Scorecards Icon SCA Icon Terraform SCA Icon

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

NameVersion
<a name="requirement_terraform"></a> terraform>= 1.0.1
<a name="requirement_aws"></a> aws~> 4.0

Providers

NameVersion
<a name="provider_aws"></a> aws~> 4.0

Modules

NameSourceVersion
<a name="module_s3-bucket"></a> s3-bucketgithub.com/ministryofjustice/modernisation-platform-terraform-s3-bucketv6.1.0

Resources

NameType
aws_iam_policy.vmimport-policyresource
aws_iam_role.vmimportresource
aws_iam_role_policy_attachment.vmimport_policy_attachmentresource
aws_iam_policy_document.vmimport-trust-policydata source

Inputs

NameDescriptionTypeDefaultRequired
<a name="input_account_number"></a> account_numberAccount number of current environmentstringn/ayes
<a name="input_application_name"></a> application_nameName of applicationstringn/ayes
<a name="input_bucket_prefix"></a> bucket_prefixPrefix for s3 bucketstringn/ayes
<a name="input_tags"></a> tagsCommon tags to be used by all resourcesmap(string)n/ayes

Outputs

NameDescription
<a name="output_policy"></a> policyIAM policy name output
<a name="output_role"></a> roleIAM role name output
<!--- END_TF_DOCS --->

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

NameVersion
<a name="requirement_terraform"></a> terraform>= 1.0.1
<a name="requirement_aws"></a> aws~> 5.0

Providers

NameVersion
<a name="provider_aws"></a> aws~> 5.0

Modules

NameSourceVersion
<a name="module_s3-bucket"></a> s3-bucketgithub.com/ministryofjustice/modernisation-platform-terraform-s3-bucket8688bc15a08fbf5a4f4eef9b7433c5a417df8df1

Resources

NameType
aws_iam_policy.vmimport-policyresource
aws_iam_role.vmimportresource
aws_iam_role_policy_attachment.vmimport_policy_attachmentresource
aws_iam_policy_document.vmimport-trust-policydata source

Inputs

NameDescriptionTypeDefaultRequired
<a name="input_account_number"></a> account_numberAccount number of current environmentstringn/ayes
<a name="input_application_name"></a> application_nameName of applicationstringn/ayes
<a name="input_bucket_prefix"></a> bucket_prefixPrefix for s3 bucketstringn/ayes
<a name="input_region"></a> regionThe AWS region where resources will be createdstring"eu-west-2"no
<a name="input_tags"></a> tagsCommon tags to be used by all resourcesmap(string)n/ayes

Outputs

NameDescription
<a name="output_policy"></a> policyIAM policy name output
<a name="output_role"></a> roleIAM role name output
<!-- END_TF_DOCS -->