Skip to content

Commit

Permalink
Merge pull request iandees#16 from Alex-ley/master
Browse files Browse the repository at this point in the history
Fix issues iandees#5 and iandees#11
  • Loading branch information
iandees authored Sep 11, 2021
2 parents e5a08e6 + 2bc25c9 commit bc88ed8
Show file tree
Hide file tree
Showing 6 changed files with 1,982 additions and 16 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,24 @@ If you have AWS credits on your account and want to see them taken into account
--credits_remaining_date="mm/dd/yyyy" \
--credits_remaining="xxx.xx"
```
## Other Useful CLI Arguments Related to your AWS account
With none of the folling arguments passed (--aws_account, --aws_profile, --aws_region), sensible defaults are attempted to be retrieved. For example, boto3 is used to try and determine your AWS account alias if it exists, and if not your AWS account ID. Additionally, for your AWS profile the environment variable AWS_PROFILE is read and used if present, otherwise fallback to 'default'. Finally, for your AWS region the environment variables AWS_REGION, then AWS_DEFAULT_REGION are read and used if present, otherwise fallback to 'us-east-1' (N. Virginia). However, if you supply one of these arguments when executing the `deploy` or `invoke` command, then these values are taken and no defaults are attempted to be retrieved:
```
serverless deploy \
--slack_url="https://hooks.slack.com/services/xxx/yyy/zzzz" \
--aws_account="my custom account name" \
--aws_profile="default" \
--aws_region="eu-west-1"
```
## Authors
- [Alex Ley](https://github.com/Alex-ley)
- [Enrico Stahn](https://github.com/estahn)
- [Ian Dees](https://github.com/iandees)
- [Regis Wilson](https://github.com/rwilson-release)
- [Rui Pinho](https://github.com/ruiseek)
- [Tamas Flamich](https://github.com/tamasflamich)
Loading

0 comments on commit bc88ed8

Please sign in to comment.