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

Updated README.md #10

Merged
merged 3 commits into from
Jan 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,35 @@ Sends daily breakdowns of AWS costs to a Slack channel.

```
npm install -g serverless
npm install
```

1. Create an [incoming webhook](https://www.slack.com/apps/new/A0F7XDUAZ) that will post to the channel of your choice on your Slack workspace. Grab the URL for use in the next step.

1. Create the service on your local machine. cd to your directory and run this command. Replace path with the path name for the service and app name for the service.

```
serverless create \
--template-url="https://github.com/iandees/aws-billing-to-slack.git" \
--path="app-aws-cost" \
--name="app-aws-cost"
```

1. Install pipenv

```
pip install pipenv
```

1. Install serverless python requirements

```
serverless plugin install -n serverless-python-requirements
```

1. Deploy the system into your AWS account, replacing the webhook URL below with the one you generated above.

```
serverless deploy --slack_url="https://hooks.slack.com/services/xxx/yyy/zzzz"
serverless deploy --stage="prod" --slack_url="https://hooks.slack.com/services/xxx/yyy/zzzz"
```

You can also run it once to verify that it works:
Expand Down