Skip to content

Commit

Permalink
Expose SelfLink for GCE instances to allow other resources to referen…
Browse files Browse the repository at this point in the history
…ce instances.
  • Loading branch information
David Watson committed Feb 2, 2015
1 parent 2d9dd25 commit 4ec0c34
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions builtin/providers/google/resource_compute_instance.go
Expand Up @@ -193,6 +193,11 @@ func resourceComputeInstance() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},

"self_link": &schema.Schema{
Type: schema.TypeString,
Computed: true,
},
},
}
}
Expand Down Expand Up @@ -441,6 +446,8 @@ func resourceComputeInstanceRead(d *schema.ResourceData, meta interface{}) error
d.Set("tags_fingerprint", instance.Tags.Fingerprint)
}

d.Set("self_link", instance.SelfLink)

return nil
}

Expand Down

0 comments on commit 4ec0c34

Please sign in to comment.