Skip to content

Commit c286048

Browse files
committed
feat: Support ability to skip terraform provider lock operation
1 parent 9a67c66 commit c286048

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

packages/cdktf-cli/src/bin/cmds/deploy.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ class Command extends BaseCommand {
108108
required: false,
109109
desc: "Skip synthesis of the application, assume the synthesized Terraform code is already present and up to date",
110110
})
111+
.option("skip-provider-lock", {
112+
type: "boolean",
113+
default: false,
114+
required: false,
115+
desc: "Block `terraform provider lock` from being run for any reason. Warning: This may cause issues when used with HCP Terraform",
116+
})
111117
.showHelpOnFail(true);
112118

113119
public async handleCommand(argv: any) {

packages/cdktf-cli/src/bin/cmds/destroy.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ class Command extends BaseCommand {
8585
required: false,
8686
desc: "Skip synthesis of the application, assume the synthesized Terraform code is already present and up to date",
8787
})
88+
.option("skip-provider-lock", {
89+
type: "boolean",
90+
default: false,
91+
required: false,
92+
desc: "Block `terraform provider lock` from being run for any reason. Warning: This may cause issues when used with HCP Terraform",
93+
})
8894
.showHelpOnFail(true);
8995

9096
public async handleCommand(argv: any) {

packages/cdktf-cli/src/bin/cmds/diff.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ class Command extends BaseCommand {
7777
required: false,
7878
desc: "Skip synthesis of the application, assume the synthesized Terraform code is already present and up to date",
7979
})
80+
.option("skip-provider-lock", {
81+
type: "boolean",
82+
default: false,
83+
required: false,
84+
desc: "Block `terraform provider lock` from being run for any reason. Warning: This may cause issues when used with HCP Terraform",
85+
})
8086
.showHelpOnFail(true);
8187

8288
public async handleCommand(argv: any) {

0 commit comments

Comments
 (0)