Skip to content

Instantly share code, notes, and snippets.

@budgester
Created March 30, 2018 19:41
Show Gist options
  • Save budgester/2106ecad0e73117d42f8dcf793c4f4b5 to your computer and use it in GitHub Desktop.
Save budgester/2106ecad0e73117d42f8dcf793c4f4b5 to your computer and use it in GitHub Desktop.
Inspec Docker with credentials file
docker run -it \
-e AWS_ACCESS_KEY_ID=$(aws --profile default configure get aws_access_key_id) \
-e AWS_SECRET_ACCESS_KEY=$(aws --profile default configure get aws_secret_access_key) \
-e AWS_REGION='eu-west-1' \
--rm \
-v $(pwd):/share \
chef/inspec exec aws-dev -t aws:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment