Create resource using terraform


Can we used aws role ARN to create a resource in AWS instead of access key and secret key in provider

Highly recommended that you do that!

You get a session with MFA and then Terraform can do assume-role for you:

This tool can help you: