Avoid unnecessary updating of aws_subnet

If map_public_ip_on_launch was not specified, AWS picks a default of
"0", which is different than the "" in the state file, triggerinng an
update each time. Mark that parameter as Computed, avoiding the update.
pull/898/head
Phil Frost 11 years ago
parent 6947ba2518
commit 863fd0c7d2

@ -41,6 +41,7 @@ func resourceAwsSubnet() *schema.Resource {
"map_public_ip_on_launch": &schema.Schema{
Type: schema.TypeBool,
Optional: true,
Computed: true,
},
"tags": tagsSchema(),

Loading…
Cancel
Save