This is a script to automate the on-boarding of new VPC’s for customers migrating from onprem to the cloud. I will be demonstrating the overall function of the script, but the full code can be found at my GitHub.
We start by launching our script and then filling in the following field:
Cloud Environment – Are you using Azure, AWS, or GCP?
Region – us-east-1, us-east-2, us-west-1, etc etc
Application – This is dependent upon the customer who is migrating.
Application Instance – Are you deploying to prod, qa, dev?
Subnet – What is your IPv4 or IPv6 block for this VPC?
Peer ID – IPv4 or IPv6 of peer

Once you enter this information a prompt will ask you if this is correct, type “yes”.
For training purposes this will not deploy the related resources in our Terraform module, but will simply create the folder and assign in it a unique identifier. In a production environment Terraform would read the module and then deploy to your cloud platform of choice. However, we will only view the folder associated with our directory where we maintain our modules.

If we go into the folder we can see the following resources have been created.

These resources would be deployed via Terraform to AWS, thus streamlining the customer migration experience.
I hope this was helpful!