github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/website/source/docs/providers/spotinst/index.html.markdown (about) 1 --- 2 layout: "spotinst" 3 page_title: "Provider: Spotinst" 4 sidebar_current: "docs-spotinst-index" 5 description: |- 6 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. 7 --- 8 9 # Spotinst Provider 10 11 The Spotinst provider is used to interact with the 12 resources supported by Spotinst. The provider needs to be configured 13 with the proper credentials before it can be used. 14 15 Use the navigation to the left to read about the available resources. 16 17 ## Example Usage 18 19 ```hcl 20 # Configure the Spotinst provider 21 provider "spotinst" { 22 email = "${var.spotinst_email}" 23 password = "${var.spotinst_password}" 24 client_id = "${var.spotinst_client_id}" 25 client_secret = "${var.spotinst_client_secret}" 26 token = "${var.spotinst_token}" 27 } 28 29 # Create an AWS group 30 resource "spotinst_aws_group" "foo" { 31 ... 32 } 33 ``` 34 35 ## Argument Reference 36 37 The following arguments are supported: 38 39 * `email` - (Required) The email registered in Spotinst. It must be provided, but it can also be sourced from the `SPOTINST_EMAIL` environment variable. 40 * `password` - (Optional; Required if not using `token`) The password associated with the username. It can be sourced from the `SPOTINST_PASSWORD` environment variable. 41 * `client_id` - (Optional; Required if not using `token`) The OAuth client ID associated with the username. It can be sourced from the `SPOTINST_CLIENT_ID` environment variable. 42 * `client_secret` - (Optional; Required if not using `token`) The OAuth client secret associated with the username. It can be sourced from the `SPOTINST_CLIENT_SECRET` environment variable. 43 * `token` - (Optional; Required if not using `password`) A Personal API Access Token issued by Spotinst. It can be sourced from the `SPOTINST_TOKEN` environment variable.