@stacksjs/cloud 0.67.0 → 0.68.0
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/ai.d.ts +20 -0
- package/dist/cdn.d.ts +271 -0
- package/dist/cli.d.ts +12 -0
- package/dist/compute.d.ts +221 -0
- package/dist/database.d.ts +29 -0
- package/dist/deployment.d.ts +60 -0
- package/dist/dns.d.ts +34 -0
- package/dist/docs.d.ts +34 -0
- package/dist/email.d.ts +336 -0
- package/dist/file-system.d.ts +32 -0
- package/dist/helpers.d.ts +50 -50
- package/dist/index.d.ts +2 -2
- package/dist/index.js +18 -18
- package/dist/jump-box.d.ts +42 -0
- package/dist/network.d.ts +29 -0
- package/dist/origin-request.d.ts +5 -0
- package/dist/permissions.d.ts +25 -0
- package/dist/queue.d.ts +144 -0
- package/dist/redirects.d.ts +45 -0
- package/dist/security.d.ts +149 -0
- package/dist/storage.d.ts +189 -0
- package/dist/types.d.ts +26 -25
- package/package.json +18 -18
- package/dist/cloud/ai.d.ts +0 -6
- package/dist/cloud/cache.d.ts +0 -0
- package/dist/cloud/cdn.d.ts +0 -34
- package/dist/cloud/cli.d.ts +0 -6
- package/dist/cloud/compute.d.ts +0 -17
- package/dist/cloud/dashboard.d.ts +0 -0
- package/dist/cloud/database.d.ts +0 -11
- package/dist/cloud/deployment.d.ts +0 -17
- package/dist/cloud/dns.d.ts +0 -7
- package/dist/cloud/docs.d.ts +0 -8
- package/dist/cloud/email.d.ts +0 -10
- package/dist/cloud/file-system.d.ts +0 -12
- package/dist/cloud/index.d.ts +0 -42
- package/dist/cloud/jump-box.d.ts +0 -12
- package/dist/cloud/network.d.ts +0 -8
- package/dist/cloud/permissions.d.ts +0 -6
- package/dist/cloud/queue.d.ts +0 -22
- package/dist/cloud/redirects.d.ts +0 -8
- package/dist/cloud/search-engine.d.ts +0 -0
- package/dist/cloud/security.d.ts +0 -15
- package/dist/cloud/storage.d.ts +0 -21
- package/dist/edge/origin-request.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/cloud",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.68.0",
|
|
5
5
|
"description": "The Stacks cloud/serverless integration & implementation.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": ["Chris Breuer <chris@stacksjs.org>"],
|
|
@@ -45,20 +45,20 @@
|
|
|
45
45
|
"prepublishOnly": "bun run build"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@aws-sdk/client-bedrock": "^3.
|
|
49
|
-
"@aws-sdk/client-cloudformation": "^3.
|
|
50
|
-
"@aws-sdk/client-cloudfront": "^3.
|
|
51
|
-
"@aws-sdk/client-cloudwatch-logs": "^3.
|
|
52
|
-
"@aws-sdk/client-dynamodb": "3.
|
|
53
|
-
"@aws-sdk/client-ec2": "^3.
|
|
54
|
-
"@aws-sdk/client-efs": "^3.
|
|
55
|
-
"@aws-sdk/client-iam": "^3.
|
|
56
|
-
"@aws-sdk/client-lambda": "^3.
|
|
57
|
-
"@aws-sdk/client-route-53-domains": "^3.
|
|
58
|
-
"@aws-sdk/client-s3": "^3.
|
|
59
|
-
"@aws-sdk/client-ses": "^3.
|
|
60
|
-
"@aws-sdk/client-sesv2": "^3.
|
|
61
|
-
"@aws-sdk/client-ssm": "^3.
|
|
48
|
+
"@aws-sdk/client-bedrock": "^3.679.0",
|
|
49
|
+
"@aws-sdk/client-cloudformation": "^3.679.0",
|
|
50
|
+
"@aws-sdk/client-cloudfront": "^3.679.0",
|
|
51
|
+
"@aws-sdk/client-cloudwatch-logs": "^3.680.0",
|
|
52
|
+
"@aws-sdk/client-dynamodb": "3.679.0",
|
|
53
|
+
"@aws-sdk/client-ec2": "^3.679.0",
|
|
54
|
+
"@aws-sdk/client-efs": "^3.679.0",
|
|
55
|
+
"@aws-sdk/client-iam": "^3.679.0",
|
|
56
|
+
"@aws-sdk/client-lambda": "^3.680.0",
|
|
57
|
+
"@aws-sdk/client-route-53-domains": "^3.679.0",
|
|
58
|
+
"@aws-sdk/client-s3": "^3.679.0",
|
|
59
|
+
"@aws-sdk/client-ses": "^3.679.0",
|
|
60
|
+
"@aws-sdk/client-sesv2": "^3.679.0",
|
|
61
|
+
"@aws-sdk/client-ssm": "^3.679.0",
|
|
62
62
|
"@stacksjs/config": "0.67.0",
|
|
63
63
|
"@stacksjs/dns": "0.67.0",
|
|
64
64
|
"@stacksjs/logging": "0.67.0",
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"@stacksjs/storage": "0.67.0",
|
|
68
68
|
"@stacksjs/utils": "0.67.0",
|
|
69
69
|
"@stacksjs/validation": "0.67.0",
|
|
70
|
-
"aws-cdk": "^2.
|
|
71
|
-
"aws-cdk-lib": "^2.
|
|
70
|
+
"aws-cdk": "^2.164.1",
|
|
71
|
+
"aws-cdk-lib": "^2.164.1",
|
|
72
72
|
"aws4fetch": "^1.0.20",
|
|
73
|
-
"constructs": "^10.
|
|
73
|
+
"constructs": "^10.4.2"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@stacksjs/cli": "0.67.0",
|
package/dist/cloud/ai.d.ts
DELETED
package/dist/cloud/cache.d.ts
DELETED
|
File without changes
|
package/dist/cloud/cdn.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { aws_certificatemanager as acm, aws_s3 as s3, aws_wafv2 as wafv2 } from "aws-cdk-lib";
|
|
2
|
-
import type { ApplicationLoadBalancer } from "aws-cdk-lib/aws-elasticloadbalancingv2";
|
|
3
|
-
import type { Construct } from "constructs";
|
|
4
|
-
import type { NestedCloudProps } from "../types";
|
|
5
|
-
import { aws_cloudfront as cloudfront, aws_lambda as lambda, aws_route53 as route53 } from "aws-cdk-lib";
|
|
6
|
-
export interface CdnStackProps extends NestedCloudProps {
|
|
7
|
-
certificate: acm.Certificate;
|
|
8
|
-
logBucket: s3.Bucket;
|
|
9
|
-
publicBucket: s3.Bucket;
|
|
10
|
-
docsBucket?: s3.Bucket;
|
|
11
|
-
firewall: wafv2.CfnWebACL;
|
|
12
|
-
originRequestFunction: lambda.Function;
|
|
13
|
-
zone: route53.IHostedZone;
|
|
14
|
-
webServer?: lambda.Function;
|
|
15
|
-
webServerUrl?: lambda.FunctionUrl;
|
|
16
|
-
lb?: ApplicationLoadBalancer;
|
|
17
|
-
}
|
|
18
|
-
export declare class CdnStack {
|
|
19
|
-
mainDistribution: cloudfront.Distribution;
|
|
20
|
-
docsDistribution: cloudfront.Distribution | undefined;
|
|
21
|
-
cdnCachePolicy: cloudfront.CachePolicy;
|
|
22
|
-
mainVanityUrl: string;
|
|
23
|
-
docsVanityUrl: string | undefined;
|
|
24
|
-
realtimeLogConfig: cloudfront.RealtimeLogConfig;
|
|
25
|
-
props: CdnStackProps;
|
|
26
|
-
constructor(scope: Construct, props: CdnStackProps);
|
|
27
|
-
createDistribution(scope: Construct, props: CdnStackProps, sourceBucket: s3.Bucket, originRequestFunction: lambda.Function, domainName: string, id: string, originAccessControl: cloudfront.S3OriginAccessControl): cloudfront.Distribution;
|
|
28
|
-
createRoute53Records(scope: Construct, props: CdnStackProps): void;
|
|
29
|
-
createOutputs(scope: Construct, props: CdnStackProps): void;
|
|
30
|
-
createDocsOriginRequestFunction(scope: Construct): lambda.Function;
|
|
31
|
-
getCookieBehavior(cookieBehavior: string | undefined): cloudfront.CacheCookieBehavior | undefined;
|
|
32
|
-
allowedMethods(): cloudfront.AllowedMethods;
|
|
33
|
-
cachedMethods(): cloudfront.CachedMethods;
|
|
34
|
-
}
|
package/dist/cloud/cli.d.ts
DELETED
package/dist/cloud/compute.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { aws_certificatemanager as acm, aws_efs as efs } from "aws-cdk-lib";
|
|
2
|
-
import type { Construct } from "constructs";
|
|
3
|
-
import type { NestedCloudProps } from "../types";
|
|
4
|
-
import { aws_ec2 as ec2, aws_ecs as ecs, aws_route53 as route53 } from "aws-cdk-lib";
|
|
5
|
-
import * as elbv2 from "aws-cdk-lib/aws-elasticloadbalancingv2";
|
|
6
|
-
export interface ComputeStackProps extends NestedCloudProps {
|
|
7
|
-
vpc: ec2.Vpc;
|
|
8
|
-
fileSystem: efs.FileSystem;
|
|
9
|
-
zone: route53.IHostedZone;
|
|
10
|
-
certificate: acm.Certificate;
|
|
11
|
-
}
|
|
12
|
-
export declare class ComputeStack {
|
|
13
|
-
lb: elbv2.ApplicationLoadBalancer;
|
|
14
|
-
cluster: ecs.Cluster;
|
|
15
|
-
taskDefinition: ecs.FargateTaskDefinition;
|
|
16
|
-
constructor(scope: Construct, props: ComputeStackProps);
|
|
17
|
-
}
|
|
File without changes
|
package/dist/cloud/database.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { aws_ec2 as ec2 } from "aws-cdk-lib";
|
|
2
|
-
import type { Construct } from "constructs";
|
|
3
|
-
import type { NestedCloudProps } from "../types";
|
|
4
|
-
import { aws_dynamodb as dynamodb } from "aws-cdk-lib";
|
|
5
|
-
export interface DatabaseStackProps extends NestedCloudProps {
|
|
6
|
-
vpc: ec2.Vpc;
|
|
7
|
-
}
|
|
8
|
-
export declare class DatabaseStack {
|
|
9
|
-
database: dynamodb.Table;
|
|
10
|
-
constructor(scope: Construct, props: DatabaseStackProps);
|
|
11
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { aws_cloudfront as cloudfront, aws_s3 as s3 } from "aws-cdk-lib";
|
|
2
|
-
import type { Construct } from "constructs";
|
|
3
|
-
import type { NestedCloudProps } from "../types";
|
|
4
|
-
export interface DeploymentStackProps extends NestedCloudProps {
|
|
5
|
-
publicBucket: s3.Bucket;
|
|
6
|
-
docsBucket?: s3.Bucket;
|
|
7
|
-
privateBucket: s3.Bucket;
|
|
8
|
-
mainDistribution: cloudfront.Distribution;
|
|
9
|
-
docsDistribution?: cloudfront.Distribution;
|
|
10
|
-
}
|
|
11
|
-
export declare class DeploymentStack {
|
|
12
|
-
privateSource: string;
|
|
13
|
-
docsSource: string;
|
|
14
|
-
publicSource: string;
|
|
15
|
-
constructor(scope: Construct, props: DeploymentStackProps);
|
|
16
|
-
shouldDeployDocs(): boolean;
|
|
17
|
-
}
|
package/dist/cloud/dns.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Construct } from "constructs";
|
|
2
|
-
import type { NestedCloudProps } from "../types";
|
|
3
|
-
import { aws_route53 as route53 } from "aws-cdk-lib";
|
|
4
|
-
export declare class DnsStack {
|
|
5
|
-
zone: route53.IHostedZone;
|
|
6
|
-
constructor(scope: Construct, props: NestedCloudProps);
|
|
7
|
-
}
|
package/dist/cloud/docs.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Construct } from "constructs";
|
|
2
|
-
import type { NestedCloudProps } from "../types";
|
|
3
|
-
import { aws_lambda as lambda } from "aws-cdk-lib";
|
|
4
|
-
export interface DocsStackProps extends NestedCloudProps {}
|
|
5
|
-
export declare class DocsStack {
|
|
6
|
-
originRequestFunction: lambda.Function;
|
|
7
|
-
constructor(scope: Construct, props: DocsStackProps);
|
|
8
|
-
}
|
package/dist/cloud/email.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Construct } from "constructs";
|
|
2
|
-
import type { NestedCloudProps } from "../types";
|
|
3
|
-
import { aws_route53 as route53, aws_s3 as s3 } from "aws-cdk-lib";
|
|
4
|
-
export interface EmailStackProps extends NestedCloudProps {
|
|
5
|
-
zone: route53.IHostedZone;
|
|
6
|
-
}
|
|
7
|
-
export declare class EmailStack {
|
|
8
|
-
emailBucket: s3.Bucket;
|
|
9
|
-
constructor(scope: Construct, props: EmailStackProps);
|
|
10
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { aws_ec2 as ec2 } from "aws-cdk-lib";
|
|
2
|
-
import type { Construct } from "constructs";
|
|
3
|
-
import type { NestedCloudProps } from "../types";
|
|
4
|
-
import { aws_efs as efs } from "aws-cdk-lib";
|
|
5
|
-
export interface FileSystemStackProps extends NestedCloudProps {
|
|
6
|
-
vpc: ec2.Vpc;
|
|
7
|
-
}
|
|
8
|
-
export declare class FileSystemStack {
|
|
9
|
-
fileSystem: efs.FileSystem;
|
|
10
|
-
accessPoint: efs.AccessPoint;
|
|
11
|
-
constructor(scope: Construct, props: FileSystemStackProps);
|
|
12
|
-
}
|
package/dist/cloud/index.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { Construct } from "constructs";
|
|
2
|
-
import type { CloudOptions } from "../types";
|
|
3
|
-
import { Stack } from "aws-cdk-lib";
|
|
4
|
-
import { AiStack } from "./ai";
|
|
5
|
-
import { CdnStack } from "./cdn";
|
|
6
|
-
import { CliStack } from "./cli";
|
|
7
|
-
import { ComputeStack } from "./compute";
|
|
8
|
-
import { DeploymentStack } from "./deployment";
|
|
9
|
-
import { DnsStack } from "./dns";
|
|
10
|
-
import { DocsStack } from "./docs";
|
|
11
|
-
import { EmailStack } from "./email";
|
|
12
|
-
import { FileSystemStack } from "./file-system";
|
|
13
|
-
import { JumpBoxStack } from "./jump-box";
|
|
14
|
-
import { NetworkStack } from "./network";
|
|
15
|
-
import { PermissionsStack } from "./permissions";
|
|
16
|
-
import { QueueStack } from "./queue";
|
|
17
|
-
import { RedirectsStack } from "./redirects";
|
|
18
|
-
import { SecurityStack } from "./security";
|
|
19
|
-
import { StorageStack } from "./storage";
|
|
20
|
-
export declare class Cloud extends Stack {
|
|
21
|
-
dns: DnsStack;
|
|
22
|
-
security: SecurityStack;
|
|
23
|
-
storage: StorageStack;
|
|
24
|
-
network: NetworkStack;
|
|
25
|
-
fileSystem: FileSystemStack;
|
|
26
|
-
jumpBox: JumpBoxStack;
|
|
27
|
-
docs: DocsStack;
|
|
28
|
-
email: EmailStack;
|
|
29
|
-
redirects: RedirectsStack;
|
|
30
|
-
permissions: PermissionsStack;
|
|
31
|
-
ai: AiStack;
|
|
32
|
-
cli: CliStack;
|
|
33
|
-
api?: ComputeStack;
|
|
34
|
-
cdn: CdnStack;
|
|
35
|
-
queue?: QueueStack;
|
|
36
|
-
deployment: DeploymentStack;
|
|
37
|
-
scope: Construct;
|
|
38
|
-
props: CloudOptions;
|
|
39
|
-
constructor(scope: Construct, id: string, props: CloudOptions);
|
|
40
|
-
init(): Promise<void>;
|
|
41
|
-
shouldDeployApi(): boolean;
|
|
42
|
-
}
|
package/dist/cloud/jump-box.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { aws_efs as efs } from "aws-cdk-lib";
|
|
2
|
-
import type { Construct } from "constructs";
|
|
3
|
-
import type { NestedCloudProps } from "../types";
|
|
4
|
-
import { aws_ec2 as ec2 } from "aws-cdk-lib";
|
|
5
|
-
export interface JumpBoxStackProps extends NestedCloudProps {
|
|
6
|
-
vpc: ec2.Vpc;
|
|
7
|
-
fileSystem: efs.FileSystem;
|
|
8
|
-
}
|
|
9
|
-
export declare class JumpBoxStack {
|
|
10
|
-
jumpBox?: ec2.Instance;
|
|
11
|
-
constructor(scope: Construct, props: JumpBoxStackProps);
|
|
12
|
-
}
|
package/dist/cloud/network.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Construct } from "constructs";
|
|
2
|
-
import type { NestedCloudProps } from "../types";
|
|
3
|
-
import { aws_ec2 as ec2 } from "aws-cdk-lib";
|
|
4
|
-
export interface NetworkStackProps extends NestedCloudProps {}
|
|
5
|
-
export declare class NetworkStack {
|
|
6
|
-
vpc: ec2.Vpc;
|
|
7
|
-
constructor(scope: Construct, props: NetworkStackProps);
|
|
8
|
-
}
|
package/dist/cloud/queue.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { Cluster, TaskDefinition } from "aws-cdk-lib/aws-ecs";
|
|
2
|
-
import type { Construct } from "constructs";
|
|
3
|
-
import type { NestedCloudProps } from "../types";
|
|
4
|
-
export interface QueueStackProps extends NestedCloudProps {
|
|
5
|
-
cluster: Cluster;
|
|
6
|
-
taskDefinition: TaskDefinition;
|
|
7
|
-
}
|
|
8
|
-
export declare class QueueStack {
|
|
9
|
-
scope: Construct;
|
|
10
|
-
props: QueueStackProps;
|
|
11
|
-
constructor(scope: Construct, props: QueueStackProps);
|
|
12
|
-
init(): Promise<void>;
|
|
13
|
-
cronScheduleFromRate(rate: string): {
|
|
14
|
-
minute?: string;
|
|
15
|
-
hour?: string;
|
|
16
|
-
month?: string;
|
|
17
|
-
weekDay?: string;
|
|
18
|
-
year?: string;
|
|
19
|
-
};
|
|
20
|
-
loadModule(filePath: string): Promise<{ default: any }>;
|
|
21
|
-
createQueueRule(module: { default: any }, file: string): void;
|
|
22
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Construct } from "constructs";
|
|
2
|
-
import type { NestedCloudProps } from "../types";
|
|
3
|
-
import { aws_route53 as route53 } from "aws-cdk-lib";
|
|
4
|
-
export interface RedirectsStackProps extends NestedCloudProps {}
|
|
5
|
-
export declare class RedirectsStack {
|
|
6
|
-
redirectZones: route53.IHostedZone[];
|
|
7
|
-
constructor(scope: Construct, props: RedirectsStackProps);
|
|
8
|
-
}
|
|
File without changes
|
package/dist/cloud/security.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { aws_route53 as route53 } from "aws-cdk-lib";
|
|
2
|
-
import type { Construct } from "constructs";
|
|
3
|
-
import type { NestedCloudProps } from "../types";
|
|
4
|
-
import { aws_certificatemanager as acm, aws_cloudfront as cloudfront, aws_kms as kms, aws_wafv2 as wafv2 } from "aws-cdk-lib";
|
|
5
|
-
export interface StorageStackProps extends NestedCloudProps {
|
|
6
|
-
zone: route53.IHostedZone;
|
|
7
|
-
}
|
|
8
|
-
export declare class SecurityStack {
|
|
9
|
-
firewall: wafv2.CfnWebACL;
|
|
10
|
-
kmsKey: kms.Key;
|
|
11
|
-
certificate: acm.Certificate;
|
|
12
|
-
originAccessIdentity: cloudfront.OriginAccessIdentity;
|
|
13
|
-
constructor(scope: Construct, props: StorageStackProps);
|
|
14
|
-
getFirewallRules(scope: Construct): wafv2.CfnWebACL.RuleProperty[];
|
|
15
|
-
}
|
package/dist/cloud/storage.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { aws_cloudfront as cloudfront, aws_kms as kms } from "aws-cdk-lib";
|
|
2
|
-
import type { Construct } from "constructs";
|
|
3
|
-
import type { NestedCloudProps } from "../types";
|
|
4
|
-
import { aws_backup as backup, aws_iam as iam, aws_s3 as s3 } from "aws-cdk-lib";
|
|
5
|
-
export interface StorageStackProps extends NestedCloudProps {
|
|
6
|
-
kmsKey: kms.Key;
|
|
7
|
-
originAccessIdentity: cloudfront.OriginAccessIdentity;
|
|
8
|
-
}
|
|
9
|
-
export declare class StorageStack {
|
|
10
|
-
publicBucket: s3.Bucket;
|
|
11
|
-
privateBucket: s3.Bucket;
|
|
12
|
-
docsBucket?: s3.Bucket;
|
|
13
|
-
logBucket: s3.Bucket;
|
|
14
|
-
bucketPrefix: string;
|
|
15
|
-
vault: backup.BackupVault;
|
|
16
|
-
backupPlan: backup.BackupPlan;
|
|
17
|
-
backupRole: iam.Role;
|
|
18
|
-
constructor(scope: Construct, props: StorageStackProps);
|
|
19
|
-
createBackupRole(scope: Construct): iam.Role;
|
|
20
|
-
shouldDeployDocs(): boolean;
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function handler(event: any, context: any, callback: any): void;
|