Skip to content

Commit

Permalink
Add a url attribute to google_storage_bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
dasch committed May 11, 2017
1 parent 2aa7faa commit d55f3da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions builtin/providers/google/resource_storage_bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ func resourceStorageBucket() *schema.Resource {
Computed: true,
},

"url": &schema.Schema{
Type: schema.TypeString,
Computed: true,
},

"storage_class": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Expand Down Expand Up @@ -151,6 +156,7 @@ func resourceStorageBucketCreate(d *schema.ResourceData, meta interface{}) error

// Assign the bucket ID as the resource ID
d.Set("self_link", res.SelfLink)
d.Set("url", fmt.Sprintf("gs://%s", bucket))
d.SetId(res.Id)

return nil
Expand Down

0 comments on commit d55f3da

Please sign in to comment.