Skip to content

Commit

Permalink
Avoid unnecessary updating of aws_subnet
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Phil Frost committed Jan 30, 2015
1 parent 6947ba2 commit 863fd0c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builtin/providers/aws/resource_aws_subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func resourceAwsSubnet() *schema.Resource {
"map_public_ip_on_launch": &schema.Schema{
Type: schema.TypeBool,
Optional: true,
Computed: true,
},

"tags": tagsSchema(),
Expand Down

0 comments on commit 863fd0c

Please sign in to comment.