Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/omegion/aws-uptime-lambda-function-with-terraform
AWS Uptime Monitoring Lambda Function with Terraform
https://github.com/omegion/aws-uptime-lambda-function-with-terraform
aws aws-lambda go golang slack terraform terraform-module
Last synced: about 2 months ago
JSON representation
AWS Uptime Monitoring Lambda Function with Terraform
- Host: GitHub
- URL: https://github.com/omegion/aws-uptime-lambda-function-with-terraform
- Owner: omegion
- Created: 2020-04-19T13:09:20.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:09:55.000Z (about 1 year ago)
- Last Synced: 2024-04-17T18:10:22.139Z (9 months ago)
- Topics: aws, aws-lambda, go, golang, slack, terraform, terraform-module
- Language: HCL
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## AWS Uptime Monitoring Lambda Function with Terraform
This terraform module helps you to monitor your sites. It will be trigger every 5 minutes to check your website.
### Setup
Go to lambda directory and run following command. It will build Go package and zip it.
```bash
make cleanup
make build
make package
```
Then, go to terraform directory, set following environments with your AWS creds and Slack webhook url.
```bash
export AWS_ACCESS_KEY_ID="key"
export AWS_SECRET_ACCESS_KEY="secret"
export AWS_DEFAULT_REGION="us-east-1"
export TF_VAR_slack_webhook_url="webhook-url"
```After setting the creds, run Terraform to deploy the lambda function
lambda directory.
```bash
terraform apply
```