Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow settings shared credentials file path #360

Merged
merged 2 commits into from
Jul 15, 2019
Merged

Conversation

wata727
Copy link
Member

@wata727 wata727 commented Jul 14, 2019

Fixes #85

This PR allows passing a credentials file path as an option. There are two ways:

CLI flags

Added --aws-creds-file in CLI flags.

$ tflint --deep --aws-region us-east-1 --aws-profile default --aws-creds-file ~/.aws/creds

References to home directories are expanded automatically. Note that you need to specify the region and profile name. If not specified, the option is ignored. This issue is fixed by other pull requests.

Config file

Added shared_credentials_file attribute.

config {
  aws_credentials = {
    region                  = "us-east-1"
    profile                 = "default"
    shared_credentials_file = "~/.aws/creds"
  }
}

@wata727 wata727 force-pushed the shared_credentials_file branch 2 times, most recently from b772561 to f8f0116 Compare July 14, 2019 09:14
@wata727 wata727 merged commit 4f7a785 into master Jul 15, 2019
@wata727 wata727 deleted the shared_credentials_file branch July 15, 2019 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Allow setting shared credentials path
1 participant