https://github.com/stwalkerster/lambda-terraform-webhook
AWS Lambda function to receive Terraform Cloud webhook notifications, and forward them to RabbitMQ
https://github.com/stwalkerster/lambda-terraform-webhook
aws-lambda notifications rabbitmq terraform-cloud
Last synced: 4 months ago
JSON representation
AWS Lambda function to receive Terraform Cloud webhook notifications, and forward them to RabbitMQ
- Host: GitHub
- URL: https://github.com/stwalkerster/lambda-terraform-webhook
- Owner: stwalkerster
- License: mit
- Created: 2022-12-30T16:39:43.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-05T00:35:50.000Z (over 2 years ago)
- Last Synced: 2024-11-17T05:37:37.797Z (6 months ago)
- Topics: aws-lambda, notifications, rabbitmq, terraform-cloud
- Language: HCL
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lambda-terraform-webhook
This repository holds the code behind my Terraform and GitHub to RabbitMQ notification bridge.
This uses AWS Lambda to host a serverless function which acts as the webhook endpoint.
There's probably a *lot* that's hard-coded to my usecase here, so while you should feel free to re-use this, beware that
it may not work out-of-the-box.## Installation
Create `secrets.auto.tfvars` and inside define the variable `hmac`, which should be the shared
secret between TFE and this function.Modify the variables `notification_destination` to suit your requirements. This is used as the routing key in RabbitMQ
You probably want to do this in another `*.auto.tfvars` file.```shell
make
terraform init
terraform apply --auto-approve
```Go to SSM parameter store, and change the values of the parameters to suit your usecase.