Updated on 2024-07-01 GMT+08:00

Creating an Environment

You can create application components in different environments to isolate them.

By default, only one environment can be created under an account. Submit a service ticket to increase the quota.

Prerequisites

A CAE runs on a VPC. Before creating an environment, ensure that VPCs and subnets are available.

For details, see Creating a VPC.

If the engine is created using an account with the minimum permission for creating engines, for example, cae:environment:create in the fine-grained permission dependencies of CAE, the default VPC security group cae-default-sg needs to be preset by the primary account and the rules listed in Table 1 need to be added.

For details, see Adding a Security Group Rule.
Table 1 cae-default-sg rules

Direction

Priority

Policy

Protocol and Port

Type

Source Address

Inbound

1

Allow

TCP: 3000–65535

IPv4

0.0.0.0/0

1

Allow

All

IPv6

cae-default-sg

1

Allow

All

IPv4

cae-default-sg

Outbound

100

Allow

All

IPv4

0.0.0.0/0

100

Allow

All

IPv6

::/0

Do not modify or delete the default security group. Otherwise, the system may run abnormally.

Procedure

  1. Log in to CAE.
  2. Use either of the following methods to create an environment:

    • If you use CAE for the first time, a message is displayed indicating that no environment has been created.
      1. Click Create Now in the Create Environment card.
        Figure 1 Creating an environment
      2. In the displayed dialog box, set the parameters by referring to Table 2.
        Table 2 Creating an environment

        Parameter

        Description

        Environment

        Enter an environment name.

        Enterprise Project

        Select an enterprise project.

        An enterprise project facilitates project-level management and grouping of cloud resources and users. The default project is default.

        It is available after the enterprise project function is enabled.

        Virtual Private Cloud

        Select the VPC to which the environment resource belongs from the drop-down list.

        To create a VPC, click Create VPC. For details, see Creating a VPC.

        NOTE:

        The VPC cannot be modified after the environment is created.

        Subnet

        Select a subnet from the drop-down list.

        If no subnet is available, click Create Subnet to access the network console and create a subnet. For details, see Creating a Subnet for the VPC.

        NOTE:

        Keep at least two available network IP addresses for CAE configuration and optimization.

        Security Group

        You can select Auto generate or Use existing.

        NOTE:

        This group must allow access from the selected subnet to both the subnet gateway address and the access addresses and ports of middleware such as RDS and CSE instances.

        Organization

        If you use CAE for the first time, select Create Organization from the drop-down list and enter an organization name.

    • If this is not your first time using CAE, choose Components.
      1. Click next to Environment in the upper part of the page.
      2. In the displayed Create Environment dialog box, enter an environment name.

  3. Click OK.