AWS::M2::EnvironmentRepresents a runtime environment that can run migrated mainframe applications.
14 configurable properties. 3 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
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 |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
EnvironmentArn | string | The Amazon Resource Name (ARN) of the runtime environment. |
EnvironmentId | string | The unique identifier of the environment. |
A minimal template with required properties and common optional ones.
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"Permissions CloudFormation needs in your IAM role to manage this resource.
ec2:CreateNetworkInterfaceec2:CreateNetworkInterfacePermissionec2:DescribeNetworkInterfacesec2:DescribeSecurityGroupsec2:DescribeSubnetsec2:DescribeVpcAttributeec2:DescribeVpcsec2:ModifyNetworkInterfaceAttributem2:ListTagsForResourcem2:GetEnvironmentm2:TagResourcem2:UntagResourcem2:ListTagsForResourcem2:GetEnvironmentm2:UpdateEnvironmentkms:DescribeKeyelasticloadbalancing:DeleteLoadBalancerm2:DeleteEnvironmentm2:GetEnvironmentm2:ListEnvironmentsOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterEnvironmentArnThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
DescriptionEngineTypeKmsKeyIdNameNetworkTypePubliclyAccessibleSecurityGroupIdsStorageConfigurationsSubnetIds