-
Notifications
You must be signed in to change notification settings - Fork 0
Add basic instructions on using the terraform provider #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
df168de
80085b8
94eb47c
b6c6480
b600e2d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ This section describes how to connect to the NuoDB Control Plane REST service vi | |
|
||
- [nuodb-cp](https://github.com/nuodb/nuodb-cp-releases/releases/latest/download/nuodb-cp) or [cURL](https://curl.se/download.html) | ||
- [jq](https://jqlang.github.io/jq/download/) | ||
- (Optional) [terraform](https://developer.hashicorp.com/terraform/downloads) | ||
|
||
## Access and Authentication | ||
|
||
|
@@ -64,3 +65,26 @@ Configure `cURL` with DBaaS credentials. | |
```sh | ||
alias curl="curl -s -k -u \"${NUODB_CP_USER}:${NUODB_CP_PASSWORD}\"" | ||
``` | ||
|
||
### Setting up the Terraform Provider | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this subsection providing context for the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think it matters where in their terraform configuration the customer puts any given snippet. Terraform evaluates files in indeterminate order. |
||
|
||
To use terraform to manage your databases, you will want to use the [`nuodbaas` provider](https://registry.terraform.io/providers/nuodb/nuodbaas). | ||
The [provider documentation](https://registry.terraform.io/providers/nuodb/nuodbaas/latest/docs#schema) covers all of the available attributes. | ||
All of them are optional. | ||
For any that you do not specify, the provider will try to infer a value from the environment variables set above before exiting with an error. | ||
|
||
```terraform | ||
terraform { | ||
required_providers { | ||
nuodbaas = { | ||
source = "registry.terraform.io/nuodb/nuodbaas" | ||
version = "1.2.0" | ||
} | ||
} | ||
} | ||
|
||
provider "nuodbaas" { | ||
# If your Control Plane certificate is not signed by a trusted CA, disable certificate validation . | ||
skip_verify = true | ||
kontaras marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} | ||
``` |
Uh oh!
There was an error while loading. Please reload this page.