I have a copilot application that contains two pipelines:
copilot/pipelines/pipeline_a/
buildspec.yml
manifest.yml
copilot/pipelines/pipeline_b/
manifest.yml
Pipeline B manifest references buildspec.yml so it is shared between the two pipelines.
I manually edited the generated pipelines adding environment variables
Is it possible to include those variables in the copilot configurations files? The most natural place would be in the pipeline manifest.yml but I couldn't find any documentation for that, and nothing I tried was visible within the buildspec.yml.
I got an answer on copilot-cli github pages.
To quickly unblock the use case right now you can run copilot pipeline override and in your yaml patch file you can specify env vars like this
- op: add path: /Resources/BuildProject/Properties/Environment/EnvironmentVariables/- value: Name: VARIABLE_NAME Value: value_a