Skip to content

Environment

The deployment environment for a stack.

Initializer

import ros_cdk_core
ros_cdk_core.Environment(
  account: str = None,
  region: str = None
)

Properties

Name Type Description
account str The ALIYUN account ID for this environment.
region str The ALIYUN region for this environment.

accountOptional

account: str
  • Type: str
  • Default: ALIYUN.ACCOUNT_ID which means that the stack will be account-agnostic.

The ALIYUN account ID for this environment.

This can be either a concrete value such as 585191031104 or ALIYUN.ACCOUNT_ID which indicates that account ID will only be determined during deployment (it will resolve to the ROS intrinsic {"Ref":"ALIYUN::AccountId"}). Note that certain features, such as cross-stack references and environmental context providers require concrete region information and will cause this stack to emit synthesis errors.


regionOptional

region: str
  • Type: str
  • Default: ALIYUN.REGION which means that the stack will be region-agnostic.

The ALIYUN region for this environment.

This can be either a concrete value such as eu-west-2 or ALIYUN.REGION which indicates that account ID will only be determined during deployment (it will resolve to the ROS intrinsic {"Ref":"ALIYUN::Region"}). Note that certain features, such as cross-stack references and environmental context providers require concrete region information and will cause this stack to emit synthesis errors.