Closed jbrown-xentity closed 3 years ago
We are now fairly certain all the SES records are getting cleaned up properly; unfortunately something is causing DKIM to not be created properly (and even though the instances are destroyed, SES still sends an email about it). The above PR should fix it, but the Terraform doesn't want to build. @mogul will investigate along with the Terraform 0.13 upgrade...
Actually our latest test somehow caused DKIM to succeed (see email), so something must be working...
We're getting the following emails (11 as of 10/29). These are related to test instances in SES that did not get cleaned up. We need to figure out how to remove them, and document for future use cases.
How to reproduce
Expected behavior
All test cases are destroyed correctly
Actual behavior
Test cases persist on the AWS account
Sketch
This is the code for our side of that... As noted, AWS is supposed to do a bunch of this on their own now. go look for SES instances in the us-west-2 region in the AWS console, and see if you can tie them back to where they came from based on creation time, tags, etc. And nuke the ones that don't seem to have corresponding records. And if it's hard to figure out where they come from, then the action item is to make sure the tags get applied by the broker.... the CSB passes them in, but we may need to add those tags on the resources we create. For example, in the EKS brokerpak, here's how the tags are applied to the clusters that get created. Here's the bit about how to tag AWS resources in Terraform generally... I suspect you can tag SES identities and Route53 zones, but not individual records. For EKS we added this document, we should probably do the same thing here.