DEV Community

Rahul Wagh
Rahul Wagh

Posted on • Originally published at jhooq.com

Terraform AWS Secrets handling

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 -

  1. Hard coding AWS Credentials(ACCESS_KEY, SECRET_KEY) inside terraform file (*Not recommended)
  2. Using /.aws/credentials file along with terraform’s shared_credentials_file settings
  3. Configure AWS Credentials as environment variables

Top comments (0)