Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nibalizer/terraform-ibmcloud-influxdb
Terraform for spinning up influxdb on ibmcloud
https://github.com/nibalizer/terraform-ibmcloud-influxdb
Last synced: about 1 month ago
JSON representation
Terraform for spinning up influxdb on ibmcloud
- Host: GitHub
- URL: https://github.com/nibalizer/terraform-ibmcloud-influxdb
- Owner: nibalizer
- License: mit
- Created: 2020-12-02T23:53:05.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-03T00:14:52.000Z (about 4 years ago)
- Last Synced: 2024-10-26T20:09:59.779Z (2 months ago)
- Language: HCL
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform IBM Cloud InfluxDB
This is terraform files for setting up influxdb on the ibmcloud vpc gen 2 virtual infrastructure.
This repo has two goals:
1) Usefully spin up infrastructure for influxdb (actually installing influx is left to ansible modules)
2) Provide a more complete example of a real world use of terraform for ibmcloud (gen2) and a pattern for translating terraform scripts designed for aws into ibmcloud.
This was heavily inspired by the [aws terraform for influxdb](https://github.com/influxdata/terraform-aws-influxdb).
## Usage
Set up terraform (pulls ibmcloud provider)
```
terraform init
```Set IBM Cloud API Key env vars:
```
# You only need this one
export TF_VAR_ibmcloud_api_key="e7b0c6a8-f1f1-4aa4-b666-bb82b136719f"
# Set these to empty strings, they are not used since this is all gen2
export TF_VAR_iaas_classic_username=""
export TF_VAR_iaas_classic_api_key=""
```Setup ssh key for ibmcloud, set in terraform
```
$ ibmcloud is keys
```Set the name of the ssh key here:
```
vim terraform.tfvars
```Run:
```
terraform apply
```