(pipelines) Environment variables placed in Pipeline > Stages > Action > Configuration break deploy
See original GitHub issueEnvironment variables were previously placed in AWS::CodeBuildProject > Properties > Environment as a list.
Now it is placed in Pipeline > Stages > Action > Configuration as a string which causes:
1 validation error detected: Value at 'pipeline.stages.2.member.actions.1.member.configuration' failed to satisfy constrain
t: 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: e4
df2712-2f07-45e6-a0bd-9ebf10a0b8c2; Proxy: null)
and I am unable to deploy pipeline.
Reproduction Steps
environment_variables = {name: codebuild.BuildEnvironmentVariable(value=value.value)
for name, value in EnvVars.__members__.items()}
pipeline = pipelines.CdkPipeline(self, "Pipeline",
cloud_assembly_artifact=cloud_assembly_artifact,
pipeline_name="MyPipeline",
source_action=cp_actions.CodeCommitSourceAction(
action_name="GetSourceCode",
output=source_artifact,
repository=repository),
synth_action=pipelines.SimpleSynthAction(
environment={"privileged": True},
environment_variables=environment_variables,
source_artifact=source_artifact,
cloud_assembly_artifact=cloud_assembly_artifact,
install_commands=["npm install -g aws-cdk"],
synth_command="cdk synth")
)
- 1.87.0
- Framework Version:
- node v14.15.1
- Windows 10
- Python 3.8
This is 🐛 Bug Report
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (12 by maintainers)
Top Results From Across the Web
Working with variables - AWS CodePipeline
Configure actions with variables (console) · Choose the pipeline you want to edit, and then choose Edit. For the source stage, choose Edit...
Read more >Stages in Azure Pipelines - Microsoft Learn
A stage is a logical boundary in the pipeline. It can be used to mark separation of concerns (for example, Build, QA, and...
Read more >CI/CD pipelines - GitLab Docs
A production stage, with a job called deploy-to-prod . ... Enter any environment variables required for the pipeline to run. You can set...
Read more >Pipeline values and parameters - CircleCI
Pipeline parameters are typed pipeline variables that are declared in the parameters key at the top level of a configuration. Users can pass...
Read more >Variables and secrets | Bitbucket Cloud - Atlassian Support
From the repository, you can manage deployment variables in Repository settings > Pipelines > Deployments. Note: Deployment variables override both team and ...
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
Next steps would be me reviewing the PR 🙂.
How about we base it on the error the OP encountered?
“If you encounter an error similar to this, try this instead”, something like that?