Skip to content

Commit

Permalink
Update aws-costs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
atenxyz authored Apr 12, 2024
1 parent 852622f commit 46615ab
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/aws-costs.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: Sends Daily AWS Costs to Slack
on:
# Allow manual Run
workflow_dispatch:
# Run at 7:00 UTC every day
schedule:
- cron: "0 7 * * *"
jobs:
aws_costs:
runs-on: ubuntu-latest
steps:
- name: Get Costs
env:
AWS_KEY: ${{ secrets.COST_AWS_ACCESS_KEY }}
AWS_SECRET: ${{ secrets.COST_AWS_SECRET_KEY }}
AWS_REGION: ${{ secrets.COST_AWS_REGION }}
SLACK_CHANNEL: ${{ secrets.SLACK_COST_CHANNEL }}
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
run: |
npm install -g aws-cost-cli
aws-cost -k $AWS_KEY -s $AWS_SECRET -r $AWS_REGION -S $SLACK_TOKEN -C $SLACK_CHANNEL
# name: Sends Daily AWS Costs to Slack
# on:
# # Allow manual Run
# workflow_dispatch:
# # Run at 7:00 UTC every day
# schedule:
# - cron: "0 7 * * *"
# jobs:
# aws_costs:
# runs-on: ubuntu-latest
# steps:
# - name: Get Costs
# env:
# AWS_KEY: ${{ secrets.COST_AWS_ACCESS_KEY }}
# AWS_SECRET: ${{ secrets.COST_AWS_SECRET_KEY }}
# AWS_REGION: ${{ secrets.COST_AWS_REGION }}
# SLACK_CHANNEL: ${{ secrets.SLACK_COST_CHANNEL }}
# SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
# run: |
# npm install -g aws-cost-cli
# aws-cost -k $AWS_KEY -s $AWS_SECRET -r $AWS_REGION -S $SLACK_TOKEN -C $SLACK_CHANNEL

0 comments on commit 46615ab

Please sign in to comment.