I am trying to setup GitHub Actions for execute a terraform template.
My confusion is - how do I provide *.tfvars file which has aws credentials. (I can’t check-in these files).
What’s the best practice to share the variable’s values expected by terraform commands like plan or apply where they need aws_access_key and aws_secret_key.
I actually just setup my project today to do just that. I ended up having to slightly modify my main.tf but below is my current setup. I know it’s not using the shared creds file but hopefully this will help you and your project. main.tf