@pulumi/mongodbatlas 3.38.0-alpha.1764655604 → 3.38.0-alpha.1764888551
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/getStreamPrivatelinkEndpoint.d.ts +16 -226
- package/getStreamPrivatelinkEndpoint.js +16 -226
- package/getStreamPrivatelinkEndpoint.js.map +1 -1
- package/getStreamPrivatelinkEndpoints.d.ts +16 -226
- package/getStreamPrivatelinkEndpoints.js +16 -226
- package/getStreamPrivatelinkEndpoints.js.map +1 -1
- package/networkPeering.d.ts +1 -55
- package/networkPeering.js +1 -55
- package/networkPeering.js.map +1 -1
- package/package.json +2 -2
- package/privatelinkEndpointServiceDataFederationOnlineArchive.d.ts +2 -2
- package/privatelinkEndpointServiceDataFederationOnlineArchive.js +2 -2
- package/privatelinkEndpointServiceServerless.d.ts +7 -7
- package/privatelinkEndpointServiceServerless.js +7 -7
- package/streamPrivatelinkEndpoint.d.ts +8 -113
- package/streamPrivatelinkEndpoint.js +8 -113
- package/streamPrivatelinkEndpoint.js.map +1 -1
package/networkPeering.js
CHANGED
|
@@ -56,66 +56,12 @@ const utilities = require("./utilities");
|
|
|
56
56
|
* });
|
|
57
57
|
* // the following assumes an AWS provider is configured
|
|
58
58
|
* // Accept the peering connection request
|
|
59
|
-
* const peer = new aws.
|
|
59
|
+
* const peer = new aws.index.VpcPeeringConnectionAccepter("peer", {
|
|
60
60
|
* vpcPeeringConnectionId: testNetworkPeering.connectionId,
|
|
61
61
|
* autoAccept: true,
|
|
62
62
|
* });
|
|
63
63
|
* ```
|
|
64
64
|
*
|
|
65
|
-
* ### Example with GCP
|
|
66
|
-
*
|
|
67
|
-
* ```typescript
|
|
68
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
69
|
-
* import * as gcp from "@pulumi/gcp";
|
|
70
|
-
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
71
|
-
*
|
|
72
|
-
* // Container example provided but not always required,
|
|
73
|
-
* // see network_container documentation for details.
|
|
74
|
-
* const test = new mongodbatlas.NetworkContainer("test", {
|
|
75
|
-
* projectId: projectId,
|
|
76
|
-
* atlasCidrBlock: "10.8.0.0/21",
|
|
77
|
-
* providerName: "GCP",
|
|
78
|
-
* });
|
|
79
|
-
* // Create the peering connection request
|
|
80
|
-
* const testNetworkPeering = new mongodbatlas.NetworkPeering("test", {
|
|
81
|
-
* projectId: projectId,
|
|
82
|
-
* containerId: test.containerId,
|
|
83
|
-
* providerName: "GCP",
|
|
84
|
-
* gcpProjectId: GCP_PROJECT_ID,
|
|
85
|
-
* networkName: "default",
|
|
86
|
-
* });
|
|
87
|
-
* // the following assumes a GCP provider is configured
|
|
88
|
-
* const _default = gcp.compute.getNetwork({
|
|
89
|
-
* name: "default",
|
|
90
|
-
* });
|
|
91
|
-
* // Create the GCP peer
|
|
92
|
-
* const peering = new gcp.compute.NetworkPeering("peering", {
|
|
93
|
-
* name: "peering-gcp-terraform-test",
|
|
94
|
-
* network: _default.then(_default => _default.selfLink),
|
|
95
|
-
* peerNetwork: pulumi.interpolate`https://www.googleapis.com/compute/v1/projects/${testNetworkPeering.atlasGcpProjectId}/global/networks/${testNetworkPeering.atlasVpcName}`,
|
|
96
|
-
* });
|
|
97
|
-
* // Create the cluster once the peering connection is completed
|
|
98
|
-
* const testAdvancedCluster = new mongodbatlas.AdvancedCluster("test", {
|
|
99
|
-
* projectId: projectId,
|
|
100
|
-
* name: "terraform-manually-test",
|
|
101
|
-
* clusterType: "REPLICASET",
|
|
102
|
-
* backupEnabled: true,
|
|
103
|
-
* replicationSpecs: [{
|
|
104
|
-
* regionConfigs: [{
|
|
105
|
-
* priority: 7,
|
|
106
|
-
* providerName: "GCP",
|
|
107
|
-
* regionName: "US_EAST_4",
|
|
108
|
-
* electableSpecs: {
|
|
109
|
-
* instanceSize: "M10",
|
|
110
|
-
* nodeCount: 3,
|
|
111
|
-
* },
|
|
112
|
-
* }],
|
|
113
|
-
* }],
|
|
114
|
-
* }, {
|
|
115
|
-
* dependsOn: [peering],
|
|
116
|
-
* });
|
|
117
|
-
* ```
|
|
118
|
-
*
|
|
119
65
|
* ### Example with Azure
|
|
120
66
|
*
|
|
121
67
|
* ```typescript
|
package/networkPeering.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"networkPeering.js","sourceRoot":"","sources":["../networkPeering.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"networkPeering.js","sourceRoot":"","sources":["../networkPeering.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2HG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACrE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IA2GD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QACl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E,CAAC;;AAxML,wCAyMC;AA3LG,gBAAgB;AACO,2BAAY,GAAG,kDAAkD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/mongodbatlas",
|
|
3
|
-
"version": "3.38.0-alpha.
|
|
3
|
+
"version": "3.38.0-alpha.1764888551",
|
|
4
4
|
"description": "A Pulumi package for creating and managing mongodbatlas cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"pulumi": {
|
|
24
24
|
"resource": true,
|
|
25
25
|
"name": "mongodbatlas",
|
|
26
|
-
"version": "3.38.0-alpha.
|
|
26
|
+
"version": "3.38.0-alpha.1764888551"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -19,7 +19,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
19
19
|
* orgId: atlasOrgId,
|
|
20
20
|
* name: atlasProjectName,
|
|
21
21
|
* });
|
|
22
|
-
* const test = new aws.
|
|
22
|
+
* const test = new aws.index.VpcEndpoint("test", {
|
|
23
23
|
* vpcId: "vpc-7fc0a543",
|
|
24
24
|
* serviceName: "<SERVICE-NAME>",
|
|
25
25
|
* vpcEndpointType: "Interface",
|
|
@@ -32,7 +32,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
32
32
|
* providerName: "AWS",
|
|
33
33
|
* comment: "Test",
|
|
34
34
|
* region: "US_EAST_1",
|
|
35
|
-
* customerEndpointDnsName: test.
|
|
35
|
+
* customerEndpointDnsName: test.dnsEntry[0].dnsName,
|
|
36
36
|
* });
|
|
37
37
|
* ```
|
|
38
38
|
*
|
|
@@ -25,7 +25,7 @@ const utilities = require("./utilities");
|
|
|
25
25
|
* orgId: atlasOrgId,
|
|
26
26
|
* name: atlasProjectName,
|
|
27
27
|
* });
|
|
28
|
-
* const test = new aws.
|
|
28
|
+
* const test = new aws.index.VpcEndpoint("test", {
|
|
29
29
|
* vpcId: "vpc-7fc0a543",
|
|
30
30
|
* serviceName: "<SERVICE-NAME>",
|
|
31
31
|
* vpcEndpointType: "Interface",
|
|
@@ -38,7 +38,7 @@ const utilities = require("./utilities");
|
|
|
38
38
|
* providerName: "AWS",
|
|
39
39
|
* comment: "Test",
|
|
40
40
|
* region: "US_EAST_1",
|
|
41
|
-
* customerEndpointDnsName: test.
|
|
41
|
+
* customerEndpointDnsName: test.dnsEntry[0].dnsName,
|
|
42
42
|
* });
|
|
43
43
|
* ```
|
|
44
44
|
*
|
|
@@ -28,7 +28,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
28
28
|
* instanceName: testServerlessInstance.name,
|
|
29
29
|
* providerName: "AWS",
|
|
30
30
|
* });
|
|
31
|
-
* const ptfeService = new aws.
|
|
31
|
+
* const ptfeService = new aws.index.VpcEndpoint("ptfe_service", {
|
|
32
32
|
* vpcId: "vpc-7fc0a543",
|
|
33
33
|
* serviceName: test.endpointServiceName,
|
|
34
34
|
* vpcEndpointType: "Interface",
|
|
@@ -49,24 +49,24 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
49
49
|
*
|
|
50
50
|
* ```typescript
|
|
51
51
|
* import * as pulumi from "@pulumi/pulumi";
|
|
52
|
-
* import * as
|
|
52
|
+
* import * as azurerm from "@pulumi/azurerm";
|
|
53
53
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
54
54
|
*
|
|
55
55
|
* const test = new mongodbatlas.PrivatelinkEndpointServerless("test", {
|
|
56
56
|
* projectId: projectId,
|
|
57
57
|
* providerName: "AZURE",
|
|
58
58
|
* });
|
|
59
|
-
* const
|
|
59
|
+
* const testPrivateEndpoint = new azurerm.index.PrivateEndpoint("test", {
|
|
60
60
|
* name: "endpoint-test",
|
|
61
61
|
* location: testAzurermResourceGroup.location,
|
|
62
62
|
* resourceGroupName: resourceGroupName,
|
|
63
63
|
* subnetId: testAzurermSubnet.id,
|
|
64
|
-
* privateServiceConnection: {
|
|
64
|
+
* privateServiceConnection: [{
|
|
65
65
|
* name: test.privateLinkServiceName,
|
|
66
66
|
* privateConnectionResourceId: test.privateLinkServiceResourceId,
|
|
67
67
|
* isManualConnection: true,
|
|
68
68
|
* requestMessage: "Azure Private Link test",
|
|
69
|
-
* },
|
|
69
|
+
* }],
|
|
70
70
|
* });
|
|
71
71
|
* const testServerlessInstance = new mongodbatlas.ServerlessInstance("test", {
|
|
72
72
|
* projectId: "<PROJECT_ID>",
|
|
@@ -80,8 +80,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
80
80
|
* projectId: test.projectId,
|
|
81
81
|
* instanceName: testServerlessInstance.name,
|
|
82
82
|
* endpointId: test.endpointId,
|
|
83
|
-
* cloudProviderEndpointId:
|
|
84
|
-
* privateEndpointIpAddress:
|
|
83
|
+
* cloudProviderEndpointId: testPrivateEndpoint.id,
|
|
84
|
+
* privateEndpointIpAddress: testPrivateEndpoint.privateServiceConnection[0].privateIpAddress,
|
|
85
85
|
* providerName: "AZURE",
|
|
86
86
|
* comment: "test",
|
|
87
87
|
* });
|
|
@@ -34,7 +34,7 @@ const utilities = require("./utilities");
|
|
|
34
34
|
* instanceName: testServerlessInstance.name,
|
|
35
35
|
* providerName: "AWS",
|
|
36
36
|
* });
|
|
37
|
-
* const ptfeService = new aws.
|
|
37
|
+
* const ptfeService = new aws.index.VpcEndpoint("ptfe_service", {
|
|
38
38
|
* vpcId: "vpc-7fc0a543",
|
|
39
39
|
* serviceName: test.endpointServiceName,
|
|
40
40
|
* vpcEndpointType: "Interface",
|
|
@@ -55,24 +55,24 @@ const utilities = require("./utilities");
|
|
|
55
55
|
*
|
|
56
56
|
* ```typescript
|
|
57
57
|
* import * as pulumi from "@pulumi/pulumi";
|
|
58
|
-
* import * as
|
|
58
|
+
* import * as azurerm from "@pulumi/azurerm";
|
|
59
59
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
60
60
|
*
|
|
61
61
|
* const test = new mongodbatlas.PrivatelinkEndpointServerless("test", {
|
|
62
62
|
* projectId: projectId,
|
|
63
63
|
* providerName: "AZURE",
|
|
64
64
|
* });
|
|
65
|
-
* const
|
|
65
|
+
* const testPrivateEndpoint = new azurerm.index.PrivateEndpoint("test", {
|
|
66
66
|
* name: "endpoint-test",
|
|
67
67
|
* location: testAzurermResourceGroup.location,
|
|
68
68
|
* resourceGroupName: resourceGroupName,
|
|
69
69
|
* subnetId: testAzurermSubnet.id,
|
|
70
|
-
* privateServiceConnection: {
|
|
70
|
+
* privateServiceConnection: [{
|
|
71
71
|
* name: test.privateLinkServiceName,
|
|
72
72
|
* privateConnectionResourceId: test.privateLinkServiceResourceId,
|
|
73
73
|
* isManualConnection: true,
|
|
74
74
|
* requestMessage: "Azure Private Link test",
|
|
75
|
-
* },
|
|
75
|
+
* }],
|
|
76
76
|
* });
|
|
77
77
|
* const testServerlessInstance = new mongodbatlas.ServerlessInstance("test", {
|
|
78
78
|
* projectId: "<PROJECT_ID>",
|
|
@@ -86,8 +86,8 @@ const utilities = require("./utilities");
|
|
|
86
86
|
* projectId: test.projectId,
|
|
87
87
|
* instanceName: testServerlessInstance.name,
|
|
88
88
|
* endpointId: test.endpointId,
|
|
89
|
-
* cloudProviderEndpointId:
|
|
90
|
-
* privateEndpointIpAddress:
|
|
89
|
+
* cloudProviderEndpointId: testPrivateEndpoint.id,
|
|
90
|
+
* privateEndpointIpAddress: testPrivateEndpoint.privateServiceConnection[0].privateIpAddress,
|
|
91
91
|
* providerName: "AZURE",
|
|
92
92
|
* comment: "test",
|
|
93
93
|
* });
|
|
@@ -78,111 +78,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
78
78
|
* export const interfaceEndpointIds = pluralDatasource.then(pluralDatasource => pluralDatasource.results.map(__item => __item.interfaceEndpointId));
|
|
79
79
|
* ```
|
|
80
80
|
*
|
|
81
|
-
* ### AWS MSK Privatelink
|
|
82
|
-
* ```typescript
|
|
83
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
84
|
-
* import * as aws from "@pulumi/aws";
|
|
85
|
-
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
86
|
-
*
|
|
87
|
-
* const vpc = new aws.ec2.Vpc("vpc", {cidrBlock: "192.168.0.0/22"});
|
|
88
|
-
* const azs = aws.getAvailabilityZones({
|
|
89
|
-
* state: "available",
|
|
90
|
-
* });
|
|
91
|
-
* const subnetAz1 = new aws.ec2.Subnet("subnet_az1", {
|
|
92
|
-
* availabilityZone: azs.then(azs => azs.names?.[0]),
|
|
93
|
-
* cidrBlock: "192.168.0.0/24",
|
|
94
|
-
* vpcId: vpc.id,
|
|
95
|
-
* });
|
|
96
|
-
* const subnetAz2 = new aws.ec2.Subnet("subnet_az2", {
|
|
97
|
-
* availabilityZone: azs.then(azs => azs.names?.[1]),
|
|
98
|
-
* cidrBlock: "192.168.1.0/24",
|
|
99
|
-
* vpcId: vpc.id,
|
|
100
|
-
* });
|
|
101
|
-
* const sg = new aws.ec2.SecurityGroup("sg", {vpcId: vpc.id});
|
|
102
|
-
* const exampleConfiguration = new aws.msk.Configuration("example", {
|
|
103
|
-
* name: `${mskClusterName}-msk-configuration`,
|
|
104
|
-
* serverProperties: `auto.create.topics.enable=false
|
|
105
|
-
* default.replication.factor=3
|
|
106
|
-
* min.insync.replicas=2
|
|
107
|
-
* num.io.threads=8
|
|
108
|
-
* num.network.threads=5
|
|
109
|
-
* num.partitions=1
|
|
110
|
-
* num.replica.fetchers=2
|
|
111
|
-
* replica.lag.time.max.ms=30000
|
|
112
|
-
* socket.receive.buffer.bytes=102400
|
|
113
|
-
* socket.request.max.bytes=104857600
|
|
114
|
-
* socket.send.buffer.bytes=102400
|
|
115
|
-
* unclean.leader.election.enable=true
|
|
116
|
-
* allow.everyone.if.no.acl.found=false
|
|
117
|
-
* `,
|
|
118
|
-
* });
|
|
119
|
-
* const example = new aws.msk.Cluster("example", {
|
|
120
|
-
* clusterName: mskClusterName,
|
|
121
|
-
* kafkaVersion: "3.6.0",
|
|
122
|
-
* numberOfBrokerNodes: 2,
|
|
123
|
-
* brokerNodeGroupInfo: {
|
|
124
|
-
* instanceType: "kafka.m5.large",
|
|
125
|
-
* clientSubnets: [
|
|
126
|
-
* subnetAz1.id,
|
|
127
|
-
* subnetAz2.id,
|
|
128
|
-
* ],
|
|
129
|
-
* securityGroups: [sg.id],
|
|
130
|
-
* connectivityInfo: {
|
|
131
|
-
* vpcConnectivity: {
|
|
132
|
-
* clientAuthentication: {
|
|
133
|
-
* sasl: {
|
|
134
|
-
* scram: true,
|
|
135
|
-
* },
|
|
136
|
-
* },
|
|
137
|
-
* },
|
|
138
|
-
* },
|
|
139
|
-
* },
|
|
140
|
-
* clientAuthentication: {
|
|
141
|
-
* sasl: {
|
|
142
|
-
* scram: true,
|
|
143
|
-
* },
|
|
144
|
-
* },
|
|
145
|
-
* configurationInfo: {
|
|
146
|
-
* arn: exampleConfiguration.arn,
|
|
147
|
-
* revision: exampleConfiguration.latestRevision,
|
|
148
|
-
* },
|
|
149
|
-
* });
|
|
150
|
-
* const exampleClusterPolicy = new aws.msk.ClusterPolicy("example", {
|
|
151
|
-
* clusterArn: example.arn,
|
|
152
|
-
* policy: pulumi.jsonStringify({
|
|
153
|
-
* Version: "2012-10-17",
|
|
154
|
-
* Statement: [{
|
|
155
|
-
* Effect: "Allow",
|
|
156
|
-
* Principal: {
|
|
157
|
-
* AWS: `arn:aws:iam::${awsAccountId}:root`,
|
|
158
|
-
* },
|
|
159
|
-
* Action: [
|
|
160
|
-
* "kafka:CreateVpcConnection",
|
|
161
|
-
* "kafka:GetBootstrapBrokers",
|
|
162
|
-
* "kafka:DescribeCluster",
|
|
163
|
-
* "kafka:DescribeClusterV2",
|
|
164
|
-
* ],
|
|
165
|
-
* Resource: example.arn,
|
|
166
|
-
* }],
|
|
167
|
-
* }),
|
|
168
|
-
* });
|
|
169
|
-
* const exampleMskSingleScramSecretAssociation = new aws.index.MskSingleScramSecretAssociation("example", {
|
|
170
|
-
* clusterArn: example.arn,
|
|
171
|
-
* secretArn: awsSecretArn,
|
|
172
|
-
* });
|
|
173
|
-
* const test = new mongodbatlas.StreamPrivatelinkEndpoint("test", {
|
|
174
|
-
* projectId: projectId,
|
|
175
|
-
* providerName: "AWS",
|
|
176
|
-
* vendor: "MSK",
|
|
177
|
-
* arn: example.arn,
|
|
178
|
-
* });
|
|
179
|
-
* const singularDatasource = test.id.apply(id => mongodbatlas.getStreamPrivatelinkEndpointOutput({
|
|
180
|
-
* projectId: projectId,
|
|
181
|
-
* id: id,
|
|
182
|
-
* }));
|
|
183
|
-
* export const privatelinkEndpointId = singularDatasource.apply(singularDatasource => singularDatasource.id);
|
|
184
|
-
* ```
|
|
185
|
-
*
|
|
186
81
|
* ### AWS S3 Privatelink
|
|
187
82
|
* ```typescript
|
|
188
83
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -190,22 +85,22 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
190
85
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
191
86
|
*
|
|
192
87
|
* // S3 bucket for stream data
|
|
193
|
-
* const streamBucket = new aws.
|
|
88
|
+
* const streamBucket = new aws.index.S3Bucket("stream_bucket", {
|
|
194
89
|
* bucket: s3BucketName,
|
|
195
90
|
* forceDestroy: true,
|
|
196
91
|
* });
|
|
197
|
-
* const streamBucketVersioning = new aws.
|
|
92
|
+
* const streamBucketVersioning = new aws.index.S3BucketVersioning("stream_bucket_versioning", {
|
|
198
93
|
* bucket: streamBucket.id,
|
|
199
|
-
* versioningConfiguration: {
|
|
94
|
+
* versioningConfiguration: [{
|
|
200
95
|
* status: "Enabled",
|
|
201
|
-
* },
|
|
96
|
+
* }],
|
|
202
97
|
* });
|
|
203
|
-
* const streamBucketEncryption = new aws.
|
|
98
|
+
* const streamBucketEncryption = new aws.index.S3BucketServerSideEncryptionConfiguration("stream_bucket_encryption", {
|
|
204
99
|
* bucket: streamBucket.id,
|
|
205
|
-
*
|
|
206
|
-
* applyServerSideEncryptionByDefault: {
|
|
100
|
+
* rule: [{
|
|
101
|
+
* applyServerSideEncryptionByDefault: [{
|
|
207
102
|
* sseAlgorithm: "AES256",
|
|
208
|
-
* },
|
|
103
|
+
* }],
|
|
209
104
|
* }],
|
|
210
105
|
* });
|
|
211
106
|
* // PrivateLink for S3
|
|
@@ -84,111 +84,6 @@ const utilities = require("./utilities");
|
|
|
84
84
|
* export const interfaceEndpointIds = pluralDatasource.then(pluralDatasource => pluralDatasource.results.map(__item => __item.interfaceEndpointId));
|
|
85
85
|
* ```
|
|
86
86
|
*
|
|
87
|
-
* ### AWS MSK Privatelink
|
|
88
|
-
* ```typescript
|
|
89
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
90
|
-
* import * as aws from "@pulumi/aws";
|
|
91
|
-
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
92
|
-
*
|
|
93
|
-
* const vpc = new aws.ec2.Vpc("vpc", {cidrBlock: "192.168.0.0/22"});
|
|
94
|
-
* const azs = aws.getAvailabilityZones({
|
|
95
|
-
* state: "available",
|
|
96
|
-
* });
|
|
97
|
-
* const subnetAz1 = new aws.ec2.Subnet("subnet_az1", {
|
|
98
|
-
* availabilityZone: azs.then(azs => azs.names?.[0]),
|
|
99
|
-
* cidrBlock: "192.168.0.0/24",
|
|
100
|
-
* vpcId: vpc.id,
|
|
101
|
-
* });
|
|
102
|
-
* const subnetAz2 = new aws.ec2.Subnet("subnet_az2", {
|
|
103
|
-
* availabilityZone: azs.then(azs => azs.names?.[1]),
|
|
104
|
-
* cidrBlock: "192.168.1.0/24",
|
|
105
|
-
* vpcId: vpc.id,
|
|
106
|
-
* });
|
|
107
|
-
* const sg = new aws.ec2.SecurityGroup("sg", {vpcId: vpc.id});
|
|
108
|
-
* const exampleConfiguration = new aws.msk.Configuration("example", {
|
|
109
|
-
* name: `${mskClusterName}-msk-configuration`,
|
|
110
|
-
* serverProperties: `auto.create.topics.enable=false
|
|
111
|
-
* default.replication.factor=3
|
|
112
|
-
* min.insync.replicas=2
|
|
113
|
-
* num.io.threads=8
|
|
114
|
-
* num.network.threads=5
|
|
115
|
-
* num.partitions=1
|
|
116
|
-
* num.replica.fetchers=2
|
|
117
|
-
* replica.lag.time.max.ms=30000
|
|
118
|
-
* socket.receive.buffer.bytes=102400
|
|
119
|
-
* socket.request.max.bytes=104857600
|
|
120
|
-
* socket.send.buffer.bytes=102400
|
|
121
|
-
* unclean.leader.election.enable=true
|
|
122
|
-
* allow.everyone.if.no.acl.found=false
|
|
123
|
-
* `,
|
|
124
|
-
* });
|
|
125
|
-
* const example = new aws.msk.Cluster("example", {
|
|
126
|
-
* clusterName: mskClusterName,
|
|
127
|
-
* kafkaVersion: "3.6.0",
|
|
128
|
-
* numberOfBrokerNodes: 2,
|
|
129
|
-
* brokerNodeGroupInfo: {
|
|
130
|
-
* instanceType: "kafka.m5.large",
|
|
131
|
-
* clientSubnets: [
|
|
132
|
-
* subnetAz1.id,
|
|
133
|
-
* subnetAz2.id,
|
|
134
|
-
* ],
|
|
135
|
-
* securityGroups: [sg.id],
|
|
136
|
-
* connectivityInfo: {
|
|
137
|
-
* vpcConnectivity: {
|
|
138
|
-
* clientAuthentication: {
|
|
139
|
-
* sasl: {
|
|
140
|
-
* scram: true,
|
|
141
|
-
* },
|
|
142
|
-
* },
|
|
143
|
-
* },
|
|
144
|
-
* },
|
|
145
|
-
* },
|
|
146
|
-
* clientAuthentication: {
|
|
147
|
-
* sasl: {
|
|
148
|
-
* scram: true,
|
|
149
|
-
* },
|
|
150
|
-
* },
|
|
151
|
-
* configurationInfo: {
|
|
152
|
-
* arn: exampleConfiguration.arn,
|
|
153
|
-
* revision: exampleConfiguration.latestRevision,
|
|
154
|
-
* },
|
|
155
|
-
* });
|
|
156
|
-
* const exampleClusterPolicy = new aws.msk.ClusterPolicy("example", {
|
|
157
|
-
* clusterArn: example.arn,
|
|
158
|
-
* policy: pulumi.jsonStringify({
|
|
159
|
-
* Version: "2012-10-17",
|
|
160
|
-
* Statement: [{
|
|
161
|
-
* Effect: "Allow",
|
|
162
|
-
* Principal: {
|
|
163
|
-
* AWS: `arn:aws:iam::${awsAccountId}:root`,
|
|
164
|
-
* },
|
|
165
|
-
* Action: [
|
|
166
|
-
* "kafka:CreateVpcConnection",
|
|
167
|
-
* "kafka:GetBootstrapBrokers",
|
|
168
|
-
* "kafka:DescribeCluster",
|
|
169
|
-
* "kafka:DescribeClusterV2",
|
|
170
|
-
* ],
|
|
171
|
-
* Resource: example.arn,
|
|
172
|
-
* }],
|
|
173
|
-
* }),
|
|
174
|
-
* });
|
|
175
|
-
* const exampleMskSingleScramSecretAssociation = new aws.index.MskSingleScramSecretAssociation("example", {
|
|
176
|
-
* clusterArn: example.arn,
|
|
177
|
-
* secretArn: awsSecretArn,
|
|
178
|
-
* });
|
|
179
|
-
* const test = new mongodbatlas.StreamPrivatelinkEndpoint("test", {
|
|
180
|
-
* projectId: projectId,
|
|
181
|
-
* providerName: "AWS",
|
|
182
|
-
* vendor: "MSK",
|
|
183
|
-
* arn: example.arn,
|
|
184
|
-
* });
|
|
185
|
-
* const singularDatasource = test.id.apply(id => mongodbatlas.getStreamPrivatelinkEndpointOutput({
|
|
186
|
-
* projectId: projectId,
|
|
187
|
-
* id: id,
|
|
188
|
-
* }));
|
|
189
|
-
* export const privatelinkEndpointId = singularDatasource.apply(singularDatasource => singularDatasource.id);
|
|
190
|
-
* ```
|
|
191
|
-
*
|
|
192
87
|
* ### AWS S3 Privatelink
|
|
193
88
|
* ```typescript
|
|
194
89
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -196,22 +91,22 @@ const utilities = require("./utilities");
|
|
|
196
91
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
197
92
|
*
|
|
198
93
|
* // S3 bucket for stream data
|
|
199
|
-
* const streamBucket = new aws.
|
|
94
|
+
* const streamBucket = new aws.index.S3Bucket("stream_bucket", {
|
|
200
95
|
* bucket: s3BucketName,
|
|
201
96
|
* forceDestroy: true,
|
|
202
97
|
* });
|
|
203
|
-
* const streamBucketVersioning = new aws.
|
|
98
|
+
* const streamBucketVersioning = new aws.index.S3BucketVersioning("stream_bucket_versioning", {
|
|
204
99
|
* bucket: streamBucket.id,
|
|
205
|
-
* versioningConfiguration: {
|
|
100
|
+
* versioningConfiguration: [{
|
|
206
101
|
* status: "Enabled",
|
|
207
|
-
* },
|
|
102
|
+
* }],
|
|
208
103
|
* });
|
|
209
|
-
* const streamBucketEncryption = new aws.
|
|
104
|
+
* const streamBucketEncryption = new aws.index.S3BucketServerSideEncryptionConfiguration("stream_bucket_encryption", {
|
|
210
105
|
* bucket: streamBucket.id,
|
|
211
|
-
*
|
|
212
|
-
* applyServerSideEncryptionByDefault: {
|
|
106
|
+
* rule: [{
|
|
107
|
+
* applyServerSideEncryptionByDefault: [{
|
|
213
108
|
* sseAlgorithm: "AES256",
|
|
214
|
-
* },
|
|
109
|
+
* }],
|
|
215
110
|
* }],
|
|
216
111
|
* });
|
|
217
112
|
* // PrivateLink for S3
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streamPrivatelinkEndpoint.js","sourceRoot":"","sources":["../streamPrivatelinkEndpoint.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"streamPrivatelinkEndpoint.js","sourceRoot":"","sources":["../streamPrivatelinkEndpoint.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkHG;AACH,MAAa,yBAA0B,SAAQ,MAAM,CAAC,cAAc;IAChE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsC,EAAE,IA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