@mstuercke/pulumi-modules 0.0.9 → 0.0.11

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
- import { Auth0 } from './Auth0';
2
- export * from './Auth0';
1
+ import { Auth0 } from './Auth0.ts';
2
+ export * from './Auth0.ts';
3
3
  export declare const auth0: {
4
4
  Auth0: typeof Auth0;
5
5
  };
@@ -1,5 +1,5 @@
1
- import { Auth0 } from './Auth0';
2
- export * from './Auth0';
1
+ import { Auth0 } from "./Auth0.js";
2
+ export * from "./Auth0.js";
3
3
  export const auth0 = {
4
4
  Auth0,
5
5
  };
@@ -1,5 +1,5 @@
1
- export * from './getDomain';
1
+ export * from './getDomain.ts';
2
2
  export declare const domain: {
3
- getDomain: (options: import("./getDomain").DataDomainOptions) => Promise<import("./getDomain").DomainResult>;
3
+ getDomain: (options: import("./getDomain.ts").DataDomainOptions) => Promise<import("./getDomain.ts").DomainResult>;
4
4
  };
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
- import { getDomain } from './getDomain';
2
- export * from './getDomain';
1
+ import { getDomain } from "./getDomain.js";
2
+ export * from "./getDomain.js";
3
3
  export const domain = {
4
4
  getDomain,
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { iam } from '@pulumi/aws';
2
- import type { SimpleIamRolePolicyConfig } from './SimpleIamRolePolicyConfig.js';
2
+ import type { SimpleIamRolePolicyConfig } from './SimpleIamRolePolicyConfig.ts';
3
3
  import { type CustomResourceOptions } from '@pulumi/pulumi';
4
4
  export declare class SimpleIamRolePolicy extends iam.RolePolicy {
5
5
  constructor(iamRoleId: string, config: SimpleIamRolePolicyConfig, opts?: CustomResourceOptions);
@@ -1,6 +1,6 @@
1
- import { SimpleIamRolePolicy } from './SimpleIamRolePolicy';
2
- export * from './SimpleIamRolePolicy';
3
- export * from './SimpleIamRolePolicyConfig';
1
+ import { SimpleIamRolePolicy } from './SimpleIamRolePolicy.ts';
2
+ export * from './SimpleIamRolePolicy.ts';
3
+ export * from './SimpleIamRolePolicyConfig.ts';
4
4
  export declare const iam: {
5
5
  SimpleIamRolePolicy: typeof SimpleIamRolePolicy;
6
6
  };
package/dist/iam/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { SimpleIamRolePolicy } from './SimpleIamRolePolicy';
2
- export * from './SimpleIamRolePolicy';
3
- export * from './SimpleIamRolePolicyConfig';
1
+ import { SimpleIamRolePolicy } from "./SimpleIamRolePolicy.js";
2
+ export * from "./SimpleIamRolePolicy.js";
3
+ export * from "./SimpleIamRolePolicyConfig.js";
4
4
  export const iam = {
5
5
  SimpleIamRolePolicy,
6
6
  };
package/dist/index.d.ts CHANGED
@@ -1,41 +1,45 @@
1
- export * from './auth0';
2
- export * from './domain';
3
- export * from './iam';
4
- export * from './lambda';
5
- export * from './mongodb';
6
- export * from './rest';
7
- export * from './s3';
8
- export * from './website';
9
- export * from './websocket';
1
+ export * from './auth0/index.ts';
2
+ export * from './domain/index.ts';
3
+ export * from './iam/index.ts';
4
+ export * from './lambda/index.ts';
5
+ export * from './mongodb/index.ts';
6
+ export * from './postgres/index.ts';
7
+ export * from './rest/index.ts';
8
+ export * from './s3/index.ts';
9
+ export * from './website/index.ts';
10
+ export * from './websocket/index.ts';
10
11
  export declare const mstuercke: {
11
12
  auth0: {
12
- Auth0: typeof import("./auth0").Auth0;
13
+ Auth0: typeof import("./auth0/Auth0.ts").Auth0;
13
14
  };
14
15
  domain: {
15
- getDomain: (options: import("./domain").DataDomainOptions) => Promise<import("./domain").DomainResult>;
16
+ getDomain: (options: import("./domain/getDomain.ts").DataDomainOptions) => Promise<import("./domain/getDomain.ts").DomainResult>;
16
17
  };
17
18
  iam: {
18
- SimpleIamRolePolicy: typeof import("./iam").SimpleIamRolePolicy;
19
+ SimpleIamRolePolicy: typeof import("./iam/SimpleIamRolePolicy.ts").SimpleIamRolePolicy;
19
20
  };
20
21
  lambda: {
21
- NodeLambdaFunction: typeof import("./lambda").NodeLambdaFunction;
22
+ NodeLambdaFunction: typeof import("./lambda/NodeLambdaFunction.ts").NodeLambdaFunction;
22
23
  };
23
24
  mongodb: {
24
- MongoDBCustomInstance: typeof import("./mongodb").MongoDBCustomInstance;
25
- MongoDBDefaultInstance: typeof import("./mongodb").MongoDBDefaultInstance;
26
- MongoDBUser: typeof import("./mongodb").MongoDBUser;
25
+ MongoDBCustomInstance: typeof import("./mongodb/MongoDBCustomInstance.ts").MongoDBCustomInstance;
26
+ MongoDBDefaultInstance: typeof import("./mongodb/MongoDBDefaultInstance.ts").MongoDBDefaultInstance;
27
+ MongoDBUser: typeof import("./mongodb/MongoDBUser.ts").MongoDBUser;
28
+ };
29
+ postgres: {
30
+ Postgres: typeof import("./postgres/Postgres.ts").Postgres;
27
31
  };
28
32
  rest: {
29
- RestApi: typeof import("./rest").RestApi;
33
+ RestApi: typeof import("./rest/RestApi.ts").RestApi;
30
34
  };
31
35
  s3: {
32
- PublicS3Bucket: typeof import("./s3").PublicS3Bucket;
36
+ PublicS3Bucket: typeof import("./s3/PublicS3Bucket.ts").PublicS3Bucket;
33
37
  };
34
38
  website: {
35
- StaticWebsite: typeof import("./website").StaticWebsite;
39
+ StaticWebsite: typeof import("./website/StaticWebsite.ts").StaticWebsite;
36
40
  };
37
41
  websocket: {
38
- WebsocketApi: typeof import("./websocket").WebsocketApi;
42
+ WebsocketApi: typeof import("./websocket/WebsocketApi.ts").WebsocketApi;
39
43
  };
40
44
  };
41
45
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,27 +1,30 @@
1
- import { auth0 } from './auth0';
2
- import { domain } from './domain';
3
- import { iam } from './iam';
4
- import { rest } from './rest';
5
- import { lambda } from './lambda';
6
- import { mongodb } from './mongodb';
7
- import { s3 } from './s3';
8
- import { website } from './website';
9
- import { websocket } from './websocket';
10
- export * from './auth0';
11
- export * from './domain';
12
- export * from './iam';
13
- export * from './lambda';
14
- export * from './mongodb';
15
- export * from './rest';
16
- export * from './s3';
17
- export * from './website';
18
- export * from './websocket';
1
+ import { auth0 } from "./auth0/index.js";
2
+ import { domain } from "./domain/index.js";
3
+ import { iam } from "./iam/index.js";
4
+ import { rest } from "./rest/index.js";
5
+ import { lambda } from "./lambda/index.js";
6
+ import { mongodb } from "./mongodb/index.js";
7
+ import { postgres } from "./postgres/index.js";
8
+ import { s3 } from "./s3/index.js";
9
+ import { website } from "./website/index.js";
10
+ import { websocket } from "./websocket/index.js";
11
+ export * from "./auth0/index.js";
12
+ export * from "./domain/index.js";
13
+ export * from "./iam/index.js";
14
+ export * from "./lambda/index.js";
15
+ export * from "./mongodb/index.js";
16
+ export * from "./postgres/index.js";
17
+ export * from "./rest/index.js";
18
+ export * from "./s3/index.js";
19
+ export * from "./website/index.js";
20
+ export * from "./websocket/index.js";
19
21
  export const mstuercke = {
20
22
  auth0,
21
23
  domain,
22
24
  iam,
23
25
  lambda,
24
26
  mongodb,
27
+ postgres,
25
28
  rest,
26
29
  s3,
27
30
  website,
@@ -1,6 +1,6 @@
1
1
  import { type CustomResourceOptions, type Output, Resource } from '@pulumi/pulumi';
2
- import { type SimpleIamRolePolicyConfig } from '../iam';
3
- import type { WithInputs } from './WithInputs.js';
2
+ import { type SimpleIamRolePolicyConfig } from '../iam/index.ts';
3
+ import type { WithInputs } from './WithInputs.ts';
4
4
  export type NodeLambdaFunctionArgs<EnvironmentVariables> = {
5
5
  name: string;
6
6
  runtime?: string;
@@ -1,7 +1,7 @@
1
1
  import { iam, lambda } from '@pulumi/aws';
2
2
  import { getFile } from '@pulumi/archive';
3
3
  import { asset, Resource } from '@pulumi/pulumi';
4
- import { SimpleIamRolePolicy } from '../iam';
4
+ import { SimpleIamRolePolicy } from "../iam/index.js";
5
5
  export class NodeLambdaFunction extends Resource {
6
6
  name;
7
7
  arn;
@@ -1,5 +1,5 @@
1
- import { NodeLambdaFunction } from './NodeLambdaFunction';
2
- export * from './NodeLambdaFunction';
1
+ import { NodeLambdaFunction } from './NodeLambdaFunction.ts';
2
+ export * from './NodeLambdaFunction.ts';
3
3
  export declare const lambda: {
4
4
  NodeLambdaFunction: typeof NodeLambdaFunction;
5
5
  };
@@ -1,5 +1,5 @@
1
- import { NodeLambdaFunction } from './NodeLambdaFunction';
2
- export * from './NodeLambdaFunction';
1
+ import { NodeLambdaFunction } from "./NodeLambdaFunction.js";
2
+ export * from "./NodeLambdaFunction.js";
3
3
  export const lambda = {
4
4
  NodeLambdaFunction,
5
5
  };
@@ -1,9 +1,9 @@
1
- import { MongoDBCustomInstance } from './MongoDBCustomInstance';
2
- import { MongoDBDefaultInstance } from './MongoDBDefaultInstance';
3
- import { MongoDBUser } from './MongoDBUser';
4
- export * from './MongoDBCustomInstance';
5
- export * from './MongoDBDefaultInstance';
6
- export * from './MongoDBUser';
1
+ import { MongoDBCustomInstance } from './MongoDBCustomInstance.ts';
2
+ import { MongoDBDefaultInstance } from './MongoDBDefaultInstance.ts';
3
+ import { MongoDBUser } from './MongoDBUser.ts';
4
+ export * from './MongoDBCustomInstance.ts';
5
+ export * from './MongoDBDefaultInstance.ts';
6
+ export * from './MongoDBUser.ts';
7
7
  export declare const mongodb: {
8
8
  MongoDBCustomInstance: typeof MongoDBCustomInstance;
9
9
  MongoDBDefaultInstance: typeof MongoDBDefaultInstance;
@@ -1,9 +1,9 @@
1
- import { MongoDBCustomInstance } from './MongoDBCustomInstance';
2
- import { MongoDBDefaultInstance } from './MongoDBDefaultInstance';
3
- import { MongoDBUser } from './MongoDBUser';
4
- export * from './MongoDBCustomInstance';
5
- export * from './MongoDBDefaultInstance';
6
- export * from './MongoDBUser';
1
+ import { MongoDBCustomInstance } from "./MongoDBCustomInstance.js";
2
+ import { MongoDBDefaultInstance } from "./MongoDBDefaultInstance.js";
3
+ import { MongoDBUser } from "./MongoDBUser.js";
4
+ export * from "./MongoDBCustomInstance.js";
5
+ export * from "./MongoDBDefaultInstance.js";
6
+ export * from "./MongoDBUser.js";
7
7
  export const mongodb = {
8
8
  MongoDBCustomInstance,
9
9
  MongoDBDefaultInstance,
@@ -0,0 +1,16 @@
1
+ import { type Input, Resource } from '@pulumi/pulumi';
2
+ export type PostgresOptions = {
3
+ apiKey?: string;
4
+ neonProjectId: string;
5
+ projectId: string;
6
+ environmentName: string;
7
+ };
8
+ export declare class Postgres extends Resource {
9
+ readonly connectionUrl: Input<string>;
10
+ readonly host: Input<string>;
11
+ readonly databaseName: Input<string>;
12
+ readonly username: Input<string>;
13
+ readonly password: Input<string>;
14
+ constructor(name: string, options: PostgresOptions);
15
+ }
16
+ //# sourceMappingURL=Postgres.d.ts.map
@@ -0,0 +1,31 @@
1
+ import { interpolate, Resource } from '@pulumi/pulumi';
2
+ import { Database, Project, Provider, Role } from '@mstuercke/pulumi-neon';
3
+ export class Postgres extends Resource {
4
+ connectionUrl;
5
+ host;
6
+ databaseName;
7
+ username;
8
+ password;
9
+ constructor(name, options) {
10
+ super(`mstuercke:postgres:Postgres`, name, false);
11
+ const { apiKey, neonProjectId, projectId, environmentName } = options;
12
+ new Provider('provider', { apiKey });
13
+ const project = Project.get(name, neonProjectId);
14
+ const role = new Role(name, {
15
+ name: `${projectId}-${environmentName}`,
16
+ projectId: project.id,
17
+ branchId: project.defaultBranchId,
18
+ }, { parent: this });
19
+ const database = new Database(name, {
20
+ name: environmentName,
21
+ projectId: project.id,
22
+ branchId: project.defaultBranchId,
23
+ ownerName: role.name,
24
+ }, { parent: this });
25
+ this.connectionUrl = interpolate `postgresql://${role.name}:${role.password}@${project.databaseHost}/${database.name}?sslmode=require`;
26
+ this.host = project.databaseHost;
27
+ this.databaseName = database.name;
28
+ this.username = role.name;
29
+ this.password = role.password;
30
+ }
31
+ }
@@ -0,0 +1,6 @@
1
+ import { Postgres } from './Postgres.ts';
2
+ export * from './Postgres.ts';
3
+ export declare const postgres: {
4
+ Postgres: typeof Postgres;
5
+ };
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { Postgres } from "./Postgres.js";
2
+ export * from "./Postgres.js";
3
+ export const postgres = {
4
+ Postgres,
5
+ };
@@ -1,6 +1,6 @@
1
1
  import * as aws from '@pulumi/aws';
2
2
  import type { CustomResourceOptions, Input } from '@pulumi/pulumi';
3
- import type { NodeLambdaFunction } from '../lambda';
3
+ import type { NodeLambdaFunction } from '../lambda/index.ts';
4
4
  export interface RestApiArgs {
5
5
  name: string;
6
6
  projectId: string;
@@ -1,5 +1,5 @@
1
- import { RestApi } from './RestApi';
2
- export * from './RestApi';
1
+ import { RestApi } from './RestApi.ts';
2
+ export * from './RestApi.ts';
3
3
  export declare const rest: {
4
4
  RestApi: typeof RestApi;
5
5
  };
@@ -1,5 +1,5 @@
1
- import { RestApi } from './RestApi';
2
- export * from './RestApi';
1
+ import { RestApi } from "./RestApi.js";
2
+ export * from "./RestApi.js";
3
3
  export const rest = {
4
4
  RestApi,
5
5
  };
@@ -1,5 +1,5 @@
1
- import { PublicS3Bucket } from './PublicS3Bucket';
2
- export * from './PublicS3Bucket';
1
+ import { PublicS3Bucket } from './PublicS3Bucket.ts';
2
+ export * from './PublicS3Bucket.ts';
3
3
  export declare const s3: {
4
4
  PublicS3Bucket: typeof PublicS3Bucket;
5
5
  };
package/dist/s3/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { PublicS3Bucket } from './PublicS3Bucket';
2
- export * from './PublicS3Bucket';
1
+ import { PublicS3Bucket } from "./PublicS3Bucket.js";
2
+ export * from "./PublicS3Bucket.js";
3
3
  export const s3 = {
4
4
  PublicS3Bucket,
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { type CustomResourceOptions, type Input, Resource } from '@pulumi/pulumi';
2
- import { type PublicS3Bucket } from '../s3';
2
+ import { type PublicS3Bucket } from '../s3/index.ts';
3
3
  export interface StaticWebsiteArgs {
4
4
  projectId: string;
5
5
  environmentName: string;
@@ -1,9 +1,9 @@
1
1
  import { Resource } from '@pulumi/pulumi';
2
- import { s3 } from '../s3';
2
+ import { s3 } from "../s3/index.js";
3
3
  import { BucketObject } from '@pulumi/aws/s3';
4
4
  import { Distribution } from '@pulumi/aws/cloudfront';
5
5
  import { Record } from '@pulumi/aws/route53';
6
- import { readFilesRecursive } from './readFilesRecursive.js';
6
+ import { readFilesRecursive } from "./readFilesRecursive.js";
7
7
  export class StaticWebsite extends Resource {
8
8
  url;
9
9
  bucket;
@@ -1,5 +1,5 @@
1
- import { StaticWebsite } from './StaticWebsite';
2
- export * from './StaticWebsite';
1
+ import { StaticWebsite } from './StaticWebsite.ts';
2
+ export * from './StaticWebsite.ts';
3
3
  export declare const website: {
4
4
  StaticWebsite: typeof StaticWebsite;
5
5
  };
@@ -1,5 +1,5 @@
1
- import { StaticWebsite } from './StaticWebsite';
2
- export * from './StaticWebsite';
1
+ import { StaticWebsite } from "./StaticWebsite.js";
2
+ export * from "./StaticWebsite.js";
3
3
  export const website = {
4
4
  StaticWebsite,
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { type CustomResourceOptions, type Input, type Output, Resource } from '@pulumi/pulumi';
2
- import type { NodeLambdaFunction } from '../lambda';
2
+ import type { NodeLambdaFunction } from '../lambda/index.ts';
3
3
  export interface WebsocketApiArgs {
4
4
  name: string;
5
5
  lambdaFunction: NodeLambdaFunction;
@@ -1,5 +1,5 @@
1
- import { WebsocketApi } from './WebsocketApi';
2
- export * from './WebsocketApi';
1
+ import { WebsocketApi } from './WebsocketApi.ts';
2
+ export * from './WebsocketApi.ts';
3
3
  export declare const websocket: {
4
4
  WebsocketApi: typeof WebsocketApi;
5
5
  };
@@ -1,5 +1,5 @@
1
- import { WebsocketApi } from './WebsocketApi';
2
- export * from './WebsocketApi';
1
+ import { WebsocketApi } from "./WebsocketApi.js";
2
+ export * from "./WebsocketApi.js";
3
3
  export const websocket = {
4
4
  WebsocketApi,
5
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mstuercke/pulumi-modules",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "files": [
5
5
  "dist/**/!(*.test|*.fixture){.d.ts,.js}",
6
6
  "README.md"
@@ -12,18 +12,16 @@
12
12
  },
13
13
  "scripts": {
14
14
  "typeCheck": "tsc --noEmit",
15
- "build": "tsc",
16
- "bump:major": "npm version major --git-tag-version false",
17
- "bump:minor": "npm version minor --git-tag-version false",
18
- "bump:patch": "npm version patch --git-tag-version false",
19
- "release": "bun run --tsconfig-override ./tsconfig.scripts.json scripts/release.ts"
15
+ "build": "tsc -p tsconfig.build.json",
16
+ "release": "node --no-warnings --loader ts-node/esm scripts/release.ts"
20
17
  },
21
18
  "dependencies": {
19
+ "@mstuercke/pulumi-neon": "0.0.1",
22
20
  "@pulumi/archive": "^0.3.0",
23
21
  "@pulumi/auth0": "^3.8.1",
24
22
  "@pulumi/aws": "^6.56.1",
25
23
  "@pulumi/mongodbatlas": "^3.20.2",
26
- "@pulumi/pulumi": "^3.137.0",
24
+ "@pulumi/pulumi": "^3.142.0",
27
25
  "@pulumi/random": "^4.16.7",
28
26
  "@pulumiverse/sentry": "^0.0.9",
29
27
  "@types/mime": "^3.0.4",
@@ -31,8 +29,10 @@
31
29
  "mime": "^3.0.0"
32
30
  },
33
31
  "devDependencies": {
34
- "@mstuercke/bun-utils": "7.0.6",
35
- "@types/bun": "1.2.2",
32
+ "@mstuercke/node-utils": "0.0.1",
36
33
  "typescript": "5.7.3"
34
+ },
35
+ "publishConfig": {
36
+ "registry": "https://registry.npmjs.org/"
37
37
  }
38
38
  }