@zarpay/zar-cdk-lib - v0.32.0
    Preparing search index...

    Function createLogGroup

    • Creates a CloudWatch Log Group with ZAR conventions.

      • RemovalPolicy: RETAIN for production, DESTROY for other environments
      • Retention: Configurable, defaults to TWO_WEEKS

      Parameters

      • scope: Construct

        Parent construct

      • props: LogGroupProps

        Log group configuration

      Returns LogGroup

      The created LogGroup

      const logGroup = createLogGroup(this, {
      logGroupName: '/aws/ecs/ZarCore/staging/web',
      deployEnvironment: 'staging',
      });