providers/aws: fix for latest ResourceBuilder API
This commit is contained in:
parent
a2815e50eb
commit
5d25de017c
|
@ -85,12 +85,12 @@ func resource_aws_elb_diff(
|
|||
meta interface{}) (*terraform.ResourceDiff, error) {
|
||||
|
||||
b := &diff.ResourceBuilder{
|
||||
CreateComputedAttrs: []string{
|
||||
"dns_name",
|
||||
Attrs: map[string]diff.AttrType{
|
||||
"name": diff.AttrTypeCreate,
|
||||
},
|
||||
|
||||
RequiresNewAttrs: []string{
|
||||
"name",
|
||||
ComputedAttrs: []string{
|
||||
"dns_name",
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
@ -104,18 +104,18 @@ func resource_aws_instance_diff(
|
|||
c *terraform.ResourceConfig,
|
||||
meta interface{}) (*terraform.ResourceDiff, error) {
|
||||
b := &diff.ResourceBuilder{
|
||||
CreateComputedAttrs: []string{
|
||||
Attrs: map[string]diff.AttrType{
|
||||
"ami": diff.AttrTypeCreate,
|
||||
"availability_zone": diff.AttrTypeCreate,
|
||||
"instance_type": diff.AttrTypeCreate,
|
||||
},
|
||||
|
||||
ComputedAttrs: []string{
|
||||
"public_dns",
|
||||
"public_ip",
|
||||
"private_dns",
|
||||
"private_ip",
|
||||
},
|
||||
|
||||
RequiresNewAttrs: []string{
|
||||
"ami",
|
||||
"availability_zone",
|
||||
"instance_type",
|
||||
},
|
||||
}
|
||||
|
||||
return b.Diff(s, c)
|
||||
|
|
Loading…
Reference in New Issue