How to use the @aws-cdk/cx-api.DEFAULT_ACCOUNT_ENV function in @aws-cdk/cx-api

To help you get started, we’ve selected a few @aws-cdk/cx-api examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aws / aws-cdk / packages / aws-cdk / lib / api / cxapp / exec.ts View on Github external
async function populateDefaultEnvironmentIfNeeded(aws: ISDK, env: { [key: string]: string | undefined}) {
  env[cxapi.DEFAULT_REGION_ENV] = await aws.defaultRegion();
  debug(`Setting "${cxapi.DEFAULT_REGION_ENV}" environment variable to`, env[cxapi.DEFAULT_REGION_ENV]);

  env[cxapi.DEFAULT_ACCOUNT_ENV] = await aws.defaultAccount();
  debug(`Setting "${cxapi.DEFAULT_ACCOUNT_ENV}" environment variable to`, env[cxapi.DEFAULT_ACCOUNT_ENV]);
}
github aws / aws-cdk / packages / aws-cdk / lib / api / cxapp / exec.ts View on Github external
async function populateDefaultEnvironmentIfNeeded(aws: ISDK, env: { [key: string]: string | undefined}) {
  env[cxapi.DEFAULT_REGION_ENV] = await aws.defaultRegion();
  debug(`Setting "${cxapi.DEFAULT_REGION_ENV}" environment variable to`, env[cxapi.DEFAULT_REGION_ENV]);

  env[cxapi.DEFAULT_ACCOUNT_ENV] = await aws.defaultAccount();
  debug(`Setting "${cxapi.DEFAULT_ACCOUNT_ENV}" environment variable to`, env[cxapi.DEFAULT_ACCOUNT_ENV]);
}