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.
This commit is contained in:
Phil Frost 2015-01-30 13:17:16 -05:00
parent 6947ba2518
commit 863fd0c7d2
1 changed files with 1 additions and 0 deletions

View File

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