Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
Create terraforming_all
Browse files Browse the repository at this point in the history
Script for exporting ALL existing AWS resources to Terraform
  • Loading branch information
mklarsen committed Jan 15, 2020
1 parent 518879d commit 0446800
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions script/terraforming_all
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
###################################################
# Script by Martin Kraus Larsen <martin@mpsoft.dk>

# Build array of Terraforming-commands
arrCmds=( asg dbpg dbsg dbsn ec2 ecc ecsn elb iamg iamgm iamgp iamip iamp iamr iamrp iamu iamup nacl r53r r53z rds rt rta s3 sg sn vpc )

# Run it
for i in "${arrCmds[@]}"
do
echo "Terraforming the $i"
terraforming $i > $i.tf
done

0 comments on commit 0446800

Please sign in to comment.