3 thoughts on “Terraform AWS Multi-Account Setup

  1. hi
    i liked this idea and came up with an improvement.
    each directory can have its own separate and independent TF config and you can use find in the makefile to just run TF there …
    you can also pass the TF command as argument – which simplifies the make file even further
    its a lot simpler and lets you run TF on a few accounts at once if needed

    the makefile looks something like this (
    tf-dev:
    find ./ -type d -regex “dev” -exec bash -c “cd {} ; echo “start” ; pwd ; terraform $(tf) ;echo “end”; ” {} \;

    to run it you use –
    make tf-dev tf=”apply”

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.