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.

chalice detele from gitlabci

See original GitHub issue

I’m using gitlabci to deploy my chalice app and I would like to know how to use the chalice delete command to delete the app (the entire stack), again from my gitlabci. I can’t use the chalice package because of s3_event issue, hence the use of chalice deploy in my CICD.

Can we for example get the name of cloudformation stack ? if so, I think use this aws cloudformation delete-stack --stack-name my-stack `

stages:
  - deploy
  - stop

chalice-deploy:
  stage: deploy
  image: python:3.7.4
  script:
    - pip3 install awscli chalice 
    - chalice deploy
  artifacts:
     paths:
      - public

chalice-delete:
  stage: stop
  image: python:3.7.4
  when: manual
  script:
    - pip3 install awscli chalice
    - chalice delete ????  

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jameslscommented, Jun 9, 2020

Yep pulling in the .chalice directory like you’ve done should work, with the caveat that concurrent builds could be an issue. Thanks @jrbeilke for chiming in.

1reaction
jrbeilkecommented, Jun 8, 2020

Concurrent builds may be a problem and S3’s eventual consistency could also be problematic, but if Terraform is out of the question it seems like a potential workaround for now

Read more comments on GitHub >

github_iconTop Results From Across the Web

Removals by version - GitLab Docs
We won't delete container images previously published for these analyzers, so older versions of the CI/CD template will continue to work.
Read more >
Deployment and setting up a CICD pipeline with AWS Chalice
Part 2: Deployment and setting up a CICD pipeline with AWS Chalice¶ · Initial Setup · Create a SAM template · Deploy your...
Read more >
AWS Chalice - CI/CD - Deploy under the same gateway
The reason for the new API ids is because chalice when using the chalice deploy command, it creates a file in .chalice/deployed for...
Read more >
Continuous Deployment (CD) — AWS Chalice
Chalice can generate a CloudFormation template that will create a starter CD pipeline. By default it contains an AWS CodeCommit repo, an AWS...
Read more >
Creating a Serverless Blog with Chalice - Medium
Utilizing the awesome power of Serverless computing from Amazon Web Services (AWS) on-demand cloud computing platform, you will be able to ...
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