@aws-cdk/core#DefaultStackSynthesizer TypeScript Examples

The following examples show how to use @aws-cdk/core#DefaultStackSynthesizer. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: cicd-stack.test.ts    From MDDL with MIT License 6 votes vote down vote up
test.skip('Default Stack', () => {
  const app = new cdk.App()
  // WHEN
  const name = 'test-user-pool'
  const stack = new CiCdStack(app, 'MyTestAuthStack', {
    env: {
      region: 'us-west-2',
    },
    synthesizer: new DefaultStackSynthesizer(),
    developStageConfiguration: {
      dataStoreStackProps: {
        name: 'DataStoreStack',
        props: {},
      },
    },
  })
  // THEN
  expectCDK(stack).to(countResources('AWS::S3::Bucket', 2))
})
Example #2
Source File: cicd-stack.ts    From MDDL with MIT License 5 votes vote down vote up
getCrossAccountDeployRoleArn = (
  partition: string,
  accountId: string,
  region: string,
) => {
  return `arn:${partition}:iam::${accountId}:role/cdk-${DefaultStackSynthesizer.DEFAULT_QUALIFIER}-deploy-role-${accountId}-${region}`
}