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{
|
Schema: map[string]*schema.Schema{
|
||||||
"token": &schema.Schema{
|
"token": &schema.Schema{
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Optional: false,
|
Optional: true,
|
||||||
DefaultFunc: schema.EnvDefaultFunc("ROUTE_TOKEN", nil),
|
DefaultFunc: schema.EnvDefaultFunc("ROUTE_TOKEN", nil),
|
||||||
},
|
},
|
||||||
"host": &schema.Schema{
|
"host": &schema.Schema{
|
||||||
|
|
|
@ -22,6 +22,7 @@ func routeResource() *schema.Resource {
|
||||||
"domain": {
|
"domain": {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Required: false,
|
Required: false,
|
||||||
|
ForceNew: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue