Skip to content

Commit

Permalink
Increase create timeout for servers and snapshots
Browse files Browse the repository at this point in the history
In #312 customers reported that server creation can time out if large
snapshots are used. This commit increases the timeout for server
creation to 90 minutes. Since creating snapshots can also take quite
some time the timeout is increased as well.

Closes #312
  • Loading branch information
fhofherr authored and LKaemmerling committed Jun 26, 2021
1 parent ad88a85 commit 0403f73
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/server/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"net"
"strconv"
"strings"
"time"

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"

Expand All @@ -31,7 +32,9 @@ func Resource() *schema.Resource {
Importer: &schema.ResourceImporter{
StateContext: schema.ImportStatePassthroughContext,
},

Timeouts: &schema.ResourceTimeout{
Create: schema.DefaultTimeout(90 * time.Minute),
},
Schema: map[string]*schema.Schema{
"name": {
Type: schema.TypeString,
Expand Down
4 changes: 4 additions & 0 deletions internal/snapshot/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"log"
"strconv"
"time"

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
Expand All @@ -24,6 +25,9 @@ func Resource() *schema.Resource {
Importer: &schema.ResourceImporter{
StateContext: schema.ImportStatePassthroughContext,
},
Timeouts: &schema.ResourceTimeout{
Create: schema.DefaultTimeout(90 * time.Minute),
},
Schema: map[string]*schema.Schema{
"description": {
Type: schema.TypeString,
Expand Down

0 comments on commit 0403f73

Please sign in to comment.