terraform: fix validation issues
This commit is contained in:
parent
8b57a92533
commit
65cbb99650
|
@ -25,7 +25,7 @@ func provider() terraform.ResourceProvider {
|
|||
Schema: map[string]*schema.Schema{
|
||||
"token": &schema.Schema{
|
||||
Type: schema.TypeString,
|
||||
Optional: false,
|
||||
Optional: true,
|
||||
DefaultFunc: schema.EnvDefaultFunc("ROUTE_TOKEN", nil),
|
||||
},
|
||||
"host": &schema.Schema{
|
||||
|
|
|
@ -22,6 +22,7 @@ func routeResource() *schema.Resource {
|
|||
"domain": {
|
||||
Type: schema.TypeString,
|
||||
Required: false,
|
||||
ForceNew: true,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue