settings file is not required
This commit is contained in:
parent
2a5c18d88b
commit
a7543de393
|
@ -17,7 +17,7 @@ func Provider() terraform.ResourceProvider {
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
"settings_file": &schema.Schema{
|
"settings_file": &schema.Schema{
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Required: true,
|
Optional: true,
|
||||||
DefaultFunc: schema.EnvDefaultFunc("AZURE_SETTINGS_FILE", nil),
|
DefaultFunc: schema.EnvDefaultFunc("AZURE_SETTINGS_FILE", nil),
|
||||||
ValidateFunc: validateSettingsFile,
|
ValidateFunc: validateSettingsFile,
|
||||||
},
|
},
|
||||||
|
|
|
@ -33,7 +33,7 @@ resource "azure_instance" "web" {
|
||||||
|
|
||||||
The following arguments are supported:
|
The following arguments are supported:
|
||||||
|
|
||||||
* `settings_file` - (Required) Contents of a valid `publishsettings` file, used to
|
* `settings_file` - (Optional) Contents of a valid `publishsettings` file, used to
|
||||||
authenticate with the Azure API. You can download the settings file here:
|
authenticate with the Azure API. You can download the settings file here:
|
||||||
https://manage.windowsazure.com/publishsettings. You must either provide
|
https://manage.windowsazure.com/publishsettings. You must either provide
|
||||||
(or source from the `AZURE_SETTINGS_FILE` environment variable) a settings
|
(or source from the `AZURE_SETTINGS_FILE` environment variable) a settings
|
||||||
|
|
Loading…
Reference in New Issue