Skip to content

Commit

Permalink
Hyperdrive config remap id (#965)
Browse files Browse the repository at this point in the history
Remaps the TF ID field of the hyperdrive config resource so that we do
not clobber it with ComputeID

fixes #961
  • Loading branch information
VenelinMartinov authored Nov 13, 2024
1 parent f77ce05 commit 1330d1e
Show file tree
Hide file tree
Showing 9 changed files with 207 additions and 5 deletions.
13 changes: 13 additions & 0 deletions provider/cmd/pulumi-resource-cloudflare/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -20227,11 +20227,16 @@
"origin": {
"$ref": "#/types/cloudflare:index/HyperdriveConfigOrigin:HyperdriveConfigOrigin",
"description": "The origin details for the Hyperdrive configuration.\n"
},
"resourceId": {
"type": "string",
"description": "The identifier of this resource. This is the hyperdrive config value.\n"
}
},
"required": [
"accountId",
"caching",
"resourceId",
"name",
"origin"
],
Expand All @@ -20251,6 +20256,10 @@
"origin": {
"$ref": "#/types/cloudflare:index/HyperdriveConfigOrigin:HyperdriveConfigOrigin",
"description": "The origin details for the Hyperdrive configuration.\n"
},
"resourceId": {
"type": "string",
"description": "The identifier of this resource. This is the hyperdrive config value.\n"
}
},
"requiredInputs": [
Expand All @@ -20276,6 +20285,10 @@
"origin": {
"$ref": "#/types/cloudflare:index/HyperdriveConfigOrigin:HyperdriveConfigOrigin",
"description": "The origin details for the Hyperdrive configuration.\n"
},
"resourceId": {
"type": "string",
"description": "The identifier of this resource. This is the hyperdrive config value.\n"
}
},
"type": "object"
Expand Down
11 changes: 9 additions & 2 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,15 @@ func Provider() tfbridge.ProviderInfo {
//
// Set our ID as site Key, which is what it represents upstream:
// <https://developers.cloudflare.com/turnstile/get-started/terraform/#create-a-turnstile-widget>.
"cloudflare_turnstile_widget": {ComputeID: delegateID("id")},
"cloudflare_hyperdrive_config": {ComputeID: delegateID("accountId")},
"cloudflare_turnstile_widget": {ComputeID: delegateID("id")},
"cloudflare_hyperdrive_config": {
ComputeID: delegateID("accountId"),
Fields: map[string]*tfbridge.SchemaInfo{
"id": {
Name: "resourceId",
},
},
},
"cloudflare_cloud_connector_rules": {ComputeID: delegateID("zoneId")},
// cloudflare_access_mutual_tls_hostname_settings has no ID or canonical ID field.
"cloudflare_access_mutual_tls_hostname_settings": {
Expand Down
18 changes: 18 additions & 0 deletions sdk/dotnet/HyperdriveConfig.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions sdk/go/cloudflare/hyperdriveConfig.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions sdk/java/src/main/java/com/pulumi/cloudflare/HyperdriveConfig.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions sdk/nodejs/hyperdriveConfig.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1330d1e

Please sign in to comment.