-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add package block generation to the terraform converter.
This is the first step in supporting package blocks. The next step is supporting parameterization and detecting if the package should be bridge with terraform-bridge or not.
- Loading branch information
1 parent
8bb5ad2
commit 6cae4a6
Showing
5 changed files
with
117 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
terraform { | ||
required_providers { | ||
random = { | ||
version = "~> 3.5.1" | ||
source = "hashicorp/random" | ||
} | ||
null = { | ||
source = "hashicorp/null" | ||
} | ||
tf-boundary = { | ||
source = "hashicorp/boundary" | ||
version = "1.1.9" | ||
} | ||
} | ||
required_version = ">= 1.3.5" | ||
} | ||
|
||
output "asdfasdfasdf" { | ||
value = 123 | ||
} |
22 changes: 22 additions & 0 deletions
22
pkg/convert/testdata/programs/required_providers/pcl/main.pp
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,22 @@ | ||
package "random" { | ||
baseProviderName = "random" | ||
} | ||
|
||
package "null" { | ||
baseProviderName = "null" | ||
} | ||
|
||
package "tf-boundary" { | ||
baseProviderName = "terraform-provider" | ||
baseProviderVersion = "0.3.0" | ||
parameterization "name" "version" "value" { | ||
version = "1.1.9" | ||
name = "tf-boundary" | ||
value = "eyJyZW1vdGUiOnsidXJsIjoiaGFzaGljb3JwL2JvdW5kYXJ5IiwidmVyc2lvbiI6IjEuMS45In19" | ||
} | ||
} | ||
|
||
|
||
output "asdfasdfasdf" { | ||
value = 123 | ||
} |
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