Experimental
@aws-cdk/app-staging-synthesizer-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
DefaultBootstrapRolesOptions Struct
Options for DeploymentIdentities.defaultBootstrappedRoles.
| Stability | Experimental |
|---|---|
| Source | lib/bootstrap-roles.ts |
Example
ts
import { BucketEncryption } from 'aws-cdk-lib/aws-s3';
const app = new App({
defaultStackSynthesizer: AppStagingSynthesizer.defaultResources({
appId: 'my-app-id',
stagingBucketEncryption: BucketEncryption.S3_MANAGED,
// The following line is optional. By default it is assumed you have bootstrapped in the same
// region(s) as the stack(s) you are deploying.
deploymentIdentities: DeploymentIdentities.defaultBootstrapRoles({ bootstrapRegion: 'us-east-1' }),
}),
});
python
from aws_cdk.aws_s3 import BucketEncryption
app = App(
default_stack_synthesizer=AppStagingSynthesizer.default_resources(
app_id="my-app-id",
staging_bucket_encryption=BucketEncryption.S3_MANAGED,
# The following line is optional. By default it is assumed you have bootstrapped in the same
# region(s) as the stack(s) you are deploying.
deployment_identities=DeploymentIdentities.default_bootstrap_roles(bootstrap_region="us-east-1")
)
)
java
import software.amazon.awscdk.services.s3.BucketEncryption;
App app = App.Builder.create()
.defaultStackSynthesizer(AppStagingSynthesizer.defaultResources(DefaultResourcesOptions.builder()
.appId("my-app-id")
.stagingBucketEncryption(BucketEncryption.S3_MANAGED)
// The following line is optional. By default it is assumed you have bootstrapped in the same
// region(s) as the stack(s) you are deploying.
.deploymentIdentities(DeploymentIdentities.defaultBootstrapRoles(DefaultBootstrapRolesOptions.builder().bootstrapRegion("us-east-1").build()))
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.AppStagingSynthesizer.Alpha
using Amazon.CDK.AWS.S3;
var app = new App(new AppProps {
DefaultStackSynthesizer = AppStagingSynthesizer.DefaultResources(new DefaultResourcesOptions {
AppId = "my-app-id",
StagingBucketEncryption = BucketEncryption.S3_MANAGED,
// The following line is optional. By default it is assumed you have bootstrapped in the same
// region(s) as the stack(s) you are deploying.
DeploymentIdentities = DeploymentIdentities.DefaultBootstrapRoles(new DefaultBootstrapRolesOptions { BootstrapRegion = "us-east-1" })
})
});
go
// Install: go get github.com/aws/aws-cdk-go/appstagingsynthesizeralpha/v2
import "github.com/aws/aws-cdk-go/awscdk"
app := awscdk.NewApp(&AppProps{
DefaultStackSynthesizer: appstagingsynthesizeralpha.AppStagingSynthesizer_DefaultResources(&DefaultResourcesOptions{
AppId: jsii.String("my-app-id"),
StagingBucketEncryption: awscdk.BucketEncryption_S3_MANAGED,
// The following line is optional. By default it is assumed you have bootstrapped in the same
// region(s) as the stack(s) you are deploying.
DeploymentIdentities: appstagingsynthesizeralpha.DeploymentIdentities_DefaultBootstrapRoles(&DefaultBootstrapRolesOptions{
BootstrapRegion: jsii.String("us-east-1"),
}),
}),
})
Properties
bootstrapRegionoptionalstringbootstrap_regionoptionalstrbootstrapRegionoptionalStringBootstrapRegionoptionalstringBootstrapRegionoptional*string #The region where the default bootstrap roles have been created.
Default: the stack's current region
By default, the region in which the stack is deployed is used.