Well Architected stack that is environment agnostic and provides several methods to find out the environment it is running in.

Default Value

is Development Environment

Examples

Default Usage

const projectProps = {
application: 'ExampleApp',
company: 'CRE8IVELOGIX',
environment: Environment.SANDBOX,
env: {account: "ACCOUNT_ID", region: "us-east-1"}
}
new WaStack(app, "StackId", {
...projectProps
});

Compliance

It addresses the following compliance requirements

  • Cloudformation stacks in use for defining infrastructure

    APRA, MAS

  • Termination protection for production accounts

    APRA, MAS

Deprecated

Use WaStackV2

Hierarchy

  • Stack
    • WaStack

Constructors

  • Parameters

    Returns WaStack

Properties

deploymentEnv: Environment = Environment.DEVELOPMENT

Methods

  • Find out if the stack is running in a development environment

    Deprecated

    Use WaStackV2

    Returns boolean

  • Find out if the stack is running in a non production environment

    Deprecated

    Use WaStackV2

    Returns boolean

  • Find out if the stack is running in production

    Deprecated

    Use WaStackV2

    Returns boolean

  • Find out if the stack is running in sandbox

    Deprecated

    Use WaStackV2

    Returns boolean

  • Returned environment specific removal policy Retail for production and destroy for non production

    Deprecated

    Use WaStackV2

    Returns RemovalPolicy

  • Method to determine if alarms should be added or not Alarms are added for production environments only. This property can be overridden by waDoNotAddDefaultAlarms

    Deprecated

    Use WaStackV2

    Parameters

    Returns boolean

Generated using TypeDoc