Skip to content

Commit

Permalink
fix(gcp): non-spot instanceTerminationAction is not allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBeucher committed Feb 11, 2025
1 parent 304d4b3 commit 2417703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/gcp/pulumi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class CloudyPadGCEInstance extends pulumi.ComponentResource {
automaticRestart: args.useSpot ? false : true, // Must be false for spot
onHostMaintenance: "TERMINATE",
provisioningModel: args.useSpot ? "SPOT" : "STANDARD",
instanceTerminationAction: "STOP",
instanceTerminationAction: args.useSpot ? "STOP" : undefined, // instanceTerminationAction is only allowed for spot instances
preemptible: args.useSpot ?? false
},
}, {
Expand Down

0 comments on commit 2417703

Please sign in to comment.