Slide 24
Slide 24 text
Copyright © 2017 HashiCorp
Provider Architecture
!24
Provider layout: provider.go
package supercloud
import (
"github.com/hashicorp/terraform/helper/schema"
)
func Provider() *schema.Provider {
return &schema.Provider{
Schema: map[string]*schema.Schema{
"access_key": {
Type: schema.TypeString,
Optional: true,
Description: descriptions["access_key"],
},
ResourcesMap: map[string]*schema.Resource{
"sc_cloud_instance": resourceSupercloudInstance(),
},
},
}
}