interface DefaultStackSynthesizerProps
Language | Type name |
---|---|
.NET | Amazon.CDK.DefaultStackSynthesizerProps |
Java | software.amazon.awscdk.core.DefaultStackSynthesizerProps |
Python | aws_cdk.core.DefaultStackSynthesizerProps |
TypeScript (source) | @aws-cdk/core » DefaultStackSynthesizerProps |
Configuration properties for DefaultStackSynthesizer.
Example
new MyStack(app, 'MyStack', {
synthesizer: new DefaultStackSynthesizer({
fileAssetsBucketName: 'my-orgs-asset-bucket',
}),
});
Properties
Name | Type | Description |
---|---|---|
bootstrap | string | Bootstrap stack version SSM parameter. |
bucket | string | bucketPrefix to use while storing S3 Assets. |
cloud | string | The role CloudFormation will assume when deploying the Stack. |
deploy | string | The role to assume to initiate a deployment in this environment. |
deploy | string | External ID to use when assuming role for cloudformation deployments. |
docker | string | A prefix to use while tagging and uploading Docker images to ECR. |
file | string | Name of the CloudFormation Export with the asset key name. |
file | string | External ID to use when assuming role for file asset publishing. |
file | string | The role to use to publish file assets to the S3 bucket in this environment. |
file | string | Name of the S3 bucket to hold file assets. |
generate | boolean | Whether to add a Rule to the stack template verifying the bootstrap stack version. |
image | string | External ID to use when assuming role for image asset publishing. |
image | string | The role to use to publish image assets to the ECR repository in this environment. |
image | string | Name of the ECR repository to hold Docker Image assets. |
lookup | string | The role to use to look up values from the target AWS account during synthesis. |
lookup | string | External ID to use when assuming lookup role. |
qualifier? | string | Qualifier to disambiguate multiple environments in the same account. |
use | boolean | Use the bootstrapped lookup role for (read-only) stack operations. |
bootstrapStackVersionSsmParameter?
Type:
string
(optional, default: DefaultStackSynthesizer.DEFAULT_BOOTSTRAP_STACK_VERSION_SSM_PARAMETER)
Bootstrap stack version SSM parameter.
The placeholder ${Qualifier}
will be replaced with the value of qualifier.
bucketPrefix?
Type:
string
(optional, default: DefaultStackSynthesizer.DEFAULT_FILE_ASSET_PREFIX)
bucketPrefix to use while storing S3 Assets.
cloudFormationExecutionRole?
Type:
string
(optional, default: DefaultStackSynthesizer.DEFAULT_CLOUDFORMATION_ROLE_ARN)
The role CloudFormation will assume when deploying the Stack.
You must supply this if you have given a non-standard name to the execution role.
The placeholders ${Qualifier}
, ${AWS::AccountId}
and ${AWS::Region}
will
be replaced with the values of qualifier and the stack's account and region,
respectively.
deployRoleArn?
Type:
string
(optional, default: DefaultStackSynthesizer.DEFAULT_DEPLOY_ROLE_ARN)
The role to assume to initiate a deployment in this environment.
You must supply this if you have given a non-standard name to the publishing role.
The placeholders ${Qualifier}
, ${AWS::AccountId}
and ${AWS::Region}
will
be replaced with the values of qualifier and the stack's account and region,
respectively.
deployRoleExternalId?
Type:
string
(optional, default: No external ID)
External ID to use when assuming role for cloudformation deployments.
dockerTagPrefix?
Type:
string
(optional, default: DefaultStackSynthesizer.DEFAULT_DOCKER_ASSET_PREFIX)
A prefix to use while tagging and uploading Docker images to ECR.
This does not add any separators - the source hash will be appended to this string directly.
fileAssetKeyArnExportName?
⚠️ Deprecated: This property is not used anymore
Type:
string
(optional, default: DefaultStackSynthesizer.DEFAULT_FILE_ASSET_KEY_ARN_EXPORT_NAME)
Name of the CloudFormation Export with the asset key name.
You must supply this if you have given a non-standard name to the KMS key export
The placeholders ${Qualifier}
, ${AWS::AccountId}
and ${AWS::Region}
will
be replaced with the values of qualifier and the stack's account and region,
respectively.
fileAssetPublishingExternalId?
Type:
string
(optional, default: No external ID)
External ID to use when assuming role for file asset publishing.
fileAssetPublishingRoleArn?
Type:
string
(optional, default: DefaultStackSynthesizer.DEFAULT_FILE_ASSET_PUBLISHING_ROLE_ARN)
The role to use to publish file assets to the S3 bucket in this environment.
You must supply this if you have given a non-standard name to the publishing role.
The placeholders ${Qualifier}
, ${AWS::AccountId}
and ${AWS::Region}
will
be replaced with the values of qualifier and the stack's account and region,
respectively.
fileAssetsBucketName?
Type:
string
(optional, default: DefaultStackSynthesizer.DEFAULT_FILE_ASSETS_BUCKET_NAME)
Name of the S3 bucket to hold file assets.
You must supply this if you have given a non-standard name to the staging bucket.
The placeholders ${Qualifier}
, ${AWS::AccountId}
and ${AWS::Region}
will
be replaced with the values of qualifier and the stack's account and region,
respectively.
generateBootstrapVersionRule?
Type:
boolean
(optional, default: true)
Whether to add a Rule to the stack template verifying the bootstrap stack version.
This generally should be left set to true
, unless you explicitly
want to be able to deploy to an unbootstrapped environment.
imageAssetPublishingExternalId?
Type:
string
(optional, default: No external ID)
External ID to use when assuming role for image asset publishing.
imageAssetPublishingRoleArn?
Type:
string
(optional, default: DefaultStackSynthesizer.DEFAULT_IMAGE_ASSET_PUBLISHING_ROLE_ARN)
The role to use to publish image assets to the ECR repository in this environment.
You must supply this if you have given a non-standard name to the publishing role.
The placeholders ${Qualifier}
, ${AWS::AccountId}
and ${AWS::Region}
will
be replaced with the values of qualifier and the stack's account and region,
respectively.
imageAssetsRepositoryName?
Type:
string
(optional, default: DefaultStackSynthesizer.DEFAULT_IMAGE_ASSETS_REPOSITORY_NAME)
Name of the ECR repository to hold Docker Image assets.
You must supply this if you have given a non-standard name to the ECR repository.
The placeholders ${Qualifier}
, ${AWS::AccountId}
and ${AWS::Region}
will
be replaced with the values of qualifier and the stack's account and region,
respectively.
lookupRoleArn?
Type:
string
(optional, default: None)
The role to use to look up values from the target AWS account during synthesis.
lookupRoleExternalId?
Type:
string
(optional, default: No external ID)
External ID to use when assuming lookup role.
qualifier?
Type:
string
(optional, default: Value of context key ')
Qualifier to disambiguate multiple environments in the same account.
You can use this and leave the other naming properties empty if you have deployed the bootstrap environment with standard names but only differnet qualifiers.
useLookupRoleForStackOperations?
Type:
boolean
(optional, default: true)
Use the bootstrapped lookup role for (read-only) stack operations.
Use the lookup role when performing a cdk diff
. If set to false
, the
deploy role
credentials will be used to perform a cdk diff
.
Requires bootstrap stack version 8.