-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request #91
Comments
ok - will look at that as an option |
#!/bin/bash Create output fileoutput_file="combined.tf" Clear output file if it exists
Add header commentecho "# Combined Terraform configuration from import folder" > "$output_file" Combine all .tf filesfor file in *.tf; do echo "Combined all .tf files into $output_file" #!/bin/bash Temporary file for processingtmp_file="combined.tmp" Fix empty excludes lists and remove conflicting name_prefixsed -e 's/excludes = []/excludes = ["none"]/' mv "$tmp_file" combined.tf echo "Fixed Terraform configuration issues" here are my scripts to bring 1300 imported resources to valid state… |
which resources have excludes=[] ? (i can code that out for you) and which resources are giving you name_prefix errors ? |
committed changes so there is now a "-s" (singlefile) flag you only get main.tf - not all the individual files (They are still tucked away in the imported directory - so merging will still work) ./aws2tf.py -t efs -m -s |
Currently I have scripts that will append all the .tf files into a single tf file, is this something we can flag? - so they aren't separated at the end... just an idea
The text was updated successfully, but these errors were encountered: