Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meltwater/terraform-provider-meltwater
A Terraform provider for Meltwater based on the persistent/infrastructure parts of the Meltwater API. Such as setting up webhooks and recurring exports.
https://github.com/meltwater/terraform-provider-meltwater
clientdata-yes customer-support hackathon lifecycle-active purpose-tools terraform usage-application
Last synced: about 2 months ago
JSON representation
A Terraform provider for Meltwater based on the persistent/infrastructure parts of the Meltwater API. Such as setting up webhooks and recurring exports.
- Host: GitHub
- URL: https://github.com/meltwater/terraform-provider-meltwater
- Owner: meltwater
- License: mit
- Created: 2021-11-18T09:39:18.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-29T15:42:50.000Z (over 1 year ago)
- Last Synced: 2024-06-21T13:04:01.937Z (7 months ago)
- Topics: clientdata-yes, customer-support, hackathon, lifecycle-active, purpose-tools, terraform, usage-application
- Language: Go
- Homepage:
- Size: 392 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Meltwater Terraform Provider
A Terraform provider for Meltwater based on the persistent/infrastructure parts of the Meltwater API. Such as setting up webhooks and recurring exports.[Terraform registry documentation](https://registry.terraform.io/providers/meltwater/meltwater)
## Requirements
* [Terraform](https://www.terraform.io/downloads.html) 0.11.x to 0.13.x
* [Go](https://golang.org/doc/install) 1.14 to 1.17 (to build the provider plugin)## Build
Clone repository anywhere:
```sh
$ git clone https://github.com/meltwater/terraform-provider-meltwater.git
```Enter the provider directory and build the provider
```sh
$ cd terraform-provider-meltwater
$ make compile
```Or alternatively, to install it as a plugin, run
```sh
$ cd terraform-provider-meltwater
$ make install
```## Using the provider
If you're building the provider, follow the instructions to [install it as a plugin.](https://www.terraform.io/docs/plugins/basics.html#installing-a-plugin) After placing it into your plugins directory, run `terraform init` to initialize it.
### Basic Usage
Set an environment variable, `TF_VAR_meltwater_api_key` to store your Meltwater API key. This is the recommended way to not commit an access token into your version control system.
export TF_VAR_meltwater_api_key=
Your token is now accessible in your Terraform configuration as
`var.meltwater_api_key`, and can be used to configure the provider.The example below demonstrates the following operations:
* Create a search
* Keyword search
* Combined search
* Boolean search
* Create a recurring export```hcl
terraform {
required_providers {
meltwater = {
source = "meltwater/meltwater"
version = ""
}
}
}variable "meltwater_api_key" {
type = string
}provider "meltwater" {
# NOTE: This is populated from the `TF_VAR_meltwater_api_key` environment variable.
api_key = var.meltwater_api_key
}resource "meltwater_search" "my_awesome_search" {
type = "social"
category = "explore"
name = "Golang - terraform"
query {// One of keyword, combined or boolean
keyword {
case_sensitivity = "yes"
all_keywords = ["golang"]
any_keywords = []
not_keywords = ["foobar"]
}combined {
all_searches = [16058498]
not_searches = [7912335]
}boolean {
case_sensitivity = "hybrid"
boolean = "(SourceName: /r/ProgrammingHumour OR SourceName: /r/Golang) AND metaData.discussionType:\"og\" AND language:\"fr\""
}
}
}resource "meltwater_recurring_export" "my_awesome_recurring_export" {
search_id = meltwater_search.my_awesome_search.id
timezone = "Europe/London"
window_time_unit = "week"
window_time = "00:00:00"
window_size = 1
}
```