Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saturninoabril/mm_test_server
https://github.com/saturninoabril/mm_test_server
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/saturninoabril/mm_test_server
- Owner: saturninoabril
- License: apache-2.0
- Created: 2020-12-05T09:03:46.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-23T07:35:12.000Z (over 2 years ago)
- Last Synced: 2023-03-06T00:18:15.521Z (over 1 year ago)
- Language: HCL
- Size: 289 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mm_test_server
A project that creates any number of test servers from a remote machine using Terraform and Webhook.### mm_test_server/state
1. Create `terraform.tfvars and set required environment variables.
2. Verify that you can create and destroy server by `terraform apply` and `terraform destroy`, respectively.
3. Note of the S3 bucket and DynamoDB table to be used as remote backend for `mm_test_server/server`### mm_test_server/server
1. Create `terraform.tfvars and set required environment variables.
2. Verify that you can create and destroy server by `terraform apply` and `terraform destroy`, respectively.### mm_test_server/webhook
1. Create `terraform.tfvars and set required environment variables.2. Initiate terraform
```
terraform apply --auto-approve
```3. Take note of the output public DNS and access the machine directly.
a. Set AWS profile, see https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html.
b. Edit `~/webhook-linux-amd64/hooks.json`, and change names and values indicated by `"change"`. This can be a basic token that permits execution when name and value have exact match. Keep the values strongly unique and secret.
Note: This can be done via Terraform directly but ..., just do it manually.4. Run the server by ``./webhook -hooks hooks.json``. It will be accessible via ``http://localhost:9000``.
5. To create server: ``POST https://[url]:9000/hooks/create?token=secretS&workspace=team``