(pipelines): Need a way to get Stack Outputs as file artifact if they are > 1000 chars
See original GitHub issueWhat is the problem?
It looks like CodeBuildStep.envFromCfnOutputs
property is limited to 1-1000 characters. When injecting variables, it can quickly reaches this limit and the CodePipeline build fails with:
8:35:20 AM | CREATE_FAILED | AWS::CodePipeline::Pipeline | ##############
ActionConfiguration Map value must satisfy constraint: [Member must have length less than or equal to 1000, Member must have length greater than or equal to 1] (Service: AWSCodePipeline; Status Code: 400; Error Code: ValidationException; Request ID: ############; Proxy: null)
Reproduction Steps
Include many environment variables from CloudFormation output in CodeBuildStep.envFromCfnOutputs
.
What did you expect to happen?
CodeBuildStep successful.
What actually happened?
CodeBuildStep failure with too vague error message.
CDK CLI Version
1.127.0
Framework Version
No response
Node.js Version
14.x
OS
macOS 11.6
Language
Typescript
Language Version
No response
Other information
No response
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Input and output artifacts - AWS CodePipeline
The pipeline can function normally. This is not an issue with the folder or artifacts. There is a 100-character limit to pipeline names....
Read more >Job artifacts - GitLab Docs
Jobs can output an archive of files and directories. This output is known as a job artifact. You can download job artifacts by...
Read more >Troubleshooting AWS CodePipeline Artifacts - Stelligent
When you use the CLI, SDK, or CloudFormation to create a pipeline in ... Figure 1 shows an encrypted CodePipeline Artifact zip file...
Read more >How to work around Cfn action's character limit in CodePipeline
I got some assistance from a CDK maintainer here, which let me get well under the 1000-character limit. Reproducing the workaround here:.
Read more >Amazon CodeBuild - Amazon CodePipeline - 亚马逊云科技
Description: These can be used to make the artifacts that are defined in the CodeBuild build spec file available to subsequent actions in...
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 use the following workaround:
I’ve run in to this as well, but only in one specific AWS account. I use the same CDK code in other accounts and it works as expected. I’m not sure what the difference is yet since they all have the same number of variables in the build step and reference SSM params of the same names.