Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.63 KB

README.md

File metadata and controls

47 lines (33 loc) · 1.63 KB

Slack Speaks German

AWS Lambda which notifies Slack with a German word, its English translation, and some examples.

Image Image

Prerequisites

  1. Node.js (version 18+)
  2. AWS cli (version 1.18+) in order to deploy

Usage

# Run the tests
make test

# Send a word to a Slack from local (test purposes)
WEBHOOK=https://hooks.slack.com/services/AAAAA/BBBBBB/CCCCCCCCCC make run

Deploy to AWS Lambda

AWS Cloud Formation is used to deploy the AWS Lambda.

The code will be published in a S3 bucket, also - before trying to deploy - make sure you have a S3 bucket available (see official documentation to create a bucket).

The following command assumes that aws cli is authenticated and has all the required permissions to create the required resources.

    BUCKET_NAME="NameOfTheBucket" \
    BUCKET_KEY="NameOfTheFileInTheBucket" \
    WEBHOOK="SlackWebHookURL" \
    make deploy

Other parameters are available :

Parameter Default Description
SCHEDULE_STATE DISABLED enables or disables the schedule
SCHEDULE_EXPRESSION cron(0 6 ? * MON-FRI *) expression of the schedule (UTC timezone)
ROLE_PERMISSIONS_BOUNDARY none if needed, specifies a permission boundary to the role
RESOURCES_PATH / defines a path to the role and the policy
TAG_TEAM none value of the tag Team applied to the AWS resources
TAG_SYSTEM_ID none value of the tag SystemID applied to the resources