settings file is not required

This commit is contained in:
Clint Shryock 2015-08-03 15:34:34 -05:00
parent 2a5c18d88b
commit a7543de393
2 changed files with 2 additions and 2 deletions

View File

@ -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,
}, },

View File

@ -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