Skip to content

sasamuku/slack_notice_aws_support

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack Notice AWS Support

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.

slack_sample

Usage

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.

AWS Credentials

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.

Imcomming webhooks

Activate Incoming Webhooks ant get the url similar to the following:

http://hooks.slack.com/services/...

License Summary

This code is made available under the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published