Snyk Community


Discussion on: [Community Contributed] Create Pipeline with Terraform & Setup Container Image Scans with Snyk in AWS CodeBuild

brianverm profile image
🧑🏼‍💻 Brian Vermeer

Hi Lukonde.

Great article. I love the breakdown. Thanks for sharing!
A small remark on authenticating the CLI.
Although your way definitely works, the preferred way of authenticating is:

  • snyk auth (will open a browser and let you sign in)
  • snyk auth token sets the preferred token in your configuration Alternatively, you can also set an environment variable SNYK_TOKEN containing the token. This way, you do not need to run anything at all. This is super useful we automating CLI scanning in a CI pipeline, for instance.