-
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 parameterization to pulumi package blocks.
This adds parameterization for terraform providers which require dynamic bridging (and do not have pulumiverse or official pulumi supported packages already).
- Loading branch information
1 parent
948be02
commit 37dfd6b
Showing
7 changed files
with
174 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
// Copyright 2024, Pulumi Corporation. All rights reserved. | ||
|
||
|
||
package convert | ||
|
||
var pulumiSupportedProviders = []string{ | ||
"acme", | ||
"aiven", | ||
"akamai", | ||
"alicloud", | ||
"aquasec", | ||
"archive", | ||
"artifactory", | ||
"astra", | ||
"auth0", | ||
"aws", | ||
"aws-eksa", | ||
"azure", | ||
"azuread", | ||
"azuredevops", | ||
"buildkite", | ||
"civo", | ||
"cloudamqp", | ||
"cloudflare", | ||
"cloudinit", | ||
"cloudngfwaws", | ||
"concourse", | ||
"configcat", | ||
"confluentcloud", | ||
"consul", | ||
"databricks", | ||
"datadog", | ||
"dbtcloud", | ||
"digitalocean", | ||
"dnsimple", | ||
"docker", | ||
"doppler", | ||
"ec", | ||
"exoscale", | ||
"external", | ||
"f5bigip", | ||
"fastly", | ||
"gandi", | ||
"gcp", | ||
"github", | ||
"github-credentials", | ||
"gitlab", | ||
"googleworkspace", | ||
"harbor", | ||
"harness", | ||
"hcloud", | ||
"hcp", | ||
"heroku", | ||
"http", | ||
"ise", | ||
"junipermist", | ||
"kafka", | ||
"keycloak", | ||
"kong", | ||
"libvirt", | ||
"linode", | ||
"local", | ||
"mailgun", | ||
"matchbox", | ||
"meraki", | ||
"minio", | ||
"mongodbatlas", | ||
"mssql", | ||
"mysql", | ||
"newrelic", | ||
"ngrok", | ||
"nomad", | ||
"ns1", | ||
"null", | ||
"oci", | ||
"okta", | ||
"onelogin", | ||
"openstack", | ||
"opsgenie", | ||
"pagerduty", | ||
"postgresql", | ||
"purrl", | ||
"rabbitmq", | ||
"rancher2", | ||
"random", | ||
"rke", | ||
"scm", | ||
"sdwan", | ||
"sentry", | ||
"signalfx", | ||
"slack", | ||
"snowflake", | ||
"splunk", | ||
"spotinst", | ||
"statuscake", | ||
"sumologic", | ||
"tailscale", | ||
"tf-provider-boilerplate", | ||
"time", | ||
"tls", | ||
"unifi", | ||
"vault", | ||
"venafi", | ||
"vra", | ||
"vsphere", | ||
"wavefront", | ||
"xyz", | ||
"zitadel", | ||
} |
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
13 changes: 13 additions & 0 deletions
13
pkg/convert/testdata/programs/required_providers_tf/main.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,13 @@ | ||
terraform { | ||
required_providers { | ||
boundary = { | ||
source = "hashicorp/boundary" | ||
version = "1.1.9" | ||
} | ||
} | ||
required_version = ">= 1.3.5" | ||
} | ||
|
||
output "asdfasdfasdf" { | ||
value = 123 | ||
} |
14 changes: 14 additions & 0 deletions
14
pkg/convert/testdata/programs/required_providers_tf/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,14 @@ | ||
package "boundary" { | ||
baseProviderName = "terraform-provider" | ||
baseProviderVersion = "0.3.0" | ||
parameterization "name" "version" "value" { | ||
version = "1.1.9" | ||
name = "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