Skip to content

Commit

Permalink
Merge pull request #303 from buth/internalelbs
Browse files Browse the repository at this point in the history
provider/aws: added missing internal ELB option
  • Loading branch information
mitchellh committed Sep 30, 2014
2 parents 41fe8a7 + 90b75b8 commit 09ce13d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions builtin/providers/aws/resource_aws_elb.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ func resource_aws_elb_create(
Listeners: listeners,
}

if rs.Attributes["internal"] == "true" {
elbOpts.Internal = true
}

if _, ok := rs.Attributes["availability_zones.#"]; ok {
v = flatmap.Expand(rs.Attributes, "availability_zones").([]interface{})
elbOpts.AvailZone = expandStringList(v)
Expand Down Expand Up @@ -262,6 +266,7 @@ func resource_aws_elb_diff(
"listener": diff.AttrTypeCreate,
"instances": diff.AttrTypeUpdate,
"health_check": diff.AttrTypeCreate,
"internal": diff.AttrTypeCreate,
},

ComputedAttrs: []string{
Expand Down Expand Up @@ -344,6 +349,7 @@ func resource_aws_elb_validation() *config.Validator {
},
Optional: []string{
"instances.*",
"internal",
"availability_zones.*",
"security_groups.*",
"subnets.*",
Expand Down

0 comments on commit 09ce13d

Please sign in to comment.