You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When having multiple setups of basti in different regions such as eu-central-1 and us-west-2 basti cleanup doesn't respect the --aws-region flag when it comes to IAM resources.
Steps to Reproduce
Run basti init --aws-region eu-central-1
Run basti init --aws-region us-west-2
Verify basti is working in both regions & that an IAM role / instance profile exists for each region
Run basti cleanup --aws-region us-west-2
Expected Behavior
After the command in step 4 all basti resources wich were deployed in step 2 should have been removed and all basti resources which were deployed in step 1 should stil be existing.
Current Behavior
Unfortunately basti cleans ALL IAM resources including the role / instance profile that belongs to the eu-central-1 setup wich essentially renders that setup unusable as a connection to the instance via Session Manger is no longer possible.
Possible Solution (Optional)
Somehow make basti aware of the region of the setup which IAM resource belongs to so that basti cleanup does not remove resources which it shouldn't remove.
Apart from that thanks for proving such an elegant solution! :)
The text was updated successfully, but these errors were encountered:
Bug Description
When having multiple setups of basti in different regions such as eu-central-1 and us-west-2 basti cleanup doesn't respect the --aws-region flag when it comes to IAM resources.
Steps to Reproduce
basti init --aws-region eu-central-1
basti init --aws-region us-west-2
basti cleanup --aws-region us-west-2
Expected Behavior
After the command in step 4 all basti resources wich were deployed in step 2 should have been removed and all basti resources which were deployed in step 1 should stil be existing.
Current Behavior
Unfortunately basti cleans ALL IAM resources including the role / instance profile that belongs to the eu-central-1 setup wich essentially renders that setup unusable as a connection to the instance via Session Manger is no longer possible.
Possible Solution (Optional)
Somehow make basti aware of the region of the setup which IAM resource belongs to so that basti cleanup does not remove resources which it shouldn't remove.
Apart from that thanks for proving such an elegant solution! :)
The text was updated successfully, but these errors were encountered: