https://github.com/sematext/terraform-examples
https://github.com/sematext/terraform-examples
terraform
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/sematext/terraform-examples
- Owner: sematext
- License: apache-2.0
- Created: 2020-01-04T15:38:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-08T06:06:28.000Z (about 5 years ago)
- Last Synced: 2025-01-10T00:18:16.812Z (over 1 year ago)
- Topics: terraform
- Homepage: https://sematext.com
- Size: 1.31 MB
- Stars: 2
- Watchers: 18
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Sematext Cloud - Terraform Examples
Getting started with Terraform and the Sematext Cloud Terraform Provider
Examples of using Terraform scripting to automate Sematext Cloud monitoring, logging and metric integration alongside your solution.
Sematext is now a Terraform Verified Partner! You can access the Sematext Cloud Provider in the
Terraform Registry
#### Sematext Monitoring App Resources supported by this Provider:
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_solr)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_solrcloud)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_elasticsearch)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_nodejs)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_spark)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_kafka)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_docker)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_cassandra)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_hbase)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_hadoopmrv1)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_mongodb)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_storm)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_awsec2)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_awsebs)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_awselb)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_tomcat)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_apache)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_nginxplus)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_redis)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_mysql)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_zookeeper)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_haproxy)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_jvm)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_akka)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_postgresql)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_mobilelogs)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_rabbitmq)
[](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_clickhouse)


* [Terraform v0.13+](https://www.terraform.io/downloads.html)
* [Sematext Cloud Account](https://apps.sematext.com/ui/account)
* [Sematext Cloud API Access Token](https://apps.sematext.com/ui/account/api)
* [Sematext Cloud Plan ID](https://github.com/sematext/terraform-provider-sematext/blob/master/docs/guides/plans.md)
These Terraform examples talk to Sematext Cloud and require a Sematext Cloud Access token to function.
You can find this by logging into your [Sematext Cloud Account](https://apps.sematext.com/ui/account/api)
In your environment you will have the following environment vars:
```sh
SEMATEXT_API_KEY=""
SEMATEXT_REGION=""
```
Additionally, if you will be deploying a Sematext Cloud monitoring app that will talk to AWS you will also need:
```sh
AWS_ACCESS_KEY_ID=""
AWS_SECRET_ACCESS_KEY= ""
AWS_REGION = ""
```
In the simplest case a file will contain the following Terraform hcl snippet:
```hcl
terraform {
required_providers {
sematext = {
source = "sematext/sematext"
version = "0.1.2"
}
}
}
provider "sematext" {
# provider configuration
}
resource "sematext_monitor_mongodb" "monitor_mongodb" {
name = "MongoDB Monitor"
billing_plan_id = 125
}
```
```bash
$ terraform init
$ terraform plan
$ terraform apply
```
*Note this particular example is a simple demo as a starting point, refer to more realistic examples listed in the [examples directory](./examples).*
* Sematext Manual Integrations Guide :https://sematext.com/docs/guide/integrations-guide/
* Terraform Website: https://www.terraform.io
* Mailing list: [Google Groups](http://groups.google.com/group/terraform-tool)
* [](https://gitter.im/hashicorp-terraform/Lobby)