mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-13 20:54:16 +02:00
Add github action
This commit is contained in:
19
.github/workflows/aws-costs.yml
vendored
Normal file
19
.github/workflows/aws-costs.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
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: ${{ COST_AWS_ACCESS_KEY }}
|
||||||
|
AWS_SECRET: ${{ COST_AWS_SECRET_KEY }}
|
||||||
|
AWS_REGION: ${{ COST_AWS_REGION }}
|
||||||
|
run: |
|
||||||
|
npm install -g aws-cost-cli
|
||||||
|
aws-cost -k $AWS_KEY -s $AWS_SECRET -r $AWS_REGION
|
Reference in New Issue
Block a user