Terraform resource for managing an AWS Mainframe Modernization Deployment.
resource "aws_m2_deployment" "test" {
environment_id = "01234567890abcdef012345678"
application_id = "34567890abcdef012345678012"
application_version = 1
start = true
}
The following arguments are required:
environment_id
- (Required) Environment to deploy application to.application_id
- (Required) Application to deploy.application_version
- (Required) Version to application to deploystart
- (Required) Start the application once deployed.This resource exports the following attributes in addition to the arguments above:
create
- (Default 60m
)update
- (Default 60m
)delete
- (Default 60m
)In Terraform v1.5.0 and later, use an import
block to import Mainframe Modernization Deployment using the APPLICATION-ID,DEPLOYMENT-ID
. For example:
import {
to = aws_m2_deployment.example
id = "APPLICATION-ID,DEPLOYMENT-ID"
}
Using terraform import
, import Mainframe Modernization Deployment using the APPLICATION-ID,DEPLOYMENT-ID
. For example:
% terraform import aws_m2_deployment.example APPLICATION-ID,DEPLOYMENT-ID