added missing internal ELB option

This commit is contained in:
Eric Buth 2014-09-17 17:56:27 -04:00
parent ac2aed856e
commit 90b75b86c4
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.*",