File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,9 @@ func resourceVultrSnapshot() *schema.Resource {
55
55
Computed : true ,
56
56
},
57
57
},
58
+ Timeouts : & schema.ResourceTimeout {
59
+ Create : schema .DefaultTimeout (30 * time .Minute ), //nolint:mnd
60
+ },
58
61
}
59
62
}
60
63
Original file line number Diff line number Diff line change @@ -34,6 +34,23 @@ The following arguments are supported:
34
34
* ` instance_id ` - (Required) ID of a given instance that you want to create a snapshot from.
35
35
* ` description ` - (Optional) The description for the given snapshot.
36
36
37
+ Snapshots often exceed the default timeout built in to all create requests in
38
+ the provider. In order to customize that, you may specify a custome value in a
39
+ ` timeouts ` block of the resource definition
40
+
41
+ * ` timeouts ` - (Optional) The create timeout value can be manually set
42
+
43
+ ``` hcl
44
+ resource "vultr_snapshot" "sn" {
45
+ instance_id = resource.vultr_instance.test-inst.id
46
+ description = "terraform timeout test"
47
+
48
+ timeouts {
49
+ create = "60m"
50
+ }
51
+ }
52
+ ```
53
+
37
54
## Attributes Reference
38
55
39
56
The following attributes are exported:
You can’t perform that action at this time.
0 commit comments