Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[aws-bootstrap] plural destroy fails to destroy Terraform resources #535

Open
tusharm opened this issue Feb 27, 2023 · 4 comments
Open

[aws-bootstrap] plural destroy fails to destroy Terraform resources #535

tusharm opened this issue Feb 27, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@tusharm
Copy link

tusharm commented Feb 27, 2023

Summary

Running plural destroy on aws-bootstrap always fails with this Terraform error:

│ Error: Unsupported attribute
│
│   on aws-bootstrap/locals.tf line 6, in locals:
│    6:     worker_private_subnet_ids = var.create_cluster ? module.vpc.worker_private_subnets_ids : var.worker_private_subnet_ids
│     ├────────────────
│     │ module.vpc is object with 98 attributes
│
│ This object does not have an attribute named "worker_private_subnets_ids".

I get the same error if I manually try terraform destroy inside bootstrap/terraform directory in the workspace.

Just to get to the root cause, I set create_cluster to false and then it makes a little progress but fails again further along. Not sure but I suspect create_cluster set to true is causing issue related to resource ordering when destroying.

Reproduction

I can replicate it with these commands:

$> plural bundle install kafka aws-kafka
...
$> plural bundle install console console-aws
...
$> plural build
..
$> plural deploy
...
$> plural destroy

UI/UX Issue Screenshots

Additional Info about Your Environment

PLURAL CLI:
   version	0.6.8
   git commit	308cf3858b8d26dd5a7c93613bbbf2879d8372b8
   compiled at	2023-02-24T19:18:19Z
   os/arch	darwin/arm64

Message from the maintainers:

Impacted by this bug? Give it a 👍. We factor engagement into prioritization.

@tusharm tusharm added the bug Something isn't working label Feb 27, 2023
@michaeljguarino
Copy link
Member

Thanks for the report, we'll try to get this figured out soon. It's odd, because I'm pretty sure we have done some successful destroys recently

@davidspek
Copy link
Contributor

@tusharm Are you still running into this issue? I did 6 cycles of creating and destroying clusters and wasn't able to replicate it. So if you are still running into this I would love to setup a call so we can further debug this.

@tusharm
Copy link
Author

tusharm commented Mar 12, 2023

Thanks @davidspek, let me know how to schedule.

@LiamBrenner
Copy link

I've just had the same issue when trying to destroy, I noticed some references to a worker_private_subnets_ids variable, and other references to a worker_private_subnet_ids variable, is it possible the wrong variable name has been used somewhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants