terraform/builtin/providers/aws/diff.go

34 lines
557 B
Go

package aws
import (
"github.com/hashicorp/terraform/diff"
)
var diffMap *diff.LazyResourceMap
func init() {
diffMap = &diff.LazyResourceMap{
Resources: map[string]diff.ResourceBuilderFactory{
"aws_instance": diffBuilder_aws_instance,
},
}
}
func diffBuilder_aws_instance() *diff.ResourceBuilder {
return &diff.ResourceBuilder{
CreateComputedAttrs: []string{
"public_dns",
"public_ip",
"private_dns",
"private_ip",
},
RequiresNewAttrs: []string{
"ami",
"availability_zone",
"instance_type",
"region",
},
}
}