Skip to content

on FAST, Terraform destroy fails because of outputs #1092

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

Closed
tamasszebeni opened this issue Jan 12, 2023 · 5 comments · Fixed by #1099
Closed

on FAST, Terraform destroy fails because of outputs #1092

tamasszebeni opened this issue Jan 12, 2023 · 5 comments · Fixed by #1099

Comments

@tamasszebeni
Copy link

For disaster recovery purposes we are testing terraform destroy and recreate the Landing Zone from scratch using FAST. One issue we found that is with output related tf files, they rely on such attributes which don't exist when destroy called so destroy fails unless we delete the related files and apply. Can you mitigate that so we as consumers don't need to apply workaround please?

Than you in advance

@ludoo
Copy link
Collaborator

ludoo commented Jan 12, 2023

Can you paste actual errors here?

@tamasszebeni
Copy link
Author

Sorry for delay, I'll do it soon.

@tamasszebeni
Copy link
Author

tamasszebeni commented Jan 18, 2023

Just run into it again, I performed an installment of FAST and did a destroy in appropriate order, when I was at resman stage I got the following:

Error: Unsupported attribute
│ 
│   on outputs.tf line 79, in locals:
│   79:       networking         = module.branch-network-folder.id
│     ├────────────────
│     │ module.branch-network-folder is object with 3 attributes
│ 
│ This object does not have an attribute named "id".
╵
╷
│ Error: Unsupported attribute
│ 
│   on outputs.tf line 80, in locals:
│   80:       networking-dev     = module.branch-network-dev-folder.id
│     ├────────────────
│     │ module.branch-network-dev-folder is object with 3 attributes
│ 
│ This object does not have an attribute named "id".
╵
╷
│ Error: Unsupported attribute
│ 
│   on outputs.tf line 81, in locals:
│   81:       networking-prod    = module.branch-network-prod-folder.id
│     ├────────────────
│     │ module.branch-network-prod-folder is object with 3 attributes
│ 
│ This object does not have an attribute named "id".
╵
╷
│ Error: Unsupported attribute
│ 
│   on outputs.tf line 83, in locals:
│   83:       security           = module.branch-security-folder.id
│     ├────────────────
│     │ module.branch-security-folder is object with 3 attributes
│ 
│ This object does not have an attribute named "id".

@ludoo
Copy link
Collaborator

ludoo commented Jan 19, 2023

The PR above should fix this, thanks for flagging the issue!

@tamasszebeni
Copy link
Author

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants