interface CdkPipelineProps
Language | Type name |
---|---|
![]() | Amazon.CDK.Pipelines.CdkPipelineProps |
![]() | software.amazon.awscdk.pipelines.CdkPipelineProps |
![]() | aws_cdk.pipelines.CdkPipelineProps |
![]() | @aws-cdk/pipelines » CdkPipelineProps |
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline
class instead
Properties for a CdkPipeline.
Example
const sourceArtifact = new codepipeline.Artifact();
const cloudAssemblyArtifact = new codepipeline.Artifact();
const pipeline = new pipelines.CdkPipeline(this, 'MyPipeline', {
cloudAssemblyArtifact,
synthAction: pipelines.SimpleSynthAction.standardNpmSynth({
sourceArtifact,
cloudAssemblyArtifact,
environment: {
privileged: true,
},
}),
});
Properties
Name | Type | Description |
---|---|---|
cloud | Artifact | The artifact you have defined to be the artifact to hold the cloudAssemblyArtifact for the synth action. |
asset | Build | Custom BuildSpec that is merged with generated one (for asset publishing actions). |
asset | string[] | Additional commands to run before installing cdk-assets during the asset publishing step Use this to setup proxies or npm mirrors. |
cdk | string | CDK CLI version to use in pipeline. |
code | Pipeline | Existing CodePipeline to add deployment stages to. |
cross | boolean | Create KMS keys for cross-account deployments. |
docker | Docker [] | A list of credentials used to authenticate to Docker registries. |
enable | boolean | Enables KMS key rotation for cross-account keys. |
pipeline | string | Name of the pipeline. |
self | boolean | Whether the pipeline will update itself. |
self | Build | Custom BuildSpec that is merged with generated one (for self-mutation stage). |
single | boolean | Whether this pipeline creates one asset upload action per asset type or one asset upload per asset. |
source | IAction | The CodePipeline action used to retrieve the CDK app's source. |
subnet | Subnet | Which subnets to use. |
support | boolean | Whether the pipeline needs to build Docker images in the UpdatePipeline stage. |
synth | IAction | The CodePipeline action build and synthesis step of the CDK app. |
vpc? | IVpc | The VPC where to execute the CdkPipeline actions. |
cloudAssemblyArtifact
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline
class instead
Type:
Artifact
The artifact you have defined to be the artifact to hold the cloudAssemblyArtifact for the synth action.
assetBuildSpec?
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline
class instead
Type:
Build
(optional, default: none)
Custom BuildSpec that is merged with generated one (for asset publishing actions).
assetPreInstallCommands?
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline
class instead
Type:
string[]
(optional, default: -)
Additional commands to run before installing cdk-assets during the asset publishing step Use this to setup proxies or npm mirrors.
cdkCliVersion?
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline
class instead
Type:
string
(optional, default: Latest version)
CDK CLI version to use in pipeline.
Some Actions in the pipeline will download and run a version of the CDK CLI. Specify the version here.
codePipeline?
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline
class instead
Type:
Pipeline
(optional, default: A new CodePipeline is automatically generated)
Existing CodePipeline to add deployment stages to.
Use this if you want more control over the CodePipeline that gets created. You can choose to not pass this value, in which case a new CodePipeline is created with default settings.
If you pass an existing CodePipeline, it should have been created
with restartExecutionOnUpdate: true
.
[disable-awslint:ref-via-interface]
crossAccountKeys?
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline
class instead
Type:
boolean
(optional, default: true)
Create KMS keys for cross-account deployments.
This controls whether the pipeline is enabled for cross-account deployments.
Can only be set if codePipeline
is not set.
By default cross-account deployments are enabled, but this feature requires that KMS Customer Master Keys are created which have a cost of $1/month.
If you do not need cross-account deployments, you can set this to false
to
not create those keys and save on that cost (the artifact bucket will be
encrypted with an AWS-managed key). However, cross-account deployments will
no longer be possible.
dockerCredentials?
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline
class instead
Type:
Docker
[]
(optional, default: [])
A list of credentials used to authenticate to Docker registries.
Specify any credentials necessary within the pipeline to build, synth, update, or publish assets.
enableKeyRotation?
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline
class instead
Type:
boolean
(optional, default: false (key rotation is disabled))
Enables KMS key rotation for cross-account keys.
Cannot be set if crossAccountKeys
was set to false
.
Key rotation costs $1/month when enabled.
pipelineName?
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline
class instead
Type:
string
(optional, default: A name is automatically generated)
Name of the pipeline.
Can only be set if codePipeline
is not set.
selfMutating?
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline
class instead
Type:
boolean
(optional, default: true)
Whether the pipeline will update itself.
This needs to be set to true
to allow the pipeline to reconfigure
itself when assets or stages are being added to it, and true
is the
recommended setting.
You can temporarily set this to false
while you are iterating
on the pipeline itself and prefer to deploy changes using cdk deploy
.
selfMutationBuildSpec?
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline
class instead
Type:
Build
(optional, default: none)
Custom BuildSpec that is merged with generated one (for self-mutation stage).
singlePublisherPerType?
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline
class instead
Type:
boolean
(optional, default: false)
Whether this pipeline creates one asset upload action per asset type or one asset upload per asset.
sourceAction?
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline
class instead
Type:
IAction
(optional, default: Required unless codePipeline
is given)
The CodePipeline action used to retrieve the CDK app's source.
subnetSelection?
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline
class instead
Type:
Subnet
(optional, default: All private subnets.)
Which subnets to use.
Only used if 'vpc' is supplied.
supportDockerAssets?
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline
class instead
Type:
boolean
(optional, default: false)
Whether the pipeline needs to build Docker images in the UpdatePipeline stage.
If the UpdatePipeline stage tries to build a Docker image and this flag is not
set to true
, the build step will run in non-privileged mode and consequently
will fail with a message like:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
This flag has an effect only if selfMutating
is also true
.
synthAction?
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline
class instead
Type:
IAction
(optional, default: Required unless codePipeline
or sourceAction
is given)
The CodePipeline action build and synthesis step of the CDK app.
vpc?
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline
class instead
Type:
IVpc
(optional, default: No VPC)
The VPC where to execute the CdkPipeline actions.