AWS Fundamentals Logo
AWS Fundamentals
AWS::M2::Environment

M2 Environment

Represents a runtime environment that can run migrated mainframe applications.

Properties

14 configurable properties. 3 required. Click a row to see details.

Filter:
PropertyTypeFlags
EngineType
string
RequiredCreate-only
InstanceType
string
Required
Name
string
RequiredCreate-only
Description
string
Create-only
EngineVersion
string
HighAvailabilityConfig
HighAvailabilityConfig
KmsKeyId
string
Create-only
NetworkType
string
Create-only
PreferredMaintenanceWindow
string
PubliclyAccessible
boolean
Create-only
SecurityGroupIds
Array<string>
Create-only
StorageConfigurations
Array<StorageConfiguration>
Create-only
SubnetIds
Array<string>
Create-only
Tags
TagMap

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
EnvironmentArnstringThe Amazon Resource Name (ARN) of the runtime environment.
EnvironmentIdstringThe unique identifier of the environment.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::M2::Environment

Resources:
  MyResource:
    Type: AWS::M2::Environment
    Properties:
      EngineType: "value"
      InstanceType: "value"
      Name: "my-name"
      Tags:
        - Key: Environment
          Value: Production
      Description: !Ref "AWS::StackName"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

ec2:CreateNetworkInterfaceec2:CreateNetworkInterfacePermissionec2:DescribeNetworkInterfacesec2:DescribeSecurityGroupsec2:DescribeSubnetsec2:DescribeVpcAttributeec2:DescribeVpcsec2:ModifyNetworkInterfaceAttribute

read

m2:ListTagsForResourcem2:GetEnvironment

update

m2:TagResourcem2:UntagResourcem2:ListTagsForResourcem2:GetEnvironmentm2:UpdateEnvironmentkms:DescribeKey

delete

elasticloadbalancing:DeleteLoadBalancerm2:DeleteEnvironmentm2:GetEnvironment

list

m2:ListEnvironments

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceM2
Properties16
Required3
TaggingSupported
Primary IDEnvironmentArn

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

DescriptionEngineTypeKmsKeyIdNameNetworkTypePubliclyAccessibleSecurityGroupIdsStorageConfigurationsSubnetIds

Related Resources

External Links