Closed MATTT-P closed 1 year ago
Hi @MATTT-P , thanks for opening an issue. Let's see, the issue seems to come for an un-existing stack. Can you have a look at the previous stage (Synth)?
In Synth
the stack gets synthesized, that means, the CDK code creates a CloudFormation template. In UpdatePipeline
the template is re-deployed/updated in CloudFormation.
You should check the latest logs in the Synth
, to see the output of the synthesis
I am trying to reproduce your issue but I don't run into the same situation. We can sync internally to schedule a call and debug together.
Hi @dlpzx We have found the issue to be a hard coded stack name in app.py (dataall\deploy\app.py), the stack name is defined as:
git_branch = git_branch if git_branch != "" else "main"
We needed it to be "dev", and when we move to production we need it to be "prod".
This should be pulled dynamically from the larger section of code:
if not os.environ.get("DATAALL_REPO_BRANCH", None):
Configuration of the branch in first deployment
git_branch = ( subprocess.Popen(['git', 'branch', '--show-current'], stdout=subprocess.PIPE) .stdout.read().decode('utf-8').rstrip('\n') )
else:
Configuration of the branch in subsequent deployments
git_branch = os.environ.get("DATAALL_REPO_BRANCH")
git_branch = git_branch if git_branch != "" else "main"
But this functionality isn't working in our case so we manually changed it to what we need.
Thanks for the response @MATTT-P!, We'll keep an eye on this issue and definitely go back to your findings if we spot it again. For the moment I will close the issue as it cannot be reproduced, it will be reopened if anyone gets into this situation again
Describe the bug
After pushing 1.5.5 the pipeline is failing at the UpdatePipeline stage - SelfMutate with the following error "Error: No stacks match the name(s) dataall-dev-cicd-stack".
Log:
How to Reproduce
Pushed the 1.5.5 code into dev. Pipeline started automatically.
Expected behavior
Build completes successfully.
Your project
No response
Screenshots
OS
n/a
Python version
3.7
AWS data.all version
1.5.5
Additional context
No response