Current setup
Self-managed fleet deployment created using
Fleet's Terraform example for AWS on github into a new VPC (also defined in the same Terraform example)
Current situation and desired changes
We're implementing a number of networking changes to support various VPC-to-VPC and VPN-to-VPC connectivity across VPCs and accounts in our AWS Organization using services like AWS Transit Gateway (TGW).
Part of these changes includes re-deploying certain VPCs to CIDRs that confirm with our new internal IP address management strategy that avoid problems related to overlapping CIDRs between VPCs and simplifying route table rules by ensuring all VPCs in a given AWS region are within the same parent CIDR block (e.g. us-east-1 VPCs all within 10.0/16 to 10.31.0.0/16).
This calls for "moving" fleet to a new VPC that's in the same account and region as our current deploy.
Ask for guidance
Wondering how I should go about doing this and any caveats or gotchas to be aware of.
My
assumption is that maybe I just need to do something along the lines of:
1. take a manual backup/snapshot of the RDS database of the existing fleet deployment
2. modify the VPC module in the fleet terraform to use the new desired CIDR
3. modify the RDS database in the fleet terraform to be created from the snapshot created earlier
4. modify the existing terraform to prevent destruction of any KMS keys or secrets created from the initial deployment and ensure they get re-used for the new deployment