cloud-platform icon indicating copy to clipboard operation
cloud-platform copied to clipboard

Find a way to list all the aws resources created when creating a cluster

Open poornima-krishnasamy opened this issue 2 years ago • 3 comments

Background

When a test cluster is created, there are a number of aws resources created i.e. vpc, subnets, EIP, snapshots etc. Find a way to list all the resources that will be created as part of cluster creation

This will be useful to cross-check when deleting the cluster to see if all the aws resources are removed.

The goal is to not leave any leftovers in the aws account after the cluster is deleted.

This could be a big epic and involve several tasks: In the ephemeral account run the script to create the cluster

  • Using Tag editor to list the resources
  • Check if all resources are tags with the cluster name. This will be useful when to list all resources by tag
  • Delete the cluster
  • Either through sdk or from UI search for all resources listing the tag : cluster-name

If there are any left overs, check why it has not deleted i.e. is the destroy not successful, or include deleting the resources as part of destroy script

Definition of done

  • [ ] There are no left overs after cluster deletion
  • [ ] readme has been updated
  • [ ] user docs have been updated
  • [ ] another team member has reviewed
  • [ ] smoke tests are green

Reference

How to write good user stories

poornima-krishnasamy avatar Aug 16 '22 17:08 poornima-krishnasamy

Screenshot 2022-08-23 at 11.28.54.png

jasonBirchall avatar Aug 23 '22 10:08 jasonBirchall

Following a delete, all resources deleted, bar:

jasonBirchall avatar Aug 24 '22 17:08 jasonBirchall

8 snapshot volumes

jasonBirchall avatar Aug 24 '22 17:08 jasonBirchall