Merge pull request #303 from buth/internalelbs

provider/aws: added missing internal ELB option
This commit is contained in:
Mitchell Hashimoto 2014-09-30 13:29:35 -07:00
commit 09ce13d040
1 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,10 @@ func resource_aws_elb_create(
Listeners: listeners, Listeners: listeners,
} }
if rs.Attributes["internal"] == "true" {
elbOpts.Internal = true
}
if _, ok := rs.Attributes["availability_zones.#"]; ok { if _, ok := rs.Attributes["availability_zones.#"]; ok {
v = flatmap.Expand(rs.Attributes, "availability_zones").([]interface{}) v = flatmap.Expand(rs.Attributes, "availability_zones").([]interface{})
elbOpts.AvailZone = expandStringList(v) elbOpts.AvailZone = expandStringList(v)
@ -262,6 +266,7 @@ func resource_aws_elb_diff(
"listener": diff.AttrTypeCreate, "listener": diff.AttrTypeCreate,
"instances": diff.AttrTypeUpdate, "instances": diff.AttrTypeUpdate,
"health_check": diff.AttrTypeCreate, "health_check": diff.AttrTypeCreate,
"internal": diff.AttrTypeCreate,
}, },
ComputedAttrs: []string{ ComputedAttrs: []string{
@ -344,6 +349,7 @@ func resource_aws_elb_validation() *config.Validator {
}, },
Optional: []string{ Optional: []string{
"instances.*", "instances.*",
"internal",
"availability_zones.*", "availability_zones.*",
"security_groups.*", "security_groups.*",
"subnets.*", "subnets.*",