File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
packages/cdktf-cli/src/bin/cmds Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,12 @@ class Command extends BaseCommand {
48
48
required : false ,
49
49
desc : "Skip synthesis of the application, assume the synthesized Terraform code is already present and up to date" ,
50
50
} )
51
+ . option ( "skip-provider-lock" , {
52
+ type : "boolean" ,
53
+ default : false ,
54
+ required : false ,
55
+ desc : "Block `terraform provider lock` from being run for any reason. Warning: This may cause issues when used with HCP Terraform" ,
56
+ } )
51
57
. showHelpOnFail ( true ) ;
52
58
53
59
public async handleCommand ( argv : any ) {
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ type OutputConfig = {
16
16
onOutputsRetrieved : ( outputs : NestedTerraformOutputs ) => void ;
17
17
outputsPath ?: string ;
18
18
skipSynth ?: boolean ;
19
+ skipProviderLock ?: boolean ;
19
20
} ;
20
21
21
22
export const Output = ( {
@@ -25,13 +26,15 @@ export const Output = ({
25
26
onOutputsRetrieved,
26
27
outputsPath,
27
28
skipSynth,
29
+ skipProviderLock,
28
30
} : OutputConfig ) : React . ReactElement => {
29
31
const { status, logEntries, returnValue } = useCdktfProject (
30
32
{ outDir, synthCommand } ,
31
33
async ( project ) => {
32
34
const outputs = await project . fetchOutputs ( {
33
35
stackNames : targetStacks ,
34
36
skipSynth,
37
+ skipProviderLock,
35
38
} ) ;
36
39
onOutputsRetrieved ( outputs ) ;
37
40
return outputs ;
You can’t perform that action at this time.
0 commit comments