https://github.com/amancevice/terraform-aws-slackbot-group-sms
Send group SMS messages from Slack slash commands
https://github.com/amancevice/terraform-aws-slackbot-group-sms
Last synced: 28 days ago
JSON representation
Send group SMS messages from Slack slash commands
- Host: GitHub
- URL: https://github.com/amancevice/terraform-aws-slackbot-group-sms
- Owner: amancevice
- License: mit
- Created: 2018-06-25T22:53:07.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-14T13:19:36.000Z (almost 7 years ago)
- Last Synced: 2025-02-10T18:11:34.687Z (3 months ago)
- Language: HCL
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Slack SMS
Send group SMS messages from Slack slash commands.
## Quickstart
Create a `main.tf` file with the following contents:
```terraform
# main.tfmodule "group_sms" {
source = "amancevice/group-sms/aws"
topic_display_name = "MyOrg"
topic_name = "mysms"subscriptions = [
"+19876543210",
"+12345678910",
"+15555555555",
"..."
]
}module "slackbot" {
source = "amancevice/slackbot/aws"
slack_verification_token = """
callback_ids = ["mysms"]
}module "slack_sms" {
source = "amancevice/slack-sms/aws"
api_execution_arn = "${module.slackbot.api_execution_arn}"
api_invoke_url = "${module.slackbot.api_invoke_url}"
api_name = "${module.slackbot.api_name}"
api_parent_id = "${module.slackbot.slash_commands_resource_id}"
kms_key_id = "${module.slackbot.kms_key_id}"
target_topic_arn = "${module.group_sms.topic_arn}"
slack_verification_token = ""
slack_web_api_token = ""
slash_command = "mysms"
}
```In a terminal window, initialize the state:
```bash
terraform init
```Then review & apply the changes
```bash
terraform apply
```