Skip to content

Commit

Permalink
Fix error in the civo_object_store and add more example (#156)
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro J. Nuñez Madrazo <alejandrojnm@gmail.com>
  • Loading branch information
alejandrojnm committed Nov 10, 2022
1 parent cd816da commit 781a1cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions civo/resource_object_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func resourceObjectStore() *schema.Resource {
"region": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "The region for the Object Store, if not declared we use the region as declared in the provider (Defaults to LON1)",
},
"max_size_gb": {
Expand Down
5 changes: 5 additions & 0 deletions examples/resources/civo_object_store/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ resource "civo_object_store" "backup" {
max_size_gb = 500
region = "LON1"
}

# If you create the bucket without credentials, you can read the credentials in this way
data "civo_object_store_credential" "backup" {
id = civo_object_store.backup.access_key_id
}

0 comments on commit 781a1cb

Please sign in to comment.