Skip to content

Files

Latest commit

 

History

History
27 lines (18 loc) · 523 Bytes

aws-misc-no-exposing-plaintext-credentials.md

File metadata and controls

27 lines (18 loc) · 523 Bytes

Pattern: Use of plain-text AWS credentials

Issue: -

Description

The AWS provider block should not contain hard-coded credentials. These can be passed in securely as runtime using environment variables.

Resolution: Don't include access credentials in plain-text.

Examples

Example of incorrect code:

provider "aws" {
  access_key = "AKIAABCD12ABCDEF1ABC"
  secret_key = "s8d7ghas9dghd9ophgs9"
}

Example of correct code:

provider "aws" {
}