Skip to content

Commit

Permalink
fix: let aws-sdk under snap find configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
james-hu committed Jul 14, 2023
1 parent 66290f5 commit 3187420
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ snapcrafts:
# The name of the app must be the same name as the binary built or the snapcraft name.
apig-swagger-ui:
command: "" # It seems empty means default
environment:
# Otherwise aws-sdk is not able to find those files
AWS_SDK_LOAD_CONFIG: 1
AWS_CONFIG_FILE: ~/.aws/config
AWS_SHARED_CREDENTIALS_FILE: ~/.aws/credentials
plugs:
- home
- network
Expand Down

0 comments on commit 3187420

Please sign in to comment.