@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.
- package/dist/auth0/index.d.ts +2 -2
- package/dist/auth0/index.js +2 -2
- package/dist/domain/index.d.ts +2 -2
- package/dist/domain/index.js +2 -2
- package/dist/iam/SimpleIamRolePolicy.d.ts +1 -1
- package/dist/iam/index.d.ts +3 -3
- package/dist/iam/index.js +3 -3
- package/dist/index.d.ts +24 -20
- package/dist/index.js +21 -18
- package/dist/lambda/NodeLambdaFunction.d.ts +2 -2
- package/dist/lambda/NodeLambdaFunction.js +1 -1
- package/dist/lambda/index.d.ts +2 -2
- package/dist/lambda/index.js +2 -2
- package/dist/mongodb/index.d.ts +6 -6
- package/dist/mongodb/index.js +6 -6
- package/dist/postgres/Postgres.d.ts +16 -0
- package/dist/postgres/Postgres.js +31 -0
- package/dist/postgres/index.d.ts +6 -0
- package/dist/postgres/index.js +5 -0
- package/dist/rest/RestApi.d.ts +1 -1
- package/dist/rest/index.d.ts +2 -2
- package/dist/rest/index.js +2 -2
- package/dist/s3/index.d.ts +2 -2
- package/dist/s3/index.js +2 -2
- package/dist/website/StaticWebsite.d.ts +1 -1
- package/dist/website/StaticWebsite.js +2 -2
- package/dist/website/index.d.ts +2 -2
- package/dist/website/index.js +2 -2
- package/dist/websocket/WebsocketApi.d.ts +1 -1
- package/dist/websocket/index.d.ts +2 -2
- package/dist/websocket/index.js +2 -2
- package/package.json +9 -9
package/dist/auth0/index.d.ts
CHANGED
package/dist/auth0/index.js
CHANGED
package/dist/domain/index.d.ts
CHANGED
|
@@ -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
|
package/dist/domain/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { iam } from '@pulumi/aws';
|
|
2
|
-
import type { SimpleIamRolePolicyConfig } from './SimpleIamRolePolicyConfig.
|
|
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);
|
package/dist/iam/index.d.ts
CHANGED
|
@@ -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
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
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 './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
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
|
|
2
|
-
import { domain } from
|
|
3
|
-
import { iam } from
|
|
4
|
-
import { rest } from
|
|
5
|
-
import { lambda } from
|
|
6
|
-
import { mongodb } from
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
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.
|
|
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
|
|
4
|
+
import { SimpleIamRolePolicy } from "../iam/index.js";
|
|
5
5
|
export class NodeLambdaFunction extends Resource {
|
|
6
6
|
name;
|
|
7
7
|
arn;
|
package/dist/lambda/index.d.ts
CHANGED
|
@@ -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
|
};
|
package/dist/lambda/index.js
CHANGED
package/dist/mongodb/index.d.ts
CHANGED
|
@@ -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;
|
package/dist/mongodb/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { MongoDBCustomInstance } from
|
|
2
|
-
import { MongoDBDefaultInstance } from
|
|
3
|
-
import { MongoDBUser } from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
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
|
+
}
|
package/dist/rest/RestApi.d.ts
CHANGED
|
@@ -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;
|
package/dist/rest/index.d.ts
CHANGED
package/dist/rest/index.js
CHANGED
package/dist/s3/index.d.ts
CHANGED
package/dist/s3/index.js
CHANGED
|
@@ -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
|
|
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
|
|
6
|
+
import { readFilesRecursive } from "./readFilesRecursive.js";
|
|
7
7
|
export class StaticWebsite extends Resource {
|
|
8
8
|
url;
|
|
9
9
|
bucket;
|
package/dist/website/index.d.ts
CHANGED
package/dist/website/index.js
CHANGED
|
@@ -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;
|
package/dist/websocket/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mstuercke/pulumi-modules",
|
|
3
|
-
"version": "0.0.
|
|
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
|
-
"
|
|
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.
|
|
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/
|
|
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
|
}
|