Skip to content

Latest commit

 

History

History
126 lines (92 loc) · 9.4 KB

File metadata and controls

126 lines (92 loc) · 9.4 KB

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

}

Requirements

Name Version
terraform >= 1.0.1
aws ~> 4.0

Providers

Name Version
aws ~> 4.0

Modules

Name Source Version
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
account_number Account number of current environment string n/a yes
application_name Name of application string n/a yes
bucket_prefix Prefix for s3 bucket string n/a yes
tags Common tags to be used by all resources map(string) n/a yes

Outputs

Name Description
policy IAM policy name output
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.

Requirements

Name Version
terraform >= 1.0.1
aws ~> 5.0

Providers

Name Version
aws ~> 5.0

Modules

Name Source Version
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
account_number Account number of current environment string n/a yes
application_name Name of application string n/a yes
bucket_prefix Prefix for s3 bucket string n/a yes
region The AWS region where resources will be created string "eu-west-2" no
tags Common tags to be used by all resources map(string) n/a yes

Outputs

Name Description
policy IAM policy name output
role IAM role name output