mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-13 01:00:50 -04:00
1.8 KiB
Executable File
1.8 KiB
Executable File
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| spotinst | Provider: Spotinst | docs-spotinst-index | The Spotinst provider is used to interact with the resources supported by Spotinst. The provider needs to be configured with the proper credentials before it can be used. |
Spotinst Provider
The Spotinst provider is used to interact with the resources supported by Spotinst. The provider needs to be configured with the proper credentials before it can be used.
Use the navigation to the left to read about the available resources.
Example Usage
# Configure the Spotinst provider
provider "spotinst" {
email = "${var.spotinst_email}"
password = "${var.spotinst_password}"
client_id = "${var.spotinst_client_id}"
client_secret = "${var.spotinst_client_secret}"
token = "${var.spotinst_token}"
}
# Create an AWS group
resource "spotinst_aws_group" "foo" {
...
}
Argument Reference
The following arguments are supported:
email- (Required) The email registered in Spotinst. It must be provided, but it can also be sourced from theSPOTINST_EMAILenvironment variable.password- (Optional; Required if not usingtoken) The password associated with the username. It can be sourced from theSPOTINST_PASSWORDenvironment variable.client_id- (Optional; Required if not usingtoken) The OAuth client ID associated with the username. It can be sourced from theSPOTINST_CLIENT_IDenvironment variable.client_secret- (Optional; Required if not usingtoken) The OAuth client secret associated with the username. It can be sourced from theSPOTINST_CLIENT_SECRETenvironment variable.token- (Optional; Required if not usingpassword) A Personal API Access Token issued by Spotinst. It can be sourced from theSPOTINST_TOKENenvironment variable.