Search code examples
amazon-web-servicesaws-lambdaversion-controlextract

Extract Entire AWS Setup into storable Files or Deployment Package(s)


Is there some way to 'dehydrate' or extract an entire AWS setup? I have a small application that uses several AWS components, and I'd like to put the project on hiatus so I don't get charged every month.

I wrote / constructed the app directly through the various services' sites, such as VPN, RDS, etc. Is there some way I can extract my setup into files so I can save these files in Version Control, and 'rehydrate' them back into AWS when I want to re-setup my app?

I tried extracting pieces from Lambda and Event Bridge, but it seems like I can't just 'replay' these files using the CLI to re-create my application.

Specifically, I am looking to extract all code, settings, connections, etc. for:

  • Lambda. Code, Env Variables, layers, scheduling thru Event Bridge
  • IAM. Users, roles, permissions
  • VPC. Subnets, Route tables, Internet gateways, Elastic IPs, NAT Gateways
  • Event Bridge. Cron settings, connections to Lambda functions.
  • RDS. MySQL instances. Would like to get all DDL. Data in tables is not required.

Thanks in advance!


Solution

  • You could use Former2. It will scan your account and allow you to generate CloudFormation, Terraform, or Troposphere templates. It uses a browser plugin, but there is also a CLI for it.