Pipelines: Pipeline Creation Fails at Creating BucketEncryptionKeyAlias When SSM Parameter is Not Found
See original GitHub issue❓ Pipeline Creation Fails at Creating BucketEncryptionKeyAlias When SSM Parameter is Not Found
The Question
I have a project with a CdkPipeline
that was failing to deploy when creating a BucketEncryptionKeyAlias
. There was no description of why it was failing and I could only find this related issue that recommended passing an existing Pipeline
with an explicit bucket/encryption key to the CdkPipeline
.
It turned out that the cause of the failure was that I was passing an oauthToken
coming from a SecretValue.secretsManager
to the GitHubSourceAction
used as the sourceAction
for the CdkPipeline
and the secretId
had a typo so it didn’t actually exist in SSM. Once I fixed the typo I was able to successfully deploy the pipeline.
I think there should have been an easier-to-understand failure message here.
Environment
- CDK CLI Version: 1.123.0 (build fad855e)
- Module Version: 1.123.0
- Node.js Version: v16.3.0
- OS: macOS Catalina
- Language (Version): TypeScript (3.8.3)
Other information
My pipeline code:
const pipeline = new CdkPipeline(this, xxxxx, {
pipelineName: xxxxx,
cloudAssemblyArtifact,
// Action that pulls the code from GitHub
sourceAction: new GitHubSourceAction({
actionName: 'GitHub',
output: sourceArtifact,
oauthToken: SecretValue.secretsManager(xxxxx, {
jsonField: xxxxx,
}),
owner: xxxxx,
repo: xxxxx,
branch: xxxxx,
}),
// Action that runs the build commands and translates the code into a CloudFormation template
// which is used to create the service
synthAction: new SimpleSynthAction({
sourceArtifact,
cloudAssemblyArtifact,
installCommands: ['npm install', 'npm install -g aws-cdk ts-node'],
buildCommands: ['npm run build', 'npm run test'],
synthCommand: 'cdk synth',
}),
});
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Parameter Not Found Error in my Jenkins pipeline
I have a Jenkins pipeline which is associated with an AWS Service which has Parameters of a key attached. Whenever I try to...
Read more >Continuous integration and delivery (CI/CD) using CDK ...
CDK Pipelines is a construct library module for painless continuous delivery of AWS CDK applications. Whenever you check your AWS CDK app's source...
Read more >@aws-cdk/pipelines - npm
Deploying your application continuously starts by defining a MyApplicationStage , a subclass of Stage that contains the stacks that make up a single...
Read more >class SSM. Client - Boto3 Docs 1.26.36 documentation
OpsMetadata object: ResourceID for tagging is created from the Amazon Resource ... documents (SSM documents) that use schema version 2.0 or later will...
Read more >AWS CodePipeline - Noise
The following solution creates a new AWS CDK Pipeline within a development account for every new branch created in the source repository (AWS...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve created a ticket for this (V472444572), so I’m going to close the issue as this is in the hands of cloudformation now. Thanks again for reporting this!
⚠️COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.