-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from kylecarbs/master
Parse the sensitive key for input variables
- Loading branch information
Showing
6 changed files
with
80 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,6 +72,9 @@ var variableSchema = &hcl.BodySchema{ | |
{ | ||
Name: "default", | ||
}, | ||
{ | ||
Name: "sensitive", | ||
}, | ||
}, | ||
} | ||
|
||
|
44 changes: 44 additions & 0 deletions
44
tfconfig/testdata/variable-sensitive/variable-sensitive.out.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"path": "testdata/variable-sensitive", | ||
"required_providers": { | ||
"null": {} | ||
}, | ||
"variables": { | ||
"A": { | ||
"name": "A", | ||
"default": "A default", | ||
"required": false, | ||
"pos": { | ||
"filename": "testdata/variable-sensitive/variable-sensitive.tf", | ||
"line": 1 | ||
} | ||
}, | ||
"B": { | ||
"name": "B", | ||
"default": "B default", | ||
"required": false, | ||
"sensitive": true, | ||
"pos": { | ||
"filename": "testdata/variable-sensitive/variable-sensitive.tf", | ||
"line": 5 | ||
} | ||
} | ||
}, | ||
"outputs": {}, | ||
"managed_resources": { | ||
"null_resource.A": { | ||
"mode": "managed", | ||
"type": "null_resource", | ||
"name": "A", | ||
"provider": { | ||
"name": "null" | ||
}, | ||
"pos": { | ||
"filename": "testdata/variable-sensitive/variable-sensitive.tf", | ||
"line": 10 | ||
} | ||
} | ||
}, | ||
"data_resources": {}, | ||
"module_calls": {} | ||
} |
13 changes: 13 additions & 0 deletions
13
tfconfig/testdata/variable-sensitive/variable-sensitive.out.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
# Module `testdata/variable-sensitive` | ||
|
||
Provider Requirements: | ||
* **null:** (any version) | ||
|
||
## Input Variables | ||
* `A` (default `"A default"`) | ||
* `B` (default `"B default"`) | ||
|
||
## Managed Resources | ||
* `null_resource.A` from `null` | ||
|
10 changes: 10 additions & 0 deletions
10
tfconfig/testdata/variable-sensitive/variable-sensitive.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
variable "A" { | ||
default = "A default" | ||
} | ||
|
||
variable "B" { | ||
default = "B default" | ||
sensitive = true | ||
} | ||
|
||
resource "null_resource" "A" {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters