Skip to content

Commit

Permalink
update version of esc terraform provider
Browse files Browse the repository at this point in the history
  • Loading branch information
bshelton committed Mar 26, 2024
1 parent 3af3b53 commit a488c69
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 102 deletions.
17 changes: 7 additions & 10 deletions provider/cmd/pulumi-resource-eventstorecloud/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@
}
},
"eventstorecloud:index/managedCluster:ManagedCluster": {
"description": "Manages EventStoreDB instances and clusters in Event Store Cloud\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as eventstorecloud from \"@eventstore/pulumi-eventstorecloud\";\nimport * as eventstorecloud from \"@pulumi/eventstorecloud\";\n\nconst exampleProject = eventstorecloud.getProject({\n name: \"Example Project\",\n});\nconst exampleNetwork = new eventstorecloud.Network(\"exampleNetwork\", {\n projectId: eventstorecloud_project.example.id,\n resourceProvider: \"aws\",\n region: \"us-west-2\",\n cidrBlock: \"172.21.0.0/16\",\n});\nconst exampleManagedCluster = new eventstorecloud.ManagedCluster(\"exampleManagedCluster\", {\n projectId: exampleNetwork.projectId,\n networkId: exampleNetwork.id,\n topology: \"three-node-multi-zone\",\n instanceType: \"F1\",\n diskSize: 24,\n diskType: \"gp3\",\n diskIops: 3000,\n diskThroughput: 125,\n serverVersion: \"20.6\",\n});\n```\n```python\nimport pulumi\nimport pulumi_eventstorecloud as eventstorecloud\n\nexample_project = eventstorecloud.get_project(name=\"Example Project\")\nexample_network = eventstorecloud.Network(\"exampleNetwork\",\n project_id=eventstorecloud_project[\"example\"][\"id\"],\n resource_provider=\"aws\",\n region=\"us-west-2\",\n cidr_block=\"172.21.0.0/16\")\nexample_managed_cluster = eventstorecloud.ManagedCluster(\"exampleManagedCluster\",\n project_id=example_network.project_id,\n network_id=example_network.id,\n topology=\"three-node-multi-zone\",\n instance_type=\"F1\",\n disk_size=24,\n disk_type=\"gp3\",\n disk_iops=3000,\n disk_throughput=125,\n server_version=\"20.6\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing EventStoreCloud = Pulumi.EventStoreCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleProject = EventStoreCloud.GetProject.Invoke(new()\n {\n Name = \"Example Project\",\n });\n\n var exampleNetwork = new EventStoreCloud.Network(\"exampleNetwork\", new()\n {\n ProjectId = eventstorecloud_project.Example.Id,\n ResourceProvider = \"aws\",\n Region = \"us-west-2\",\n CidrBlock = \"172.21.0.0/16\",\n });\n\n var exampleManagedCluster = new EventStoreCloud.ManagedCluster(\"exampleManagedCluster\", new()\n {\n ProjectId = exampleNetwork.ProjectId,\n NetworkId = exampleNetwork.Id,\n Topology = \"three-node-multi-zone\",\n InstanceType = \"F1\",\n DiskSize = 24,\n DiskType = \"gp3\",\n DiskIops = 3000,\n DiskThroughput = 125,\n ServerVersion = \"20.6\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/EventStore/pulumi-eventstorecloud/sdk/go/eventstorecloud\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := eventstorecloud.LookupProject(ctx, \u0026eventstorecloud.LookupProjectArgs{\n\t\t\tName: \"Example Project\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleNetwork, err := eventstorecloud.NewNetwork(ctx, \"exampleNetwork\", \u0026eventstorecloud.NetworkArgs{\n\t\t\tProjectId: pulumi.Any(eventstorecloud_project.Example.Id),\n\t\t\tResourceProvider: pulumi.String(\"aws\"),\n\t\t\tRegion: pulumi.String(\"us-west-2\"),\n\t\t\tCidrBlock: pulumi.String(\"172.21.0.0/16\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = eventstorecloud.NewManagedCluster(ctx, \"exampleManagedCluster\", \u0026eventstorecloud.ManagedClusterArgs{\n\t\t\tProjectId: exampleNetwork.ProjectId,\n\t\t\tNetworkId: exampleNetwork.ID(),\n\t\t\tTopology: pulumi.String(\"three-node-multi-zone\"),\n\t\t\tInstanceType: pulumi.String(\"F1\"),\n\t\t\tDiskSize: pulumi.Int(24),\n\t\t\tDiskType: pulumi.String(\"gp3\"),\n\t\t\tDiskIops: pulumi.Int(3000),\n\t\t\tDiskThroughput: pulumi.Int(125),\n\t\t\tServerVersion: pulumi.String(\"20.6\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.eventstorecloud.EventstorecloudFunctions;\nimport com.pulumi.eventstorecloud.inputs.GetProjectArgs;\nimport com.pulumi.eventstorecloud.Network;\nimport com.pulumi.eventstorecloud.NetworkArgs;\nimport com.pulumi.eventstorecloud.ManagedCluster;\nimport com.pulumi.eventstorecloud.ManagedClusterArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleProject = EventstorecloudFunctions.getProject(GetProjectArgs.builder()\n .name(\"Example Project\")\n .build());\n\n var exampleNetwork = new Network(\"exampleNetwork\", NetworkArgs.builder() \n .projectId(eventstorecloud_project.example().id())\n .resourceProvider(\"aws\")\n .region(\"us-west-2\")\n .cidrBlock(\"172.21.0.0/16\")\n .build());\n\n var exampleManagedCluster = new ManagedCluster(\"exampleManagedCluster\", ManagedClusterArgs.builder() \n .projectId(exampleNetwork.projectId())\n .networkId(exampleNetwork.id())\n .topology(\"three-node-multi-zone\")\n .instanceType(\"F1\")\n .diskSize(24)\n .diskType(\"gp3\")\n .diskIops(3000)\n .diskThroughput(125)\n .serverVersion(\"20.6\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleNetwork:\n type: eventstorecloud:Network\n properties:\n projectId: ${eventstorecloud_project.example.id}\n resourceProvider: aws\n region: us-west-2\n cidrBlock: 172.21.0.0/16\n exampleManagedCluster:\n type: eventstorecloud:ManagedCluster\n properties:\n projectId: ${exampleNetwork.projectId}\n networkId: ${exampleNetwork.id}\n topology: three-node-multi-zone\n instanceType: F1\n diskSize: 24\n diskType: gp3\n diskIops: 3000\n diskThroughput: 125\n serverVersion: '20.6'\nvariables:\n exampleProject:\n fn::invoke:\n Function: eventstorecloud:getProject\n Arguments:\n name: Example Project\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\n\n\n```sh\n $ pulumi import eventstorecloud:index/managedCluster:ManagedCluster example project_id:cluster_id\n```\n\n ",
"description": "Manages EventStoreDB instances and clusters in Event Store Cloud\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as eventstorecloud from \"@eventstore/pulumi-eventstorecloud\";\nimport * as eventstorecloud from \"@pulumi/eventstorecloud\";\n\nconst exampleProject = eventstorecloud.getProject({\n name: \"Example Project\",\n});\nconst exampleNetwork = new eventstorecloud.Network(\"exampleNetwork\", {\n projectId: eventstorecloud_project.example.id,\n resourceProvider: \"aws\",\n region: \"us-west-2\",\n cidrBlock: \"172.21.0.0/16\",\n});\nconst exampleManagedCluster = new eventstorecloud.ManagedCluster(\"exampleManagedCluster\", {\n projectId: exampleNetwork.projectId,\n networkId: exampleNetwork.id,\n topology: \"three-node-multi-zone\",\n instanceType: \"F1\",\n diskSize: 24,\n diskType: \"gp3\",\n diskIops: 3000,\n diskThroughput: 125,\n serverVersion: \"23.10\",\n});\n```\n```python\nimport pulumi\nimport pulumi_eventstorecloud as eventstorecloud\n\nexample_project = eventstorecloud.get_project(name=\"Example Project\")\nexample_network = eventstorecloud.Network(\"exampleNetwork\",\n project_id=eventstorecloud_project[\"example\"][\"id\"],\n resource_provider=\"aws\",\n region=\"us-west-2\",\n cidr_block=\"172.21.0.0/16\")\nexample_managed_cluster = eventstorecloud.ManagedCluster(\"exampleManagedCluster\",\n project_id=example_network.project_id,\n network_id=example_network.id,\n topology=\"three-node-multi-zone\",\n instance_type=\"F1\",\n disk_size=24,\n disk_type=\"gp3\",\n disk_iops=3000,\n disk_throughput=125,\n server_version=\"23.10\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing EventStoreCloud = Pulumi.EventStoreCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleProject = EventStoreCloud.GetProject.Invoke(new()\n {\n Name = \"Example Project\",\n });\n\n var exampleNetwork = new EventStoreCloud.Network(\"exampleNetwork\", new()\n {\n ProjectId = eventstorecloud_project.Example.Id,\n ResourceProvider = \"aws\",\n Region = \"us-west-2\",\n CidrBlock = \"172.21.0.0/16\",\n });\n\n var exampleManagedCluster = new EventStoreCloud.ManagedCluster(\"exampleManagedCluster\", new()\n {\n ProjectId = exampleNetwork.ProjectId,\n NetworkId = exampleNetwork.Id,\n Topology = \"three-node-multi-zone\",\n InstanceType = \"F1\",\n DiskSize = 24,\n DiskType = \"gp3\",\n DiskIops = 3000,\n DiskThroughput = 125,\n ServerVersion = \"23.10\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/EventStore/pulumi-eventstorecloud/sdk/go/eventstorecloud\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := eventstorecloud.LookupProject(ctx, \u0026eventstorecloud.LookupProjectArgs{\n\t\t\tName: \"Example Project\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleNetwork, err := eventstorecloud.NewNetwork(ctx, \"exampleNetwork\", \u0026eventstorecloud.NetworkArgs{\n\t\t\tProjectId: pulumi.Any(eventstorecloud_project.Example.Id),\n\t\t\tResourceProvider: pulumi.String(\"aws\"),\n\t\t\tRegion: pulumi.String(\"us-west-2\"),\n\t\t\tCidrBlock: pulumi.String(\"172.21.0.0/16\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = eventstorecloud.NewManagedCluster(ctx, \"exampleManagedCluster\", \u0026eventstorecloud.ManagedClusterArgs{\n\t\t\tProjectId: exampleNetwork.ProjectId,\n\t\t\tNetworkId: exampleNetwork.ID(),\n\t\t\tTopology: pulumi.String(\"three-node-multi-zone\"),\n\t\t\tInstanceType: pulumi.String(\"F1\"),\n\t\t\tDiskSize: pulumi.Int(24),\n\t\t\tDiskType: pulumi.String(\"gp3\"),\n\t\t\tDiskIops: pulumi.Int(3000),\n\t\t\tDiskThroughput: pulumi.Int(125),\n\t\t\tServerVersion: pulumi.String(\"23.10\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.eventstorecloud.EventstorecloudFunctions;\nimport com.pulumi.eventstorecloud.inputs.GetProjectArgs;\nimport com.pulumi.eventstorecloud.Network;\nimport com.pulumi.eventstorecloud.NetworkArgs;\nimport com.pulumi.eventstorecloud.ManagedCluster;\nimport com.pulumi.eventstorecloud.ManagedClusterArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleProject = EventstorecloudFunctions.getProject(GetProjectArgs.builder()\n .name(\"Example Project\")\n .build());\n\n var exampleNetwork = new Network(\"exampleNetwork\", NetworkArgs.builder() \n .projectId(eventstorecloud_project.example().id())\n .resourceProvider(\"aws\")\n .region(\"us-west-2\")\n .cidrBlock(\"172.21.0.0/16\")\n .build());\n\n var exampleManagedCluster = new ManagedCluster(\"exampleManagedCluster\", ManagedClusterArgs.builder() \n .projectId(exampleNetwork.projectId())\n .networkId(exampleNetwork.id())\n .topology(\"three-node-multi-zone\")\n .instanceType(\"F1\")\n .diskSize(24)\n .diskType(\"gp3\")\n .diskIops(3000)\n .diskThroughput(125)\n .serverVersion(\"23.10\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleNetwork:\n type: eventstorecloud:Network\n properties:\n projectId: ${eventstorecloud_project.example.id}\n resourceProvider: aws\n region: us-west-2\n cidrBlock: 172.21.0.0/16\n exampleManagedCluster:\n type: eventstorecloud:ManagedCluster\n properties:\n projectId: ${exampleNetwork.projectId}\n networkId: ${exampleNetwork.id}\n topology: three-node-multi-zone\n instanceType: F1\n diskSize: 24\n diskType: gp3\n diskIops: 3000\n diskThroughput: 125\n serverVersion: '23.10'\nvariables:\n exampleProject:\n fn::invoke:\n Function: eventstorecloud:getProject\n Arguments:\n name: Example Project\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\n\n\n```sh\n $ pulumi import eventstorecloud:index/managedCluster:ManagedCluster example project_id:cluster_id\n```\n\n ",
"properties": {
"diskIops": {
"type": "integer",
Expand Down Expand Up @@ -533,7 +533,7 @@
},
"serverVersionTag": {
"type": "string",
"description": "Server version tag to provision (find the list of valid values below). If the provided tag is higher, this will prompt an in-place upgrade.\n"
"description": "Server version tag to provision (find the list of valid values below). A higher server*version*tag will prompt an upgrade.\n"
},
"topology": {
"type": "string",
Expand All @@ -551,6 +551,7 @@
"region",
"resourceProvider",
"serverVersion",
"serverVersionTag",
"topology"
],
"inputProperties": {
Expand Down Expand Up @@ -600,13 +601,11 @@
},
"serverVersion": {
"type": "string",
"description": "Server version to provision (find the list of valid values below)\n",
"willReplaceOnChanges": true
"description": "Server version to provision (find the list of valid values below)\n"
},
"serverVersionTag": {
"type": "string",
"description": "Server version tag to provision (find the list of valid values below)\n",
"willReplaceOnChanges": true
"description": "Server version tag to provision (find the list of valid values below). A higher server*version*tag will prompt an upgrade.\n"
},
"topology": {
"type": "string",
Expand Down Expand Up @@ -684,13 +683,11 @@
},
"serverVersion": {
"type": "string",
"description": "Server version to provision (find the list of valid values below)\n",
"willReplaceOnChanges": true
"description": "Server version to provision (find the list of valid values below)\n"
},
"serverVersionTag": {
"type": "string",
"description": "Server version tag to provision (find the list of valid values below)\n",
"willReplaceOnChanges": true
"description": "Server version tag to provision (find the list of valid values below). A higher server*version*tag will prompt an upgrade.\n"
},
"topology": {
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ replace github.com/hashicorp/go-getter => github.com/hashicorp/go-getter v1.4.0
replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20230710100801-03a71d0fca3d

require (
github.com/EventStore/terraform-provider-eventstorecloud v1.5.26
github.com/EventStore/terraform-provider-eventstorecloud v1.5.28
github.com/pulumi/pulumi-terraform-bridge/v3 v3.57.0
github.com/pulumi/pulumi/sdk/v3 v3.76.1
)
Expand Down
2 changes: 2 additions & 0 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,8 @@ github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym
github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ=
github.com/EventStore/terraform-provider-eventstorecloud v1.5.26 h1:zHoCr6VknEpxbe+Veb8dDBKR1k2tA1xzkCLpV/nhkew=
github.com/EventStore/terraform-provider-eventstorecloud v1.5.26/go.mod h1:4BJvRyKhwKym+y+PlHJ0QOdt/kGvhl/3YxRHh2tsJ20=
github.com/EventStore/terraform-provider-eventstorecloud v1.5.28 h1:Zce5TWutqX9ZVeuFYT0yD5pJoLk/FoatQ4KuJ+sa5AE=
github.com/EventStore/terraform-provider-eventstorecloud v1.5.28/go.mod h1:4BJvRyKhwKym+y+PlHJ0QOdt/kGvhl/3YxRHh2tsJ20=
github.com/GoogleCloudPlatform/cloudsql-proxy v1.31.2/go.mod h1:qR6jVnZTKDCW3j+fC9mOEPHm++1nKDMkqbbkD6KNsfo=
github.com/HdrHistogram/hdrhistogram-go v1.1.2 h1:5IcZpTvzydCQeHzK4Ef/D5rrSqwxob0t8PQPMybUNFM=
github.com/JohnCGriffin/overflow v0.0.0-20211019200055-46fa312c352c/go.mod h1:X0CRv0ky0k6m906ixxpzmDRLvX58TFUKS2eePweuyxk=
Expand Down
8 changes: 4 additions & 4 deletions sdk/dotnet/ManagedCluster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public partial class ManagedCluster : global::Pulumi.CustomResource
public Output<string> ServerVersion { get; private set; } = null!;

/// <summary>
/// Server version tag to provision (find the list of valid values below). If the given tag is higher, this will prompt an in-place upgrade.
/// Server version tag to provision (find the list of valid values below). A higher server*version*tag will prompt an upgrade.
/// </summary>
[Output("serverVersionTag")]
public Output<string> ServerVersionTag { get; private set; } = null!;
Expand Down Expand Up @@ -270,10 +270,10 @@ public sealed class ManagedClusterArgs : global::Pulumi.ResourceArgs
public Input<string> ServerVersion { get; set; } = null!;

/// <summary>
/// Server version tag to provision (find the list of valid values below). If the given tag is higher, this will prompt an in-place upgrade.
/// Server version tag to provision (find the list of valid values below). A higher server*version*tag will prompt an upgrade.
/// </summary>
[Input("serverVersionTag")]
public Input<string>? ServerVersionTag { get; set; } = null!;
public Input<string>? ServerVersionTag { get; set; }

/// <summary>
/// Topology of the managed cluster (`single-node` or `three-node-multi-zone`)
Expand Down Expand Up @@ -374,7 +374,7 @@ public sealed class ManagedClusterState : global::Pulumi.ResourceArgs
public Input<string>? ServerVersion { get; set; }

/// <summary>
/// Server version tag to provision (find the list of valid values below). If the given tag is higher, this will prompt an in-place upgrade.
/// Server version tag to provision (find the list of valid values below). A higher server*version*tag will prompt an upgrade.
/// </summary>
[Input("serverVersionTag")]
public Input<string>? ServerVersionTag { get; set; }
Expand Down
Loading

0 comments on commit a488c69

Please sign in to comment.