Skip to content

Commit

Permalink
update go
Browse files Browse the repository at this point in the history
  • Loading branch information
bshelton committed Mar 26, 2024
1 parent a488c69 commit 37665d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions examples/nodejs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ const awsConfig = new pulumi.Config("aws");

const vpc = new awsx.ec2.Vpc("example", {
cidrBlock: "172.250.0.0/24",
numberOfAvailabilityZones: 3
numberOfAvailabilityZones: 3,
});

const project = new esc.Project("sample-project", {
name: "Improved Chicken Window"
name: "Improved Chicken Window",
});

const network = new esc.Network("sample-network", {
name: "Chicken Window Net",
projectId: project.id,
resourceProvider: "aws",
region: awsConfig.require("region"),
cidrBlock: "172.21.0.0/16"
cidrBlock: "172.21.0.0/16",
});

const peering = new esc.Peering("sample-peering", {
Expand All @@ -30,22 +30,22 @@ const peering = new esc.Peering("sample-peering", {
peerNetworkRegion: network.region,
peerAccountId: vpc.vpc.ownerId,
peerNetworkId: vpc.vpcId,
routes: [vpc.vpc.cidrBlock]
routes: [vpc.vpc.cidrBlock],
});

const peer = new aws.ec2.VpcPeeringConnectionAccepter("sample-accept", {
vpcPeeringConnectionId: peering.providerMetadata["aws_peering_link_id"],
autoAccept: true,
tags: {
Side: "Accepter",
Source: "Event Store"
}
Source: "Event Store",
},
});

const route = new aws.ec2.Route("route", {
vpcPeeringConnectionId: peer.id,
routeTableId: vpc.vpc.mainRouteTableId,
destinationCidrBlock: network.cidrBlock
destinationCidrBlock: network.cidrBlock,
});

const cluster = new esc.ManagedCluster("wings", {
Expand All @@ -56,7 +56,7 @@ const cluster = new esc.ManagedCluster("wings", {
instanceType: "F1",
diskSize: 16,
diskType: "gp3",
serverVersion: "21.10"
serverVersion: "23.10",
});

export let clusterDnsName = cluster.dnsName;
2 changes: 1 addition & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/EventStore/pulumi-eventstorecloud/provider

go 1.19
go 1.20

replace github.com/hashicorp/go-getter => github.com/hashicorp/go-getter v1.4.0

Expand Down

0 comments on commit 37665d8

Please sign in to comment.