Created
March 30, 2018 19:41
-
-
Save budgester/2106ecad0e73117d42f8dcf793c4f4b5 to your computer and use it in GitHub Desktop.
Inspec Docker with credentials file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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