Merge pull request #27 from cloudskiff/update_run_usage

Updated documentation usage for aws creds
main
Elie 2020-12-16 16:44:10 +01:00 committed by GitHub
commit 18ee91eb83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -100,6 +100,11 @@ $ driftctl scan
# Same as # Same as
$ driftctl scan --from tfstate://terraform.tfstate $ driftctl scan --from tfstate://terraform.tfstate
# To specify AWS credentials
$ AWS_ACCESS_KEY_ID=XXX AWS_SECRET_ACCESS_KEY=XXX driftctl scan
# or using a profile
$ AWS_PROFILE=profile_name driftctl scan
# With state stored on a s3 backend # With state stored on a s3 backend
$ driftctl scan --from tfstate+s3://my-bucket/path/to/state.tfstate $ driftctl scan --from tfstate+s3://my-bucket/path/to/state.tfstate
``` ```