-
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
0ad465b
commit 381c7c9
Showing
10 changed files
with
1,396 additions
and
52 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,108 @@ | ||
// 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", | ||
} |
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 { | ||
tf-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 "tf-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
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,83 @@ | ||
module github.com/opentofu/opentofu/shim | ||
|
||
go 1.22.0 | ||
|
||
toolchain go1.23.1 | ||
|
||
require ( | ||
github.com/apparentlymart/go-versions v1.0.2 | ||
github.com/hashicorp/hcl/v2 v2.22.0 | ||
github.com/hashicorp/terraform-registry-address v0.2.3 | ||
github.com/hashicorp/terraform-svchost v0.1.1 | ||
github.com/opentofu/registry-address v0.0.0-20230922120653-901b9ae4061a | ||
github.com/pulumi/terraform v1.4.0 | ||
) | ||
|
||
require ( | ||
cloud.google.com/go v0.112.1 // indirect | ||
cloud.google.com/go/compute/metadata v0.3.0 // indirect | ||
cloud.google.com/go/iam v1.1.6 // indirect | ||
cloud.google.com/go/storage v1.39.1 // indirect | ||
github.com/agext/levenshtein v1.2.3 // indirect | ||
github.com/apparentlymart/go-cidr v1.1.0 // indirect | ||
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect | ||
github.com/aws/aws-sdk-go v1.50.36 // indirect | ||
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect | ||
github.com/bmatcuk/doublestar v1.1.5 // indirect | ||
github.com/coreos/go-systemd v0.0.0-20181012123002-c6f51f82210d // indirect | ||
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f // indirect | ||
github.com/fatih/color v1.16.0 // indirect | ||
github.com/felixge/httpsnoop v1.0.4 // indirect | ||
github.com/go-logr/logr v1.4.1 // indirect | ||
github.com/go-logr/stdr v1.2.2 // indirect | ||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect | ||
github.com/golang/protobuf v1.5.4 // indirect | ||
github.com/google/go-cmp v0.6.0 // indirect | ||
github.com/google/s2a-go v0.1.7 // indirect | ||
github.com/google/uuid v1.6.0 // indirect | ||
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect | ||
github.com/googleapis/gax-go/v2 v2.12.2 // indirect | ||
github.com/hashicorp/errwrap v1.1.0 // indirect | ||
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect | ||
github.com/hashicorp/go-getter v1.7.5 // indirect | ||
github.com/hashicorp/go-hclog v1.6.3 // indirect | ||
github.com/hashicorp/go-multierror v1.1.1 // indirect | ||
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect | ||
github.com/hashicorp/go-safetemp v1.0.0 // indirect | ||
github.com/hashicorp/go-uuid v1.0.3 // indirect | ||
github.com/hashicorp/go-version v1.7.0 // indirect | ||
github.com/jmespath/go-jmespath v0.4.0 // indirect | ||
github.com/klauspost/compress v1.15.11 // indirect | ||
github.com/kylelemons/godebug v1.1.0 // indirect | ||
github.com/mattn/go-colorable v0.1.13 // indirect | ||
github.com/mattn/go-isatty v0.0.20 // indirect | ||
github.com/mitchellh/go-homedir v1.1.0 // indirect | ||
github.com/mitchellh/go-testing-interface v1.14.1 // indirect | ||
github.com/mitchellh/go-wordwrap v1.0.1 // indirect | ||
github.com/spf13/afero v1.11.0 // indirect | ||
github.com/stretchr/testify v1.9.0 // indirect | ||
github.com/ulikunitz/xz v0.5.10 // indirect | ||
github.com/zclconf/go-cty v1.14.4 // indirect | ||
github.com/zclconf/go-cty-yaml v1.0.3 // indirect | ||
go.opencensus.io v0.24.0 // indirect | ||
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect | ||
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect | ||
go.opentelemetry.io/otel v1.24.0 // indirect | ||
go.opentelemetry.io/otel/metric v1.24.0 // indirect | ||
go.opentelemetry.io/otel/trace v1.24.0 // indirect | ||
golang.org/x/crypto v0.28.0 // indirect | ||
golang.org/x/mod v0.21.0 // indirect | ||
golang.org/x/net v0.30.0 // indirect | ||
golang.org/x/oauth2 v0.21.0 // indirect | ||
golang.org/x/sync v0.8.0 // indirect | ||
golang.org/x/sys v0.26.0 // indirect | ||
golang.org/x/text v0.19.0 // indirect | ||
golang.org/x/time v0.5.0 // indirect | ||
golang.org/x/tools v0.26.0 // indirect | ||
google.golang.org/api v0.169.0 // indirect | ||
google.golang.org/genproto v0.0.0-20240311173647-c811ad7063a7 // indirect | ||
google.golang.org/genproto/googleapis/api v0.0.0-20240604185151-ef581f913117 // indirect | ||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240604185151-ef581f913117 // indirect | ||
google.golang.org/grpc v1.66.2 // indirect | ||
google.golang.org/protobuf v1.34.2 // indirect | ||
) |
Oops, something went wrong.