Class CliCredentialsStackSynthesizer

All Implemented Interfaces:

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:54.977Z") @Stability(Stable) public class CliCredentialsStackSynthesizer extends StackSynthesizer
A synthesizer that uses conventional asset locations, but not conventional deployment roles.

Instead of assuming the bootstrapped deployment roles, all stack operations will be performed using the CLI's current credentials.

  • This synthesizer does not support deploying to accounts to which the CLI does not have credentials. It also does not support deploying using CDK Pipelines. For either of those features, use DefaultStackSynthesizer.
  • This synthesizer requires an S3 bucket and ECR repository with well-known names. To not depend on those, use LegacyStackSynthesizer.

Be aware that your CLI credentials must be valid for the duration of the entire deployment. If you are using session credentials, make sure the session lifetime is long enough.

By default, expects the environment to have been bootstrapped with just the staging resources of the Bootstrap Stack V2 (also known as "modern bootstrap stack"). You can override the default names using the synthesizer's construction properties.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 CliCredentialsStackSynthesizer cliCredentialsStackSynthesizer = CliCredentialsStackSynthesizer.Builder.create()
  • Constructor Details

    • CliCredentialsStackSynthesizer

      protected CliCredentialsStackSynthesizer( objRef)
    • CliCredentialsStackSynthesizer

      protected CliCredentialsStackSynthesizer( initializationMode)
    • CliCredentialsStackSynthesizer

      @Stability(Stable) public CliCredentialsStackSynthesizer(@Nullable CliCredentialsStackSynthesizerProps props)
      props -
    • CliCredentialsStackSynthesizer

      @Stability(Stable) public CliCredentialsStackSynthesizer()
  • Method Details