Notify slack of AWS support case with subject, status, submittedby, timecreated and url. It requires setting up aws-actions/configure-aws-credentials and activating Imcomming Webhooks.
Configure aws credentials before using this action.
on:
schedule:
- cron: '0 1 * * 1-5'
permissions:
id-token: write
contents: write
jobs:
notify-slack-aws-support:
runs-on: ubuntu-latest
steps:
- name: Git clone the repository
uses: actions/checkout@v1
- name: Configure aws credentials
uses: aws-actions/configure-aws-credentials@master
with:
role-to-assume: arn:aws:iam::123456789100:role/my-github-actions-role
aws-region: ap-northeast-1
- name: Notify slack of aws support
uses: sasamuku/slack_notice_aws_support@main
with:
include_resolved_cases: 'false'
language: 'ja'
webhook_url: 'http://hooks.slack.com/services/...'
See action.yml for the full documentation for this action's inputs and outputs.
The credentials used in GitHub Actions workflows must have permissions to DescribeCases.
- Effect: 'Allow'
Action:
- 'support:DescribeCases'
Resource: '*'
See Access permissions for AWS Support for more details.
Activate Incoming Webhooks ant get the url similar to the following:
http://hooks.slack.com/services/...
This code is made available under the MIT license.