@stacksjs/ts-cloud 0.1.1
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/LICENSE.md +21 -0
- package/README.md +321 -0
- package/bin/cli.ts +133 -0
- package/bin/commands/analytics.ts +328 -0
- package/bin/commands/api.ts +379 -0
- package/bin/commands/assets.ts +221 -0
- package/bin/commands/audit.ts +501 -0
- package/bin/commands/backup.ts +682 -0
- package/bin/commands/cache.ts +294 -0
- package/bin/commands/cdn.ts +281 -0
- package/bin/commands/config.ts +202 -0
- package/bin/commands/container.ts +105 -0
- package/bin/commands/cost.ts +208 -0
- package/bin/commands/database.ts +401 -0
- package/bin/commands/deploy.ts +674 -0
- package/bin/commands/domain.ts +397 -0
- package/bin/commands/email.ts +423 -0
- package/bin/commands/environment.ts +285 -0
- package/bin/commands/events.ts +424 -0
- package/bin/commands/firewall.ts +145 -0
- package/bin/commands/function.ts +116 -0
- package/bin/commands/generate.ts +280 -0
- package/bin/commands/git.ts +139 -0
- package/bin/commands/iam.ts +464 -0
- package/bin/commands/index.ts +48 -0
- package/bin/commands/init.ts +120 -0
- package/bin/commands/logs.ts +148 -0
- package/bin/commands/network.ts +579 -0
- package/bin/commands/notify.ts +489 -0
- package/bin/commands/queue.ts +407 -0
- package/bin/commands/scheduler.ts +370 -0
- package/bin/commands/secrets.ts +54 -0
- package/bin/commands/server.ts +629 -0
- package/bin/commands/shared.ts +97 -0
- package/bin/commands/ssl.ts +138 -0
- package/bin/commands/stack.ts +325 -0
- package/bin/commands/status.ts +385 -0
- package/bin/commands/storage.ts +450 -0
- package/bin/commands/team.ts +96 -0
- package/bin/commands/tunnel.ts +489 -0
- package/bin/commands/utils.ts +202 -0
- package/build.ts +15 -0
- package/cloud +2 -0
- package/package.json +99 -0
- package/src/aws/acm.ts +768 -0
- package/src/aws/application-autoscaling.ts +845 -0
- package/src/aws/bedrock.ts +4074 -0
- package/src/aws/client.ts +878 -0
- package/src/aws/cloudformation.ts +896 -0
- package/src/aws/cloudfront.ts +1531 -0
- package/src/aws/cloudwatch-logs.ts +154 -0
- package/src/aws/comprehend.ts +839 -0
- package/src/aws/connect.ts +1056 -0
- package/src/aws/deploy-imap.ts +384 -0
- package/src/aws/dynamodb.ts +340 -0
- package/src/aws/ec2.ts +1385 -0
- package/src/aws/ecr.ts +621 -0
- package/src/aws/ecs.ts +615 -0
- package/src/aws/elasticache.ts +301 -0
- package/src/aws/elbv2.ts +942 -0
- package/src/aws/email.ts +928 -0
- package/src/aws/eventbridge.ts +248 -0
- package/src/aws/iam.ts +1689 -0
- package/src/aws/imap-server.ts +2100 -0
- package/src/aws/index.ts +213 -0
- package/src/aws/kendra.ts +1097 -0
- package/src/aws/lambda.ts +786 -0
- package/src/aws/opensearch.ts +158 -0
- package/src/aws/personalize.ts +977 -0
- package/src/aws/polly.ts +559 -0
- package/src/aws/rds.ts +888 -0
- package/src/aws/rekognition.ts +846 -0
- package/src/aws/route53-domains.ts +359 -0
- package/src/aws/route53.ts +1046 -0
- package/src/aws/s3.ts +2318 -0
- package/src/aws/scheduler.ts +571 -0
- package/src/aws/secrets-manager.ts +769 -0
- package/src/aws/ses.ts +1081 -0
- package/src/aws/setup-phone.ts +104 -0
- package/src/aws/setup-sms.ts +580 -0
- package/src/aws/sms.ts +1735 -0
- package/src/aws/smtp-server.ts +531 -0
- package/src/aws/sns.ts +758 -0
- package/src/aws/sqs.ts +382 -0
- package/src/aws/ssm.ts +807 -0
- package/src/aws/sts.ts +92 -0
- package/src/aws/support.ts +391 -0
- package/src/aws/test-imap.ts +86 -0
- package/src/aws/textract.ts +780 -0
- package/src/aws/transcribe.ts +108 -0
- package/src/aws/translate.ts +641 -0
- package/src/aws/voice.ts +1379 -0
- package/src/config.ts +35 -0
- package/src/deploy/index.ts +7 -0
- package/src/deploy/static-site-external-dns.ts +906 -0
- package/src/deploy/static-site.ts +1125 -0
- package/src/dns/godaddy.ts +412 -0
- package/src/dns/index.ts +183 -0
- package/src/dns/porkbun.ts +362 -0
- package/src/dns/route53-adapter.ts +414 -0
- package/src/dns/types.ts +114 -0
- package/src/dns/validator.ts +369 -0
- package/src/generators/index.ts +5 -0
- package/src/generators/infrastructure.ts +1660 -0
- package/src/index.ts +163 -0
- package/src/push/apns.ts +452 -0
- package/src/push/fcm.ts +506 -0
- package/src/push/index.ts +58 -0
- package/src/ssl/acme-client.ts +478 -0
- package/src/ssl/index.ts +7 -0
- package/src/ssl/letsencrypt.ts +747 -0
- package/src/types.ts +2 -0
- package/src/utils/cli.ts +398 -0
- package/src/validation/index.ts +5 -0
- package/src/validation/template.ts +405 -0
- package/test/index.test.ts +128 -0
- package/tsconfig.json +18 -0
package/build.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { dts } from 'bun-plugin-dtsx'
|
|
2
|
+
|
|
3
|
+
async function build() {
|
|
4
|
+
await Bun.build({
|
|
5
|
+
entrypoints: ['src/index.ts', 'bin/cli.ts'],
|
|
6
|
+
outdir: './dist',
|
|
7
|
+
target: 'node',
|
|
8
|
+
format: 'esm',
|
|
9
|
+
splitting: true,
|
|
10
|
+
minify: true,
|
|
11
|
+
plugins: [dts()],
|
|
12
|
+
})
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
build()
|
package/cloud
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@stacksjs/ts-cloud",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.1.1",
|
|
5
|
+
"description": "A lightweight, performant infrastructure-as-code library and CLI for deploying both server-based (EC2) and serverless applications.",
|
|
6
|
+
"author": "Chris Breuer <chris@stacksjs.com>",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"homepage": "https://github.com/stacksjs/cloud#readme",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/stacksjs/cloud.git"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/stacksjs/cloud/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"typescript",
|
|
18
|
+
"aws",
|
|
19
|
+
"cloudformation",
|
|
20
|
+
"infrastructure",
|
|
21
|
+
"bun",
|
|
22
|
+
"serverless",
|
|
23
|
+
"ec2",
|
|
24
|
+
"forge",
|
|
25
|
+
"vapor",
|
|
26
|
+
"iac"
|
|
27
|
+
],
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"import": "./src/index.ts"
|
|
32
|
+
},
|
|
33
|
+
"./aws": {
|
|
34
|
+
"types": "./src/aws/index.ts",
|
|
35
|
+
"import": "./src/aws/index.ts"
|
|
36
|
+
},
|
|
37
|
+
"./deploy": {
|
|
38
|
+
"types": "./src/deploy/index.ts",
|
|
39
|
+
"import": "./src/deploy/index.ts"
|
|
40
|
+
},
|
|
41
|
+
"./dns": {
|
|
42
|
+
"types": "./src/dns/index.ts",
|
|
43
|
+
"import": "./src/dns/index.ts"
|
|
44
|
+
},
|
|
45
|
+
"./push": {
|
|
46
|
+
"types": "./src/push/index.ts",
|
|
47
|
+
"import": "./src/push/index.ts"
|
|
48
|
+
},
|
|
49
|
+
"./*": {
|
|
50
|
+
"import": "./src/*"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"module": "./src/index.ts",
|
|
54
|
+
"types": "./dist/index.d.ts",
|
|
55
|
+
"bin": {
|
|
56
|
+
"cloud": "./dist/bin/cli.js"
|
|
57
|
+
},
|
|
58
|
+
"files": [
|
|
59
|
+
"README.md",
|
|
60
|
+
"dist"
|
|
61
|
+
],
|
|
62
|
+
"scripts": {
|
|
63
|
+
"build": "bun --bun build.ts && bun run compile",
|
|
64
|
+
"compile": "bun build ./bin/cli.ts --compile --minify --outfile bin/cloud",
|
|
65
|
+
"compile:all": "bun run compile:linux-x64 && bun run compile:linux-arm64 && bun run compile:windows-x64 && bun run compile:darwin-x64 && bun run compile:darwin-arm64",
|
|
66
|
+
"compile:linux-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-linux-x64 --outfile bin/cloud-linux-x64",
|
|
67
|
+
"compile:linux-arm64": "bun build ./bin/cli.ts --compile --minify --target=bun-linux-arm64 --outfile bin/cloud-linux-arm64",
|
|
68
|
+
"compile:windows-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-windows-x64 --outfile bin/cloud-windows-x64.exe",
|
|
69
|
+
"compile:darwin-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-darwin-x64 --outfile bin/cloud-darwin-x64",
|
|
70
|
+
"compile:darwin-arm64": "bun build ./bin/cli.ts --compile --minify --target=bun-darwin-arm64 --outfile bin/cloud-darwin-arm64",
|
|
71
|
+
"zip": "bun run zip:all",
|
|
72
|
+
"zip:all": "bun run zip:linux-x64 && bun run zip:linux-arm64 && bun run zip:windows-x64 && bun run zip:darwin-x64 && bun run zip:darwin-arm64",
|
|
73
|
+
"zip:linux-x64": "zip -j bin/cloud-linux-x64.zip bin/cloud-linux-x64",
|
|
74
|
+
"zip:linux-arm64": "zip -j bin/cloud-linux-arm64.zip bin/cloud-linux-arm64",
|
|
75
|
+
"zip:windows-x64": "zip -j bin/cloud-windows-x64.zip bin/cloud-windows-x64.exe",
|
|
76
|
+
"zip:darwin-x64": "zip -j bin/cloud-darwin-x64.zip bin/cloud-darwin-x64",
|
|
77
|
+
"zip:darwin-arm64": "zip -j bin/cloud-darwin-arm64.zip bin/cloud-darwin-arm64",
|
|
78
|
+
"lint": "bunx --bun pickier lint .",
|
|
79
|
+
"lint:fix": "bunx --bun pickier lint . --fix",
|
|
80
|
+
"format": "bunx --bun pickier format .",
|
|
81
|
+
"format:fix": "bunx --bun pickier format . --write",
|
|
82
|
+
"fresh": "bunx rimraf node_modules/ bun.lock && bun i",
|
|
83
|
+
"prepublishOnly": "bun --bun run build && bun run compile:all && bun run zip",
|
|
84
|
+
"test": "bun test"
|
|
85
|
+
},
|
|
86
|
+
"dependencies": {
|
|
87
|
+
"@stacksjs/ts-cloud-aws-types": "workspace:*",
|
|
88
|
+
"@stacksjs/ts-cloud-core": "workspace:*",
|
|
89
|
+
"@stacksjs/ts-cloud-types": "workspace:*",
|
|
90
|
+
"fast-xml-parser": "^5.3.4"
|
|
91
|
+
},
|
|
92
|
+
"devDependencies": {
|
|
93
|
+
"bunfig": "^0.15.6",
|
|
94
|
+
"better-dx": "^0.2.5"
|
|
95
|
+
},
|
|
96
|
+
"lint-staged": {
|
|
97
|
+
"*.{js,ts,json,yaml,yml,md}": "bunx --bun pickier lint --fix"
|
|
98
|
+
}
|
|
99
|
+
}
|