Resource: aws_m2_application

Terraform resource for managing an AWS Mainframe Modernization Application.

Example Usage

Basic Usage

resource "aws_m2_application" "example" {
  name        = "Example"
  engine_type = "bluage"
  definition {
    content = <<EOF
{
  "definition": {
    "listeners": [
      {
        "port": 8196,
        "type": "http"
      }
    ],
    "ba-application": {
      "app-location": "${s3-source}/PlanetsDemo-v1.zip"
    }
  },
  "source-locations": [
    {
      "source-id": "s3-source",
      "source-type": "s3",
      "properties": {
        "s3-bucket": "example-bucket",
        "s3-key-prefix": "v1"
      }
    }
  ],
  "template-version": "2.0"
}

EOF
  }
}

Argument Reference

The following arguments are required:

The following arguments are optional:

definition

This argument is processed in attribute-as-blocks mode.

The following arguments are optional:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import Mainframe Modernization Application using the 01234567890abcdef012345678. For example:

import {
  to = aws_m2_application.example
  id = "01234567890abcdef012345678"
}

Using terraform import, import Mainframe Modernization Application using the 01234567890abcdef012345678. For example:

% terraform import aws_m2_application.example 01234567890abcdef012345678