Fix AWS region vs zone

We were specifying a region, but naming it as a zone in util.sh

The zone matters just as much as the region, e.g. for EBS volumes.

We also change the config to require a Zone, not a Region.
But we fallback to get the information from the metadata service.
This commit is contained in:
Justin Santa Barbara
2015-03-26 12:47:49 -07:00
parent 8fde691aa7
commit ffadd5533a
3 changed files with 11 additions and 13 deletions

View File

@@ -75,7 +75,7 @@ func main() {
if *provider == "aws" {
awsConfig := "[Global]\n"
awsConfig += fmt.Sprintf("Region=%s\n", *gceZone)
awsConfig += fmt.Sprintf("Zone=%s\n", *gceZone)
var err error
cloudConfig.Provider, err = cloudprovider.GetCloudProvider(*provider, strings.NewReader(awsConfig))