v1.536.0
·
16 commits
to refs/heads/main
since this release
fix: adjust functions to allow for a clean deletion @RoseSecurity (#17)
## what- When the following command is ran on the component, the deletion fails:
# Destroy resources
atmos terraform destroy bastion -s <stack>
Error:
╷
│ Error: Invalid index
│
│ on main.tf line 132, in module "bastion_autoscale_group":
│ 132: user_data_base64 = join("", data.cloudinit_config.config[0][*].rendered)
│ ├────────────────
│ │ data.cloudinit_config.config is empty tuple
│
│ The given key does not identify an element in this collection value: the collection has no elements.
╵
Releasing state lock. This may take a few moments...
why
data.cloudinit_config.config
is a list with count = 0 or 1- We're accessing the first (and only) element when it exists
- We want a safe fallback when it’s disabled
- Clean up outputs when disabled
Summary by CodeRabbit
- Bug Fixes
- Improved error handling during initialization to gracefully handle missing configuration details.
- Updated output derivation for profile information, ensuring more consistent and reliable data presentation.