question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(pipelines) Environment variables placed in Pipeline > Stages > Action > Configuration break deploy

See original GitHub issue

Environment 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:closed
  • Created 3 years ago
  • Comments:16 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
skinny85commented, Jun 29, 2021

@skinny85 I opened a PR, please advise regarding further steps

Next steps would be me reviewing the PR 🙂.

1reaction
skinny85commented, Jun 15, 2021

How about we base it on the error the OP encountered?

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)

“If you encounter an error similar to this, try this instead”, something like that?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found