------------
- [Terraform](https://www.terraform.io/downloads.html) 0.10.x
-- [Go](https://golang.org/doc/install) 1.8 (to build the provider plugin)
+- [Go](https://golang.org/doc/install) 1.11 (to build the provider plugin)
Building The Provider
---------------------
Developing the Provider
---------------------------
-If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.8+ is *required*). You'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH), as well as adding `$GOPATH/bin` to your `$PATH`.
+If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.11+ is *required*). You'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH), as well as adding `$GOPATH/bin` to your `$PATH`.
To compile the provider, run `make build`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory.
func Provider() terraform.ResourceProvider {
return &schema.Provider{
Schema: map[string]*schema.Schema{
- "username": &schema.Schema{
+ "username": {
Type: schema.TypeString,
Required: true,
DefaultFunc: schema.EnvDefaultFunc("STATUSCAKE_USERNAME", nil),
Description: "Username for StatusCake Account.",
},
- "apikey": &schema.Schema{
+ "apikey": {
Type: schema.TypeString,
Required: true,
DefaultFunc: schema.EnvDefaultFunc("STATUSCAKE_APIKEY", nil),