

# Management Account \$1 Create Application Account (With VPC)
<a name="deployment-managed-management-account-create-application-account-with-vpc"></a>

Create a managed AWS landing zone application account and a VPC with up to 10 private subnets and up to 5 optional public subnets per availability zone (AZ) for two or three AZ's. Optionally, also create an AWS Backup plan with up to four different rules. Managed AWS landing zone core accounts must already be onboarded to AWS Managed Services (AMS).

**Full classification:** Deployment \$1 Managed landing zone \$1 Management account \$1 Create application account (with VPC)

## Change Type Details
<a name="ct-1zdasmc2ewzrs-DMMc-table"></a>


****  

|  |  | 
| --- |--- |
| Change type ID | ct-1zdasmc2ewzrs | 
| Current version | 2.0 | 
| Expected execution duration | 3600 minutes | 
| AWS approval | Required | 
| Customer approval | Not required | 
| Execution mode | Automated | 

## Additional Information
<a name="deployment-managed-management-account-create-application-account-with-vpc-info"></a>

### Create an Application account with VPC
<a name="ex-malz-mgmt-acct-create-app-acct-vpc-col"></a>

#### Management account: Creating an application account (with VPC) with the Console
<a name="malz-mgmt-acct-create-app-acct-vpc-con"></a>

Screenshot of this change type in the AMS console:

![\[Application account creation interface with description, ID, and version details.\]](http://docs.aws.amazon.com/managedservices/latest/ctref/images/guiMalzMastAcctCreateAppAcctVpcCT.png)


How it works:

1. Navigate to the **Create RFC** page: In the left navigation pane of the AMS console click **RFCs** to open the RFCs list page, and then click **Create RFC**.

1. Choose a popular change type (CT) in the default **Browse change types** view, or select a CT in the **Choose by category** view.
   + **Browse by change type**: You can click on a popular CT in the **Quick create** area to immediately open the **Run RFC** page. Note that you cannot choose an older CT version with quick create.

     To sort CTs, use the **All change types** area in either the **Card** or **Table** view. In either view, select a CT and then click **Create RFC** to open the **Run RFC** page. If applicable, a **Create with older version** option appears next to the **Create RFC** button.
   + **Choose by category**: Select a category, subcategory, item, and operation and the CT details box opens with an option to **Create with older version** if applicable. Click **Create RFC** to open the **Run RFC** page.

1. On the **Run RFC** page, open the CT name area to see the CT details box. A **Subject** is required (this is filled in for you if you choose your CT in the **Browse change types** view). Open the **Additional configuration** area to add information about the RFC.

   In the **Execution configuration** area, use available drop-down lists or enter values for the required parameters. To configure optional execution parameters, open the **Additional configuration** area.

1. When finished, click **Run**. If there are no errors, the **RFC successfully created** page displays with the submitted RFC details, and the initial **Run output**. 

1. Open the **Run parameters** area to see the configurations you submitted. Refresh the page to update the RFC execution status. Optionally, cancel the RFC or create a copy of it with the options at the top of the page.

#### Management account: Creating an application account (with VPC) with the CLI
<a name="malz-mgmt-acct-create-app-acct-vpc-cli"></a>

How it works:

1. Use either the Inline Create (you issue a `create-rfc` command with all RFC and execution parameters included), or Template Create (you create two JSON files, one for the RFC parameters and one for the execution parameters) and issue the `create-rfc` command with the two files as input. Both methods are described here.

1. Submit the RFC: `aws amscm submit-rfc --rfc-id ID` command with the returned RFC ID.

   Monitor the RFC: `aws amscm get-rfc --rfc-id ID` command.

To check the change type version, use this command:

```
aws amscm list-change-type-version-summaries --filter Attribute=ChangeTypeId,Value=CT_ID
```
**Note**  
You can use any `CreateRfc` parameters with any RFC whether or not they are part of the schema for the change type. For example, to get notifications when the RFC status changes, add this line, `--notification "{\"Email\": {\"EmailRecipients\" : [\"email@example.com\"]}}"` to the RFC parameters part of the request (not the execution parameters). For a list of all CreateRfc parameters, see the [AMS Change Management API Reference](https://docs.aws.amazon.com/managedservices/latest/ApiReference-cm/API_CreateRfc.html).

*INLINE CREATE*:
**Note**  
Run this change type from your Management account.

Issue the create RFC command with execution parameters provided inline (escape quotes when providing execution parameters inline), and then submit the returned RFC ID. For example, you can replace the contents with something like this:

```
aws amscm create-rfc --change-type-id "ct-1zdasmc2ewzrs" --change-type-version "2.0"
    --title "Application account onboarding" --execution-parameters "{\"AccountName
    \": \"ACCOUNT_NAME\",\"AccountEmail\": \"EMAIL_ADDRESS\",\"ApplicationOUName\":
    \"APP_ACCOUNT_OU_NAME:CHILD_OU_NAME\",\"SupportLevel\": \"LEVEL\",\"VpcName\":
    \"VPC_NAME\",\"NumberOfAZs\": \"INTEGER\",\"VpcCIDR\":
    \"X.X.X.X/X\", \"PrivateSubnet1AZ1CIDR\": \"X.X.X.X/X\",\"PrivateSubnet1AZ2CIDR\":
    \"X.X.X.X/X\",\"PrivateSubnet1AZ3CIDR\": \"X.X.X.X/X\",\"PublicSubnetAZ1CIDR\":
    \"X.X.X.X/X\",\"PublicSubnetAZ2CIDR\": \"X.X.X.X/X\",\"PublicSubnetAZ3CIDR\":
    \"X.X.X.X/X\", \"RouteType\": \"ROUTE_TYPE\", \"TransitGatewayApplicationRouteTableName\":
    \"TABLE_NAME\"}"
```

With backup parameters:

```
aws amscm create-rfc --change-type-id "ct-1zdasmc2ewzrs" --change-type-version "2.0" 
    --title "Application account onboarding" --execution-parameters "{\"AccountName
    \": \"ACCOUNT_NAME\",\"AccountEmail\": \"EMAIL_ADDRESS\",\"ApplicationOUName\":
    \"APP_ACCOUNT_OU_NAME:CHILD_OU_NAME\",\"SupportLevel\": \"LEVEL\",\"VpcName\":
    \"VPC_NAME\",\"NumberOfAZs\": \"INTEGER\",\"VpcCIDR\":
    \"X.X.X.X/X\", \"PrivateSubnet1AZ1CIDR\": \"X.X.X.X/X\",\"PrivateSubnet1AZ2CIDR\":
    \"X.X.X.X/X\",\"PrivateSubnet1AZ3CIDR\": \"X.X.X.X/X\",\"PublicSubnetAZ1CIDR\":
    \"X.X.X.X/X\",\"PublicSubnetAZ2CIDR\": \"X.X.X.X/X\",\"PublicSubnetAZ3CIDR\":
    \"X.X.X.X/X\", \"RouteType\": \"ROUTE_TYPE\", \"TransitGatewayApplicationRouteTableName\":
    \"TABLE_NAME\", \"BackupPlanName\":\"PLAN_NAME\", \"ResourceTagKey\":
    \"TAG_KEY\", \"ResourceTagValue\":\"TAG_VALUE\", "\BackupRule1ScheduleExpression\":
    \"cron(0 2 ? * * *)\"}"
```

*TEMPLATE CREATE*:

1. Output the execution parameters JSON schema for this change type to a file; this example names it CreateMgmtAcctAppAcctWithVpcParams.json:

   ```
   aws amscm get-change-type-version --change-type-id "ct-1zdasmc2ewzrs" --query "ChangeTypeVersion.ExecutionInputSchema" --output text > CreateMgmtAcctAppAcctWithVpcParams.json
   ```

1. Modify and save the CreateMgmtAcctAppAcctWithVpcParams file. For example, you can replace the contents with something like this:

   ```
   {
         "AccountName": "ACCOUNT_NAME",
         "AccountEmail": "ACCOUNT_EMAIL",
         "ApplicationOUName": "APPLICATION_OU_NAME:CHILD_OU_NAME",
         "SupportLevel": "PLUS_or_PREMIUM",
         "VpcName": "VPC_NAME",
         "NumberOfAZs": "TWO_or_THREE",
         "VpcCIDR": "x.x.x.x/x",
         "PrivateSubnet1AZ1CIDR": "x.x.x.x/x",
         "PrivateSubnet1AZ2CIDR": "x.x.x.x/x",
         "PrivateSubnet1AZ3CIDR": "x.x.x.x/x",
         "PublicSubnetAZ1CIDR": "x.x.x.x/x",
         "PublicSubnetAZ2CIDR": "x.x.x.x/x",
         "PublicSubnetAZ3CIDR": "x.x.x.x/x",
         "RouteType": "ROUTABLE_or_ISOLATED",
         "TransitGatewayApplicationRouteTableName": "ROUTE_TABLE_NAME"
   }
   ```

   With backup AND patch parameters:

   ```
   {
         "AccountName": "ACCOUNT_NAME",
         "AccountEmail": "ACCOUNT_EMAIL",
         "ApplicationOUName": "APPLICATION_OU_NAME:CHILD_OU_NAME",
         "SupportLevel": "PLUS_or_PREMIUM",
         "VpcName": "VPC_NAME",
         "NumberOfAZs": "TWO_or_THREE",
         "VpcCIDR": "x.x.x.x/x",
         "PrivateSubnet1AZ1CIDR": "x.x.x.x/x",
         "PrivateSubnet1AZ2CIDR": "x.x.x.x/x",
         "PrivateSubnet1AZ3CIDR": "x.x.x.x/x",
         "PublicSubnetAZ1CIDR": "x.x.x.x/x",
         "PublicSubnetAZ2CIDR": "x.x.x.x/x",
         "PublicSubnetAZ3CIDR": "x.x.x.x/x",
         "RouteType": "ROUTABLE_or_ISOLATED",
         "TransitGatewayApplicationRouteTableName": "ROUTE_TABLE_NAME",
         "BackupPlanName": "PLAN_NAME",
         "ResourceTagKey": "TAG_KEY",
         "ResourceTagValue": "TAG_VALUE",
         "BackupRule1ScheduleExpression": "cron(0 2 ? * * *),"
         "PatchOrchestratorFirstTagKey": "TAG_KEY",
         "PatchOrchestratorDefaultMaintenanceWindowCutoff": "INTEGER",
         "PatchOrchestratorDefaultMaintenanceWindowDuration": "INTEGER",
         "PatchOrchestratorDefaultMaintenanceWindowSchedule": "cron(0 18 * * ? *),"
         "PatchOrchestratorDefaultMaintenanceWindowTimeZone": "TIME_ZONE",
         "PatchOrchestratorDefaultPatchBackupRetentionInDays": "INTEGER",
         "PatchOrchestratorNotificationEmails": "DISTRO_EMAIL"
   }
   ```

1. Output the RFC template JSON file to a file; this example names it CreateMgmtAcctAppAcctWithVpcRfc.json:

   ```
   aws amscm create-rfc --generate-cli-skeleton > CreateMgmtAcctAppAcctWithVpcRfc.json
   ```

1. Modify and save the CreateMgmtAcctAppAcctWithVpcRfc.json file. For example, you can replace the contents with something like this:

   ```
   {
   "ChangeTypeVersion":    "2.0",
   "ChangeTypeId":         "ct-1zdasmc2ewzrs",
   "Title":                "Management-Acct-App-Acct-With-Vpc-RFC"
   }
   ```

1. Create the RFC, specifying the CreateMgmtAcctAppAcctWithVpcRfc file and the CreateMgmtAcctAppAcctWithVpcParams file:

   ```
   aws amscm create-rfc --cli-input-json file://CreateMgmtAcctAppAcctWithVpcRfc.json  --execution-parameters file://CreateMgmtAcctAppAcctWithVpcParams.json
   ```

   You receive the ID of the new RFC in the response and can use it to submit and monitor the RFC. Until you submit it, the RFC remains in the editing state and does not start.

#### Tips
<a name="ex-malz-mgmt-acct-create-app-acct-vpc-tip"></a>

**Note**  
The minimum value for this parameter has changed from 60 to 1.

**Important**  
This change type has been automated and you can now configure the VPC to have up to 10 private subnets and up to 5 public subnets. Additionally, you can now configure backup and patching.

To learn more about AMS multi-account landing zone, see [AWS Managed Services (AMS) Now Offers Managed Landing Zones](https://aws.amazon.com/about-aws/whats-new/2019/10/aws-managed-services-now-offers-managed-landing-zones/).

[![AWS Videos](http://img.youtube.com/vi/https://www.youtube.com/embed/zjojREBQq20/0.jpg)](http://www.youtube.com/watch?v=https://www.youtube.com/embed/zjojREBQq20)


## Execution Input Parameters
<a name="deployment-managed-management-account-create-application-account-with-vpc-input"></a>

For detailed information about the execution input parameters, see [Schema for Change Type ct-1zdasmc2ewzrs](schemas.md#ct-1zdasmc2ewzrs-schema-section).

## Example: Required Parameters
<a name="deployment-managed-management-account-create-application-account-with-vpc-ex-min"></a>

```
{
  "AccountName": "AccountName",
  "AccountEmail": "nobody@amazon.com",
  "SupportLevel": "plus",
  "VpcName": "TestVPC",
  "VpcCIDR": "10.0.0.0/22",
  "NumberOfAZs": 2,
  "PrivateSubnet1AZ1CIDR": "10.0.0.0/24",
  "PrivateSubnet1AZ2CIDR": "10.0.1.0/24",
  "BackupPlanName": "default-backup-plan",
  "ResourceTagKey": "Backup",
  "ResourceTagValue": "True",
  "BackupRule1ScheduleExpression": "cron(0 2 ? * * )"
}
```

## Example: All Parameters
<a name="deployment-managed-management-account-create-application-account-with-vpc-ex-max"></a>

```
{
  "AccountName": "AccountName",
  "AccountEmail": "nobody@amazon.com",
  "ApplicationOUName": "applications",
  "SupportLevel": "plus",
  "VpcName": "TestVPC",
  "VpcCIDR": "10.0.0.0/22",
  "NumberOfAZs": 3,
  "RouteType": "isolated",
  "TransitGatewayApplicationRouteTableName": "defaultAppRouteTable",
  "PublicSubnetAZ1CIDR": "10.0.0.0/24",
  "PublicSubnetAZ2CIDR": "10.0.1.0/24",
  "PublicSubnetAZ3CIDR": "10.0.2.0/24",
  "PublicSubnet2AZ1CIDR": "10.0.0.0/24",
  "PublicSubnet2AZ2CIDR": "10.0.1.0/24",
  "PublicSubnet2AZ3CIDR": "10.0.2.0/24",
  "PublicSubnet3AZ1CIDR": "10.0.0.0/24",
  "PublicSubnet3AZ2CIDR": "10.0.1.0/24",
  "PublicSubnet3AZ3CIDR": "10.0.2.0/24",
  "PublicSubnet4AZ1CIDR": "10.0.0.0/24",
  "PublicSubnet4AZ2CIDR": "10.0.1.0/24",
  "PublicSubnet4AZ3CIDR": "10.0.2.0/24",
  "PublicSubnet5AZ1CIDR": "10.0.0.0/24",
  "PublicSubnet5AZ2CIDR": "10.0.1.0/24",
  "PublicSubnet5AZ3CIDR": "10.0.2.0/24",
  "PrivateSubnet1AZ1CIDR": "10.0.0.0/24",
  "PrivateSubnet1AZ2CIDR": "10.0.1.0/24",
  "PrivateSubnet1AZ3CIDR": "10.0.2.0/24",
  "PrivateSubnet2AZ1CIDR": "10.0.3.0/24",
  "PrivateSubnet2AZ2CIDR": "10.0.4.0/24",
  "PrivateSubnet2AZ3CIDR": "10.0.5.0/24",
  "PrivateSubnet3AZ1CIDR": "10.0.0.0/24",
  "PrivateSubnet3AZ2CIDR": "10.0.1.0/24",
  "PrivateSubnet3AZ3CIDR": "10.0.2.0/24",
  "PrivateSubnet4AZ1CIDR": "10.0.3.0/24",
  "PrivateSubnet4AZ2CIDR": "10.0.4.0/24",
  "PrivateSubnet4AZ3CIDR": "10.0.5.0/24",
  "PrivateSubnet5AZ1CIDR": "10.0.0.0/24",
  "PrivateSubnet5AZ2CIDR": "10.0.1.0/24",
  "PrivateSubnet5AZ3CIDR": "10.0.2.0/24",
  "PrivateSubnet6AZ1CIDR": "10.0.3.0/24",
  "PrivateSubnet6AZ2CIDR": "10.0.4.0/24",
  "PrivateSubnet6AZ3CIDR": "10.0.5.0/24",
  "PrivateSubnet7AZ1CIDR": "10.0.0.0/24",
  "PrivateSubnet7AZ2CIDR": "10.0.1.0/24",
  "PrivateSubnet7AZ3CIDR": "10.0.2.0/24",
  "PrivateSubnet8AZ1CIDR": "10.0.3.0/24",
  "PrivateSubnet8AZ2CIDR": "10.0.4.0/24",
  "PrivateSubnet8AZ3CIDR": "10.0.5.0/24",
  "PrivateSubnet9AZ1CIDR": "10.0.0.0/24",
  "PrivateSubnet9AZ2CIDR": "10.0.1.0/24",
  "PrivateSubnet9AZ3CIDR": "10.0.2.0/24",
  "PrivateSubnet10AZ1CIDR": "10.0.3.0/24",
  "PrivateSubnet10AZ2CIDR": "10.0.4.0/24",
  "PrivateSubnet10AZ3CIDR": "10.0.5.0/24",
  "DirectAlertsEmail": "test@amazon.com",
  "SamlMetadataDocumentURL": "https://test.com",
  "BackupPlanName": "default-backup-plan",
  "ResourceTagKey": "Backup",
  "ResourceTagValue": "True",
  "BackupRule1ScheduleExpression": "cron(0 2 ? * * )",
  "PatchOrchestratorFirstTagKey": "AppId",
  "PatchOrchestratorSecondTagKey": "Environment",
  "PatchOrchestratorDefaultMaintenanceWindowCutoff": 1,
  "PatchOrchestratorDefaultMaintenanceWindowDuration": 4,
  "PatchOrchestratorDefaultMaintenanceWindowSchedule": "cron(0 18 * * ? *)",
  "PatchOrchestratorDefaultMaintenanceWindowTimeZone": "UTC",
  "PatchOrchestratorDefaultPatchBackupRetentionInDays": 60,
  "PatchOrchestratorNotificationEmails": ["user@test.com"]
}
```