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.

claudia destroy ignores --profile

See original GitHub issue
  • Expected behaviour:

I would assume that claudia destroy --profile private will cleanup all changes introduced by Claudia. This in my case includes removing Lambda function, all installed notification handlers, role and policies.

  • What actually happens:

Unfortunately it’s failing, because the --profile part seems to be ignored on level and default profile is used. Which leads to situation where Lambda is properly removed, but roles and policies remain intact. I believe that there is also no code for notification handler/s removal.

AWS_PROFILE=private claudia destroy seems to be temporary workaround for that issue.

  • Link to a minimal, executable project that demonstrates the problem:

Any project where different AWS profile than default is in use. I’m trying to use Claudia here:

  • Steps to install the project:

Clone that branch and replace private profile (in the package.json) with one that should be used. Be sure that default profile is invalid or to restrictive to allow Claudia to work properly.

Then just run npm run create.

  • Steps to reproduce the problem:

npm destroy

Issue Analytics

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

github_iconTop GitHub Comments

gojkocommented, Feb 14, 2017

the most likely cause is this line where IAM is initialised during module load instead of when the function is called. I should be able to patch and retest this soon.

gojkocommented, Feb 18, 2017

this is now on NPM as 2.8.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

claudiajs/claudia - Gitter
Hello there, I've tried my best to follow the different tutorials to create a web API, but when I try to ping my...
Read more >
Why Claudia is Despicable: A Tirade : r/AlchemyStarsEN
If Amemori doesn't work, drop her from the team and use someone else. You seem to also ignore Snipers entirely which would have...
Read more >
Why didn't Claudia Tiedemann destroy the knot herself in Dark ...
Why didn't Claudia Tiedemann destroy the knot herself in Dark season 3?
Read more >
Claudia Sahm on Twitter: "yes, I will read his profile. after Fed happy ...
yes, I will read his profile. after Fed happy hour tonight. NYT profiles of elite economists are ALWAYS hilarious. I have a sense...
Read more >
Psychology (Stress Reactions) Flashcards - Quizlet
Claudia has just received devastating news about her semi rig. Things seem very bleak because a fire in her neighborhood spread to her...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found