Terraform and AWS credentials handling? - https://jhooq.com/terraform-aws-credentials-handling/
If you are new to terraform or maybe you have been using the terraform for quite some time then might have felt the need to manage your AWS Credentials inside your terraform file.
In this session we will go through the different ways to set up your AWS Credentials so that you do not have to re-configure the AWS Credentials every time, also we will pay attention on what are the most secure ways to handle your AWS Credentials
Here are three different ways of handling AWS Credentials -
- Hard coding AWS Credentials(ACCESS_KEY, SECRET_KEY) inside terraform file (*Not recommended)
- Using /.aws/credentials file along with terraform’s shared_credentials_file settings
- Configure AWS Credentials as environment variables