-
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.
Expose configuration_aliases from required_providers
- Loading branch information
1 parent
4fd17a0
commit 6ae4677
Showing
7 changed files
with
191 additions
and
16 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
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
27 changes: 27 additions & 0 deletions
27
tfconfig/testdata/provider-aliases-json/provider-aliases-json.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,27 @@ | ||
{ | ||
"path": "testdata/provider-aliases-json", | ||
"variables": {}, | ||
"outputs": {}, | ||
"required_providers": { | ||
"bar": {}, | ||
"baz": {}, | ||
"bleep": { | ||
"aliases": [ | ||
{"name": "bleep", "alias": "bloop"} | ||
] | ||
}, | ||
"empty": {}, | ||
"foo": {} | ||
}, | ||
"provider_configs": { | ||
"bar.yellow": {"name": "bar", "alias": "yellow"}, | ||
"baz": {"name": "baz"}, | ||
"empty": {"name": "empty"}, | ||
"bar": {"name": "bar"}, | ||
"foo.blue": {"name": "foo", "alias": "blue"}, | ||
"foo.red": {"name": "foo", "alias": "red"} | ||
}, | ||
"managed_resources": {}, | ||
"data_resources": {}, | ||
"module_calls": {} | ||
} |
10 changes: 10 additions & 0 deletions
10
tfconfig/testdata/provider-aliases-json/provider-aliases-json.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,10 @@ | ||
|
||
# Module `testdata/provider-aliases-json` | ||
|
||
Provider Requirements: | ||
* **bar:** (any version) | ||
* **baz:** (any version) | ||
* **bleep:** (any version) | ||
* **empty:** (any version) | ||
* **foo:** (any version) | ||
|
35 changes: 35 additions & 0 deletions
35
tfconfig/testdata/provider-aliases-json/provider-aliases-json.tf.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,35 @@ | ||
{ | ||
"terraform": { | ||
"required_providers": { | ||
"bleep": { | ||
"configuration_aliases": [ | ||
"bleep.bloop" | ||
] | ||
} | ||
} | ||
}, | ||
"provider": { | ||
"foo": [ | ||
{ | ||
"alias": "blue" | ||
}, | ||
{ | ||
"alias": "red" | ||
} | ||
], | ||
"bar": [ | ||
{}, | ||
{ | ||
"alias": "yellow" | ||
} | ||
], | ||
"baz": [ | ||
{} | ||
], | ||
"empty": [ | ||
{ | ||
"alias": "" | ||
} | ||
] | ||
} | ||
} |
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