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) {
|
meta interface{}) (*terraform.ResourceDiff, error) {
|
||||||
|
|
||||||
b := &diff.ResourceBuilder{
|
b := &diff.ResourceBuilder{
|
||||||
CreateComputedAttrs: []string{
|
Attrs: map[string]diff.AttrType{
|
||||||
"dns_name",
|
"name": diff.AttrTypeCreate,
|
||||||
},
|
},
|
||||||
|
|
||||||
RequiresNewAttrs: []string{
|
ComputedAttrs: []string{
|
||||||
"name",
|
"dns_name",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -104,18 +104,18 @@ func resource_aws_instance_diff(
|
||||||
c *terraform.ResourceConfig,
|
c *terraform.ResourceConfig,
|
||||||
meta interface{}) (*terraform.ResourceDiff, error) {
|
meta interface{}) (*terraform.ResourceDiff, error) {
|
||||||
b := &diff.ResourceBuilder{
|
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_dns",
|
||||||
"public_ip",
|
"public_ip",
|
||||||
"private_dns",
|
"private_dns",
|
||||||
"private_ip",
|
"private_ip",
|
||||||
},
|
},
|
||||||
|
|
||||||
RequiresNewAttrs: []string{
|
|
||||||
"ami",
|
|
||||||
"availability_zone",
|
|
||||||
"instance_type",
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return b.Diff(s, c)
|
return b.Diff(s, c)
|
||||||
|
|
Loading…
Reference in New Issue