@mstuercke/pulumi-modules 1.2.2 → 1.2.3

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.
@@ -1,5 +1,5 @@
1
1
  import { ComponentResource } from '@pulumi/pulumi';
2
- import { Project, ProjectIpAccessList, ServerlessInstance } from '@pulumi/mongodbatlas';
2
+ import { FlexCluster, Project, ProjectIpAccessList } from '@pulumi/mongodbatlas';
3
3
  export class MongoDBCustomInstance extends ComponentResource {
4
4
  mongoProjectId;
5
5
  connectionString;
@@ -18,15 +18,16 @@ export class MongoDBCustomInstance extends ComponentResource {
18
18
  projectId: mongoProject.id,
19
19
  cidrBlock: '0.0.0.0/0',
20
20
  }, { parent: this });
21
- const mongoInstance = new ServerlessInstance(name, {
21
+ const mongoInstance = new FlexCluster(name, {
22
22
  projectId: mongoProject.id,
23
23
  name: `${projectId}-${environmentName}`,
24
- providerSettingsBackingProviderName: 'AWS',
25
- providerSettingsProviderName: 'SERVERLESS',
26
- providerSettingsRegionName: 'EU_WEST_1', // Ireland
24
+ providerSettings: {
25
+ backingProviderName: 'AWS',
26
+ regionName: 'EU_WEST_1', // Ireland
27
+ },
27
28
  }, { parent: this });
28
29
  this.mongoProjectId = mongoProject.id;
29
- this.connectionString = mongoInstance.connectionStringsStandardSrv;
30
+ this.connectionString = mongoInstance.connectionStrings.standardSrv;
30
31
  this.databaseName = `${projectId}-${environmentName}`;
31
32
  }
32
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mstuercke/pulumi-modules",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "files": [
5
5
  "dist/**/!(*.test|*.fixture){.d.ts,.js}",
6
6
  "README.md"
@@ -13,14 +13,14 @@
13
13
  "scripts": {
14
14
  "typeCheck": "tsc --noEmit",
15
15
  "build": "tsc -p tsconfig.build.json",
16
- "release": "node --no-warnings --loader ts-node/esm scripts/release.ts"
16
+ "release": "node --no-warnings --import ts-node/esm scripts/release.ts"
17
17
  },
18
18
  "dependencies": {
19
19
  "@mstuercke/pulumi-neon": "1.0.0",
20
20
  "@pulumi/archive": "^0.3.0",
21
21
  "@pulumi/auth0": "^3.8.1",
22
22
  "@pulumi/aws": "^7.0.0",
23
- "@pulumi/mongodbatlas": "^3.27.0",
23
+ "@pulumi/mongodbatlas": "^4.0.0",
24
24
  "@pulumi/pulumi": "^3.142.0",
25
25
  "@pulumi/random": "^4.16.7",
26
26
  "@pulumiverse/sentry": "^0.0.9",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@mstuercke/node-utils": "0.0.3",
33
- "typescript": "^5.8.3"
33
+ "typescript": "^6.0.0"
34
34
  },
35
35
  "publishConfig": {
36
36
  "registry": "https://registry.npmjs.org/"