t04glovern / slackbot-wordle

GNU General Public License v3.0
2 stars 0 forks source link

Slackbot Wordle

Slackbot Example

Usage

Manual Deployment

# Install sam
pip install aws-sam-cli
## or
brew tap aws/tap && brew install aws-sam-cli

# Only needs to be run once (if a samconfig.toml file is not present in samconfig.toml)
sam deploy --guided

# Run each time
sam build
sam deploy

Follow the instructions in SLACK.md for details on how to install the bot in your workspace.

Local Testing

DynamoDB

# Start DynamoDB locally (must be run in devcontainer)
java -Djava.library.path=/opt/dynamodb_local/DynamoDBLocal_lib -jar /opt/dynamodb_local/DynamoDBLocal.jar -sharedDb

In a new terminal tab, run your tests

GitHub Actions

Requires the OIDC provider and repository specific template to be deployed into an AWS account allowing specific permissions needed.

Then make sure that the following Secrets are setup for the repo.

OIDC_ROLE_AWS_REGION
OIDC_ROLE_AWS_ROLE_TO_ASSUME

Architecture

Architecture

TODO

Attribution