Ask HN: Tool to export AWS configuration entirely?

  • I'd be interested in this too if you find something.

    I wouldn't think it would be overly difficult to write a tool that looped through the all the API endpoints to construct the full state.

    Say what you want about AWS, but one great thing about it is how accessible almost every piece of account state is via API.

    I'd imagine terraform has some logic like this somewhere in its guts?

  • If you build the infra with Terraform (one of my favorite tools of all time) you can do this with a 'terraform show'. The code itself will also represent a description of the infrastructure.

    Unfortunately this only works for things that are built with Terraform, not already created infrastructure to my knowledge.

  • Check out https://github.com/cloudgraphdev/cli, it supports the majority of AWS services and creates a type-safe GraphQL based representation of your data for easy access

  • I have always wanted this also. Connect to AWS and export the entire configuration details to terraform, or to another open format.

  • After you've manage to back it up, you might have still trouble finding and terminating everything.

    While I don't have an answer to your question, you might find this tool handy for cleanups - https://github.com/rebuy-de/aws-nuke

  • Have you tried Former2? I think it does what you’re asking for.

    https://former2.com/

  • I also find Terraformer.

    It can dump the configuration to text files and later could be consumed by terraform.

  • [dead]