https://github.com/streamdal/blog-terraform-demo
https://github.com/streamdal/blog-terraform-demo
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/streamdal/blog-terraform-demo
- Owner: streamdal
- License: apache-2.0
- Created: 2024-03-14T20:33:54.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-14T20:57:42.000Z (about 2 years ago)
- Last Synced: 2025-03-03T16:50:16.069Z (over 1 year ago)
- Language: Go
- Size: 3.44 MB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform blog post demo code
This repository contains the code for the blog post demoing the Streamdal terraform module: https://medium.com/streamdal/configuring-streamdal-with-terraform-d07e6cf9dfe3
## Usage
1. Ensure Terraform is installed
2. Ensure the Streamdal server is running locally :`curl -sSL https://sh.streamdal.com | bash`
3. cd `streamdal-config`
4. Run `terraform init && terraform apply`
5. Navigate to `http://localhost:8080` in your browser to see the Streamdal UI and that the audience and pipeline are configured
6. cd `../demo-app`
7. Run the demo app: `go run main.go`
8. The resulting output should contain the masked email in the payload:
```json
{
"customer": {
"email": "john******************",
"first_name": "John",
"last_name": "Doe"
}
}
```