@sst-community/sst 4.19.0 → 5.0.0-alpha.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/README.md +92 -52
- package/package.json +35 -11
- package/platform/js/chunks/chunk-HIZZCEDS.js +328 -0
- package/platform/js/chunks/chunk-HIZZCEDS.js.map +6 -0
- package/platform/js/chunks/chunk-KOKHGKJ2.js +639 -0
- package/platform/js/chunks/chunk-KOKHGKJ2.js.map +6 -0
- package/platform/js/chunks/chunk-ONNI4XNK.js +367 -0
- package/platform/js/chunks/chunk-ONNI4XNK.js.map +6 -0
- package/platform/js/chunks/chunk-VIFHC73J.js +108 -0
- package/platform/js/chunks/chunk-VIFHC73J.js.map +6 -0
- package/platform/js/chunks/chunk-WJ6BVA46.js +10 -0
- package/platform/js/chunks/chunk-WJ6BVA46.js.map +6 -0
- package/platform/js/chunks/chunk-ZOXXXME5.js +472 -0
- package/platform/js/chunks/chunk-ZOXXXME5.js.map +6 -0
- package/platform/js/chunks/component-32FCLIRK.js +26 -0
- package/platform/js/chunks/component-32FCLIRK.js.map +6 -0
- package/platform/js/chunks/config-DMGMTLNB.js +10 -0
- package/platform/js/chunks/config-DMGMTLNB.js.map +6 -0
- package/platform/js/chunks/link-OJ3RNGQ3.js +9 -0
- package/platform/js/chunks/link-OJ3RNGQ3.js.map +6 -0
- package/platform/js/components/aws/index.js +35362 -0
- package/platform/js/components/aws/index.js.map +6 -0
- package/platform/js/components/cloudflare/index.js +3246 -0
- package/platform/js/components/cloudflare/index.js.map +6 -0
- package/platform/js/components/core.js +114 -0
- package/platform/js/components/core.js.map +6 -0
- package/platform/js/components/vercel/index.js +120 -0
- package/platform/js/components/vercel/index.js.map +6 -0
- package/platform/js/testing/index.js +569 -0
- package/platform/js/testing/index.js.map +6 -0
- package/platform/package.json +25 -0
- package/platform/src/ast/add.mjs +190 -0
- package/platform/src/auto/run.ts +109 -0
- package/platform/src/components/README.md +652 -0
- package/platform/src/components/args.ts +133 -0
- package/platform/src/components/aws/alb.ts +577 -0
- package/platform/src/components/aws/analog.ts +462 -0
- package/platform/src/components/aws/apigateway-websocket-route.ts +206 -0
- package/platform/src/components/aws/apigateway-websocket.ts +894 -0
- package/platform/src/components/aws/apigatewayv1-api-key.ts +90 -0
- package/platform/src/components/aws/apigatewayv1-authorizer.ts +178 -0
- package/platform/src/components/aws/apigatewayv1-base-route.ts +78 -0
- package/platform/src/components/aws/apigatewayv1-integration-route.ts +92 -0
- package/platform/src/components/aws/apigatewayv1-lambda-route.ts +152 -0
- package/platform/src/components/aws/apigatewayv1-usage-plan.ts +109 -0
- package/platform/src/components/aws/apigatewayv1.ts +1691 -0
- package/platform/src/components/aws/apigatewayv2-authorizer.ts +199 -0
- package/platform/src/components/aws/apigatewayv2-base-route.ts +69 -0
- package/platform/src/components/aws/apigatewayv2-lambda-route.ts +141 -0
- package/platform/src/components/aws/apigatewayv2-private-route.ts +101 -0
- package/platform/src/components/aws/apigatewayv2-url-route.ts +90 -0
- package/platform/src/components/aws/apigatewayv2.ts +1439 -0
- package/platform/src/components/aws/app-sync-data-source.ts +264 -0
- package/platform/src/components/aws/app-sync-function.ts +79 -0
- package/platform/src/components/aws/app-sync-resolver.ts +110 -0
- package/platform/src/components/aws/app-sync.ts +849 -0
- package/platform/src/components/aws/astro.ts +580 -0
- package/platform/src/components/aws/aurora.ts +1356 -0
- package/platform/src/components/aws/auth-v1.ts +69 -0
- package/platform/src/components/aws/auth.ts +417 -0
- package/platform/src/components/aws/bucket-lambda-subscriber.ts +162 -0
- package/platform/src/components/aws/bucket-notification.ts +254 -0
- package/platform/src/components/aws/bucket-queue-subscriber.ts +122 -0
- package/platform/src/components/aws/bucket-topic-subscriber.ts +144 -0
- package/platform/src/components/aws/bucket.ts +2046 -0
- package/platform/src/components/aws/bus-base-subscriber.ts +52 -0
- package/platform/src/components/aws/bus-lambda-subscriber.ts +125 -0
- package/platform/src/components/aws/bus-queue-subscriber.ts +88 -0
- package/platform/src/components/aws/bus.ts +630 -0
- package/platform/src/components/aws/cdn.ts +561 -0
- package/platform/src/components/aws/cluster-v1.ts +932 -0
- package/platform/src/components/aws/cluster.ts +584 -0
- package/platform/src/components/aws/cognito-identity-pool.ts +433 -0
- package/platform/src/components/aws/cognito-identity-provider.ts +96 -0
- package/platform/src/components/aws/cognito-user-pool-client.ts +114 -0
- package/platform/src/components/aws/cognito-user-pool.ts +1089 -0
- package/platform/src/components/aws/cron-v2.ts +555 -0
- package/platform/src/components/aws/cron.ts +435 -0
- package/platform/src/components/aws/dns-validated-certificate.ts +108 -0
- package/platform/src/components/aws/dns.ts +221 -0
- package/platform/src/components/aws/dsql.ts +741 -0
- package/platform/src/components/aws/dynamo-lambda-subscriber.ts +124 -0
- package/platform/src/components/aws/dynamo.ts +929 -0
- package/platform/src/components/aws/efs.ts +410 -0
- package/platform/src/components/aws/email.ts +673 -0
- package/platform/src/components/aws/fargate.ts +1279 -0
- package/platform/src/components/aws/function.ts +3227 -0
- package/platform/src/components/aws/helpers/apigateway-account.ts +78 -0
- package/platform/src/components/aws/helpers/apigatewayv2-domain.ts +144 -0
- package/platform/src/components/aws/helpers/arn.ts +182 -0
- package/platform/src/components/aws/helpers/bootstrap.ts +16 -0
- package/platform/src/components/aws/helpers/client.ts +76 -0
- package/platform/src/components/aws/helpers/container-builder.ts +33 -0
- package/platform/src/components/aws/helpers/custom-domain.ts +128 -0
- package/platform/src/components/aws/helpers/event-source.ts +41 -0
- package/platform/src/components/aws/helpers/fargate.ts +727 -0
- package/platform/src/components/aws/helpers/function-builder.ts +133 -0
- package/platform/src/components/aws/helpers/function-code.ts +224 -0
- package/platform/src/components/aws/helpers/function-part.ts +202 -0
- package/platform/src/components/aws/helpers/function-permission.ts +29 -0
- package/platform/src/components/aws/helpers/load-balancer-args.ts +88 -0
- package/platform/src/components/aws/helpers/load-balancer.ts +17 -0
- package/platform/src/components/aws/helpers/provider.ts +36 -0
- package/platform/src/components/aws/helpers/queue-policy.ts +33 -0
- package/platform/src/components/aws/helpers/rds.ts +212 -0
- package/platform/src/components/aws/helpers/site-builder.ts +41 -0
- package/platform/src/components/aws/helpers/subscriber.ts +23 -0
- package/platform/src/components/aws/helpers/vpc.ts +27 -0
- package/platform/src/components/aws/https-redirect.ts +216 -0
- package/platform/src/components/aws/iam-edit.ts +50 -0
- package/platform/src/components/aws/index.ts +61 -0
- package/platform/src/components/aws/kinesis-stream-lambda-subscriber.ts +122 -0
- package/platform/src/components/aws/kinesis-stream.ts +416 -0
- package/platform/src/components/aws/linkable.ts +32 -0
- package/platform/src/components/aws/logging.ts +25 -0
- package/platform/src/components/aws/microvm.ts +988 -0
- package/platform/src/components/aws/mysql.ts +1047 -0
- package/platform/src/components/aws/nextjs.ts +1052 -0
- package/platform/src/components/aws/nuxt.ts +527 -0
- package/platform/src/components/aws/open-search.ts +603 -0
- package/platform/src/components/aws/opencontrol.ts +235 -0
- package/platform/src/components/aws/permission.ts +80 -0
- package/platform/src/components/aws/postgres-v1.ts +537 -0
- package/platform/src/components/aws/postgres.ts +1074 -0
- package/platform/src/components/aws/providers/bucket-files.ts +32 -0
- package/platform/src/components/aws/providers/distribution-deployment-waiter.ts +27 -0
- package/platform/src/components/aws/providers/distribution-invalidation.ts +24 -0
- package/platform/src/components/aws/providers/function-environment-update.ts +46 -0
- package/platform/src/components/aws/providers/hosted-zone-lookup.ts +25 -0
- package/platform/src/components/aws/providers/kv-keys.ts +15 -0
- package/platform/src/components/aws/providers/kv-routes-update.ts +24 -0
- package/platform/src/components/aws/providers/microvm-image-prune.ts +48 -0
- package/platform/src/components/aws/providers/origin-access-control.ts +21 -0
- package/platform/src/components/aws/providers/rds-role-lookup.ts +21 -0
- package/platform/src/components/aws/providers/vector-table.ts +25 -0
- package/platform/src/components/aws/queue-lambda-subscriber.ts +135 -0
- package/platform/src/components/aws/queue.ts +712 -0
- package/platform/src/components/aws/react.ts +510 -0
- package/platform/src/components/aws/realtime-lambda-subscriber.ts +129 -0
- package/platform/src/components/aws/realtime.ts +345 -0
- package/platform/src/components/aws/redis-v1.ts +595 -0
- package/platform/src/components/aws/redis.ts +1078 -0
- package/platform/src/components/aws/remix.ts +576 -0
- package/platform/src/components/aws/router-base-route.ts +83 -0
- package/platform/src/components/aws/router-bucket-route.ts +63 -0
- package/platform/src/components/aws/router-url-route.ts +75 -0
- package/platform/src/components/aws/router.ts +3281 -0
- package/platform/src/components/aws/service-v1.ts +876 -0
- package/platform/src/components/aws/service.ts +2994 -0
- package/platform/src/components/aws/sns-topic-lambda-subscriber.ts +127 -0
- package/platform/src/components/aws/sns-topic-queue-subscriber.ts +105 -0
- package/platform/src/components/aws/sns-topic.ts +700 -0
- package/platform/src/components/aws/solid-start.ts +467 -0
- package/platform/src/components/aws/ssr-site.ts +2204 -0
- package/platform/src/components/aws/static-site.ts +1389 -0
- package/platform/src/components/aws/step-functions/choice.ts +123 -0
- package/platform/src/components/aws/step-functions/fail.ts +69 -0
- package/platform/src/components/aws/step-functions/map.ts +264 -0
- package/platform/src/components/aws/step-functions/parallel.ts +170 -0
- package/platform/src/components/aws/step-functions/pass.ts +48 -0
- package/platform/src/components/aws/step-functions/state.ts +376 -0
- package/platform/src/components/aws/step-functions/succeed.ts +31 -0
- package/platform/src/components/aws/step-functions/task.ts +538 -0
- package/platform/src/components/aws/step-functions/wait.ts +105 -0
- package/platform/src/components/aws/step-functions.ts +804 -0
- package/platform/src/components/aws/svelte-kit.ts +563 -0
- package/platform/src/components/aws/takeover/alb.ts +9 -0
- package/platform/src/components/aws/takeover/apigatewayv2.ts +43 -0
- package/platform/src/components/aws/takeover/app-sync.ts +45 -0
- package/platform/src/components/aws/takeover/aurora.ts +19 -0
- package/platform/src/components/aws/takeover/bucket.ts +94 -0
- package/platform/src/components/aws/takeover/bus.ts +43 -0
- package/platform/src/components/aws/takeover/cognito-user-pool.ts +21 -0
- package/platform/src/components/aws/takeover/cron-v2.ts +9 -0
- package/platform/src/components/aws/takeover/dsql.ts +12 -0
- package/platform/src/components/aws/takeover/dynamo.ts +31 -0
- package/platform/src/components/aws/takeover/efs.ts +9 -0
- package/platform/src/components/aws/takeover/function.ts +21 -0
- package/platform/src/components/aws/takeover/helpers.ts +26 -0
- package/platform/src/components/aws/takeover/index.ts +27 -0
- package/platform/src/components/aws/takeover/mysql.ts +17 -0
- package/platform/src/components/aws/takeover/postgres.ts +17 -0
- package/platform/src/components/aws/takeover/queue.ts +21 -0
- package/platform/src/components/aws/takeover/redis.ts +10 -0
- package/platform/src/components/aws/takeover/service.ts +22 -0
- package/platform/src/components/aws/takeover/sns-topic.ts +27 -0
- package/platform/src/components/aws/takeover/task.ts +13 -0
- package/platform/src/components/aws/tan-stack-start.ts +479 -0
- package/platform/src/components/aws/task.ts +571 -0
- package/platform/src/components/aws/v5/alb.ts +310 -0
- package/platform/src/components/aws/v5/apigatewayv2.ts +845 -0
- package/platform/src/components/aws/v5/app-sync.ts +673 -0
- package/platform/src/components/aws/v5/aurora.ts +855 -0
- package/platform/src/components/aws/v5/bucket.ts +1001 -0
- package/platform/src/components/aws/v5/bus.ts +321 -0
- package/platform/src/components/aws/v5/cluster.ts +230 -0
- package/platform/src/components/aws/v5/cognito-user-pool-client.ts +100 -0
- package/platform/src/components/aws/v5/cognito-user-pool.ts +693 -0
- package/platform/src/components/aws/v5/cron-v2.ts +316 -0
- package/platform/src/components/aws/v5/dsql.ts +665 -0
- package/platform/src/components/aws/v5/dynamo.ts +477 -0
- package/platform/src/components/aws/v5/efs.ts +311 -0
- package/platform/src/components/aws/v5/function.ts +1527 -0
- package/platform/src/components/aws/v5/index.ts +26 -0
- package/platform/src/components/aws/v5/mysql.ts +604 -0
- package/platform/src/components/aws/v5/postgres.ts +612 -0
- package/platform/src/components/aws/v5/queue.ts +271 -0
- package/platform/src/components/aws/v5/redis.ts +550 -0
- package/platform/src/components/aws/v5/service.ts +2209 -0
- package/platform/src/components/aws/v5/sns-topic.ts +284 -0
- package/platform/src/components/aws/v5/task.ts +549 -0
- package/platform/src/components/aws/vector.ts +316 -0
- package/platform/src/components/aws/vpc-v1.ts +580 -0
- package/platform/src/components/aws/vpc.ts +1641 -0
- package/platform/src/components/aws/workflow.ts +421 -0
- package/platform/src/components/base/base-site.ts +101 -0
- package/platform/src/components/base/base-ssr-site.ts +120 -0
- package/platform/src/components/base/base-static-site.ts +314 -0
- package/platform/src/components/cloudflare/account-id.ts +1 -0
- package/platform/src/components/cloudflare/ai.ts +77 -0
- package/platform/src/components/cloudflare/astro.ts +355 -0
- package/platform/src/components/cloudflare/auth.ts +69 -0
- package/platform/src/components/cloudflare/binding.ts +132 -0
- package/platform/src/components/cloudflare/bucket.ts +142 -0
- package/platform/src/components/cloudflare/cron.ts +207 -0
- package/platform/src/components/cloudflare/d1.ts +230 -0
- package/platform/src/components/cloudflare/dns.ts +253 -0
- package/platform/src/components/cloudflare/durable-object.ts +144 -0
- package/platform/src/components/cloudflare/experimental/index.ts +3 -0
- package/platform/src/components/cloudflare/experimental/solid-start.ts +288 -0
- package/platform/src/components/cloudflare/experimental/static-site.ts +4 -0
- package/platform/src/components/cloudflare/helpers/compatibility.ts +44 -0
- package/platform/src/components/cloudflare/helpers/fetch.ts +81 -0
- package/platform/src/components/cloudflare/helpers/validation.ts +74 -0
- package/platform/src/components/cloudflare/helpers/worker-builder.ts +57 -0
- package/platform/src/components/cloudflare/helpers/wrangler.ts +222 -0
- package/platform/src/components/cloudflare/hyperdrive.ts +402 -0
- package/platform/src/components/cloudflare/index.ts +25 -0
- package/platform/src/components/cloudflare/kv.ts +218 -0
- package/platform/src/components/cloudflare/providers/dns-record.ts +43 -0
- package/platform/src/components/cloudflare/providers/kv-data.ts +107 -0
- package/platform/src/components/cloudflare/providers/worker-assets.ts +41 -0
- package/platform/src/components/cloudflare/providers/worker-placement.ts +93 -0
- package/platform/src/components/cloudflare/providers/worker-script.ts +47 -0
- package/platform/src/components/cloudflare/providers/worker-url.ts +109 -0
- package/platform/src/components/cloudflare/providers/zone-lookup.ts +85 -0
- package/platform/src/components/cloudflare/queue-worker-subscriber.ts +192 -0
- package/platform/src/components/cloudflare/queue.ts +310 -0
- package/platform/src/components/cloudflare/rate-limit.ts +178 -0
- package/platform/src/components/cloudflare/react-router.ts +322 -0
- package/platform/src/components/cloudflare/ssr-site.ts +293 -0
- package/platform/src/components/cloudflare/static-site-v2.ts +428 -0
- package/platform/src/components/cloudflare/static-site.ts +470 -0
- package/platform/src/components/cloudflare/tan-stack-start.ts +408 -0
- package/platform/src/components/cloudflare/worker.ts +1080 -0
- package/platform/src/components/cloudflare/workflow.ts +319 -0
- package/platform/src/components/component.ts +242 -0
- package/platform/src/components/core.ts +43 -0
- package/platform/src/components/cpu.ts +10 -0
- package/platform/src/components/dns.ts +82 -0
- package/platform/src/components/duration.ts +67 -0
- package/platform/src/components/error.ts +5 -0
- package/platform/src/components/esbuild.ts +15 -0
- package/platform/src/components/experimental/dev-command.ts +127 -0
- package/platform/src/components/experimental/index.ts +1 -0
- package/platform/src/components/groups.ts +9 -0
- package/platform/src/components/index.ts +9 -0
- package/platform/src/components/input.ts +2 -0
- package/platform/src/components/link.ts +201 -0
- package/platform/src/components/linkable.ts +360 -0
- package/platform/src/components/naming-rules.ts +299 -0
- package/platform/src/components/naming.ts +189 -0
- package/platform/src/components/parts-component.ts +662 -0
- package/platform/src/components/parts.ts +299 -0
- package/platform/src/components/path.ts +5 -0
- package/platform/src/components/rpc/rpc.ts +110 -0
- package/platform/src/components/secret.ts +159 -0
- package/platform/src/components/size.ts +28 -0
- package/platform/src/components/takeover.ts +131 -0
- package/platform/src/components/transform.ts +107 -0
- package/platform/src/components/vercel/account-id.ts +1 -0
- package/platform/src/components/vercel/dns.ts +171 -0
- package/platform/src/components/vercel/index.ts +2 -0
- package/platform/src/components/vercel/providers/dns-record.ts +34 -0
- package/platform/src/config.ts +1460 -0
- package/platform/src/global-aliases.d.ts +37 -0
- package/platform/src/global.d.ts +374 -0
- package/platform/src/internal.d.ts +18 -0
- package/platform/src/runtime/worker/unenv.d.ts +14 -0
- package/platform/src/runtime/worker/unenv.mjs +26 -0
- package/platform/src/shim/run.js +25 -0
- package/platform/src/testing/global.ts +83 -0
- package/platform/src/testing/index.ts +103 -0
- package/platform/src/testing/mock.ts +646 -0
- package/platform/src/testing/vitest.ts +36 -0
- package/platform/src/util/compare-semver.ts +23 -0
- package/platform/src/util/fs.ts +49 -0
- package/platform/src/util/lazy.ts +12 -0
- package/platform/src/util/minify.ts +10 -0
- package/platform/src/util/package.ts +29 -0
- package/platform/src/util/semaphore.ts +29 -0
- package/platform/src/util/warn.ts +7 -0
- package/platform/types/auto/run.d.ts +9 -0
- package/platform/types/auto/run.d.ts.map +1 -0
- package/platform/types/components/args.d.ts +77 -0
- package/platform/types/components/args.d.ts.map +1 -0
- package/platform/types/components/aws/alb.d.ts +283 -0
- package/platform/types/components/aws/alb.d.ts.map +1 -0
- package/platform/types/components/aws/analog.d.ts +408 -0
- package/platform/types/components/aws/analog.d.ts.map +1 -0
- package/platform/types/components/aws/apigateway-websocket-route.d.ts +74 -0
- package/platform/types/components/aws/apigateway-websocket-route.d.ts.map +1 -0
- package/platform/types/components/aws/apigateway-websocket.d.ts +560 -0
- package/platform/types/components/aws/apigateway-websocket.d.ts.map +1 -0
- package/platform/types/components/aws/apigatewayv1-api-key.d.ts +48 -0
- package/platform/types/components/aws/apigatewayv1-api-key.d.ts.map +1 -0
- package/platform/types/components/aws/apigatewayv1-authorizer.d.ts +55 -0
- package/platform/types/components/aws/apigatewayv1-authorizer.d.ts.map +1 -0
- package/platform/types/components/aws/apigatewayv1-base-route.d.ts +36 -0
- package/platform/types/components/aws/apigatewayv1-base-route.d.ts.map +1 -0
- package/platform/types/components/aws/apigatewayv1-integration-route.d.ts +39 -0
- package/platform/types/components/aws/apigatewayv1-integration-route.d.ts.map +1 -0
- package/platform/types/components/aws/apigatewayv1-lambda-route.d.ts +53 -0
- package/platform/types/components/aws/apigatewayv1-lambda-route.d.ts.map +1 -0
- package/platform/types/components/aws/apigatewayv1-usage-plan.d.ts +53 -0
- package/platform/types/components/aws/apigatewayv1-usage-plan.d.ts.map +1 -0
- package/platform/types/components/aws/apigatewayv1.d.ts +1028 -0
- package/platform/types/components/aws/apigatewayv1.d.ts.map +1 -0
- package/platform/types/components/aws/apigatewayv2-authorizer.d.ts +54 -0
- package/platform/types/components/aws/apigatewayv2-authorizer.d.ts.map +1 -0
- package/platform/types/components/aws/apigatewayv2-base-route.d.ts +28 -0
- package/platform/types/components/aws/apigatewayv2-base-route.d.ts.map +1 -0
- package/platform/types/components/aws/apigatewayv2-lambda-route.d.ts +59 -0
- package/platform/types/components/aws/apigatewayv2-lambda-route.d.ts.map +1 -0
- package/platform/types/components/aws/apigatewayv2-private-route.d.ts +54 -0
- package/platform/types/components/aws/apigatewayv2-private-route.d.ts.map +1 -0
- package/platform/types/components/aws/apigatewayv2-url-route.d.ts +44 -0
- package/platform/types/components/aws/apigatewayv2-url-route.d.ts.map +1 -0
- package/platform/types/components/aws/apigatewayv2.d.ts +955 -0
- package/platform/types/components/aws/apigatewayv2.d.ts.map +1 -0
- package/platform/types/components/aws/app-sync-data-source.d.ts +52 -0
- package/platform/types/components/aws/app-sync-data-source.d.ts.map +1 -0
- package/platform/types/components/aws/app-sync-function.d.ts +33 -0
- package/platform/types/components/aws/app-sync-function.d.ts.map +1 -0
- package/platform/types/components/aws/app-sync-resolver.d.ts +41 -0
- package/platform/types/components/aws/app-sync-resolver.d.ts.map +1 -0
- package/platform/types/components/aws/app-sync.d.ts +638 -0
- package/platform/types/components/aws/app-sync.d.ts.map +1 -0
- package/platform/types/components/aws/astro.d.ts +409 -0
- package/platform/types/components/aws/astro.d.ts.map +1 -0
- package/platform/types/components/aws/aurora.d.ts +720 -0
- package/platform/types/components/aws/aurora.d.ts.map +1 -0
- package/platform/types/components/aws/auth-v1.d.ts +26 -0
- package/platform/types/components/aws/auth-v1.d.ts.map +1 -0
- package/platform/types/components/aws/auth.d.ts +295 -0
- package/platform/types/components/aws/auth.d.ts.map +1 -0
- package/platform/types/components/aws/bucket-lambda-subscriber.d.ts +61 -0
- package/platform/types/components/aws/bucket-lambda-subscriber.d.ts.map +1 -0
- package/platform/types/components/aws/bucket-notification.d.ts +47 -0
- package/platform/types/components/aws/bucket-notification.d.ts.map +1 -0
- package/platform/types/components/aws/bucket-queue-subscriber.d.ts +55 -0
- package/platform/types/components/aws/bucket-queue-subscriber.d.ts.map +1 -0
- package/platform/types/components/aws/bucket-topic-subscriber.d.ts +55 -0
- package/platform/types/components/aws/bucket-topic-subscriber.d.ts.map +1 -0
- package/platform/types/components/aws/bucket.d.ts +1356 -0
- package/platform/types/components/aws/bucket.d.ts.map +1 -0
- package/platform/types/components/aws/bus-base-subscriber.d.ts +20 -0
- package/platform/types/components/aws/bus-base-subscriber.d.ts.map +1 -0
- package/platform/types/components/aws/bus-lambda-subscriber.d.ts +50 -0
- package/platform/types/components/aws/bus-lambda-subscriber.d.ts.map +1 -0
- package/platform/types/components/aws/bus-queue-subscriber.d.ts +44 -0
- package/platform/types/components/aws/bus-queue-subscriber.d.ts.map +1 -0
- package/platform/types/components/aws/bus.d.ts +447 -0
- package/platform/types/components/aws/bus.d.ts.map +1 -0
- package/platform/types/components/aws/cdn.d.ts +310 -0
- package/platform/types/components/aws/cdn.d.ts.map +1 -0
- package/platform/types/components/aws/cluster-v1.d.ts +885 -0
- package/platform/types/components/aws/cluster-v1.d.ts.map +1 -0
- package/platform/types/components/aws/cluster.d.ts +364 -0
- package/platform/types/components/aws/cluster.d.ts.map +1 -0
- package/platform/types/components/aws/cognito-identity-pool.d.ts +199 -0
- package/platform/types/components/aws/cognito-identity-pool.d.ts.map +1 -0
- package/platform/types/components/aws/cognito-identity-provider.d.ts +38 -0
- package/platform/types/components/aws/cognito-identity-provider.d.ts.map +1 -0
- package/platform/types/components/aws/cognito-user-pool-client.d.ts +50 -0
- package/platform/types/components/aws/cognito-user-pool-client.d.ts.map +1 -0
- package/platform/types/components/aws/cognito-user-pool.d.ts +703 -0
- package/platform/types/components/aws/cognito-user-pool.d.ts.map +1 -0
- package/platform/types/components/aws/cron-v2.d.ts +325 -0
- package/platform/types/components/aws/cron-v2.d.ts.map +1 -0
- package/platform/types/components/aws/cron.d.ts +259 -0
- package/platform/types/components/aws/cron.d.ts.map +1 -0
- package/platform/types/components/aws/dns-validated-certificate.d.ts +27 -0
- package/platform/types/components/aws/dns-validated-certificate.d.ts.map +1 -0
- package/platform/types/components/aws/dns.d.ts +94 -0
- package/platform/types/components/aws/dns.d.ts.map +1 -0
- package/platform/types/components/aws/dsql.d.ts +369 -0
- package/platform/types/components/aws/dsql.d.ts.map +1 -0
- package/platform/types/components/aws/dynamo-lambda-subscriber.d.ts +55 -0
- package/platform/types/components/aws/dynamo-lambda-subscriber.d.ts.map +1 -0
- package/platform/types/components/aws/dynamo.d.ts +628 -0
- package/platform/types/components/aws/dynamo.d.ts.map +1 -0
- package/platform/types/components/aws/efs.d.ts +217 -0
- package/platform/types/components/aws/efs.d.ts.map +1 -0
- package/platform/types/components/aws/email.d.ts +370 -0
- package/platform/types/components/aws/email.d.ts.map +1 -0
- package/platform/types/components/aws/fargate.d.ts +894 -0
- package/platform/types/components/aws/fargate.d.ts.map +1 -0
- package/platform/types/components/aws/function.d.ts +1755 -0
- package/platform/types/components/aws/function.d.ts.map +1 -0
- package/platform/types/components/aws/helpers/apigateway-account.d.ts +3 -0
- package/platform/types/components/aws/helpers/apigateway-account.d.ts.map +1 -0
- package/platform/types/components/aws/helpers/apigatewayv2-domain.d.ts +144 -0
- package/platform/types/components/aws/helpers/apigatewayv2-domain.d.ts.map +1 -0
- package/platform/types/components/aws/helpers/arn.d.ts +51 -0
- package/platform/types/components/aws/helpers/arn.d.ts.map +1 -0
- package/platform/types/components/aws/helpers/bootstrap.d.ts +13 -0
- package/platform/types/components/aws/helpers/bootstrap.d.ts.map +1 -0
- package/platform/types/components/aws/helpers/client.d.ts +7 -0
- package/platform/types/components/aws/helpers/client.d.ts.map +1 -0
- package/platform/types/components/aws/helpers/container-builder.d.ts +4 -0
- package/platform/types/components/aws/helpers/container-builder.d.ts.map +1 -0
- package/platform/types/components/aws/helpers/custom-domain.d.ts +111 -0
- package/platform/types/components/aws/helpers/custom-domain.d.ts.map +1 -0
- package/platform/types/components/aws/helpers/event-source.d.ts +26 -0
- package/platform/types/components/aws/helpers/event-source.d.ts.map +1 -0
- package/platform/types/components/aws/helpers/fargate.d.ts +225 -0
- package/platform/types/components/aws/helpers/fargate.d.ts.map +1 -0
- package/platform/types/components/aws/helpers/function-builder.d.ts +14 -0
- package/platform/types/components/aws/helpers/function-builder.d.ts.map +1 -0
- package/platform/types/components/aws/helpers/function-code.d.ts +80 -0
- package/platform/types/components/aws/helpers/function-code.d.ts.map +1 -0
- package/platform/types/components/aws/helpers/function-part.d.ts +61 -0
- package/platform/types/components/aws/helpers/function-part.d.ts.map +1 -0
- package/platform/types/components/aws/helpers/function-permission.d.ts +17 -0
- package/platform/types/components/aws/helpers/function-permission.d.ts.map +1 -0
- package/platform/types/components/aws/helpers/load-balancer-args.d.ts +40 -0
- package/platform/types/components/aws/helpers/load-balancer-args.d.ts.map +1 -0
- package/platform/types/components/aws/helpers/load-balancer.d.ts +9 -0
- package/platform/types/components/aws/helpers/load-balancer.d.ts.map +1 -0
- package/platform/types/components/aws/helpers/provider.d.ts +3 -0
- package/platform/types/components/aws/helpers/provider.d.ts.map +1 -0
- package/platform/types/components/aws/helpers/queue-policy.d.ts +11 -0
- package/platform/types/components/aws/helpers/queue-policy.d.ts.map +1 -0
- package/platform/types/components/aws/helpers/rds.d.ts +98 -0
- package/platform/types/components/aws/helpers/rds.d.ts.map +1 -0
- package/platform/types/components/aws/helpers/site-builder.d.ts +4 -0
- package/platform/types/components/aws/helpers/site-builder.d.ts.map +1 -0
- package/platform/types/components/aws/helpers/subscriber.d.ts +6 -0
- package/platform/types/components/aws/helpers/subscriber.d.ts.map +1 -0
- package/platform/types/components/aws/helpers/vpc.d.ts +14 -0
- package/platform/types/components/aws/helpers/vpc.d.ts.map +1 -0
- package/platform/types/components/aws/https-redirect.d.ts +38 -0
- package/platform/types/components/aws/https-redirect.d.ts.map +1 -0
- package/platform/types/components/aws/iam-edit.d.ts +39 -0
- package/platform/types/components/aws/iam-edit.d.ts.map +1 -0
- package/platform/types/components/aws/index.d.ts +56 -0
- package/platform/types/components/aws/index.d.ts.map +1 -0
- package/platform/types/components/aws/kinesis-stream-lambda-subscriber.d.ts +49 -0
- package/platform/types/components/aws/kinesis-stream-lambda-subscriber.d.ts.map +1 -0
- package/platform/types/components/aws/kinesis-stream.d.ts +254 -0
- package/platform/types/components/aws/kinesis-stream.d.ts.map +1 -0
- package/platform/types/components/aws/linkable.d.ts +17 -0
- package/platform/types/components/aws/linkable.d.ts.map +1 -0
- package/platform/types/components/aws/logging.d.ts +26 -0
- package/platform/types/components/aws/logging.d.ts.map +1 -0
- package/platform/types/components/aws/microvm.d.ts +439 -0
- package/platform/types/components/aws/microvm.d.ts.map +1 -0
- package/platform/types/components/aws/mysql.d.ts +525 -0
- package/platform/types/components/aws/mysql.d.ts.map +1 -0
- package/platform/types/components/aws/nextjs.d.ts +534 -0
- package/platform/types/components/aws/nextjs.d.ts.map +1 -0
- package/platform/types/components/aws/nuxt.d.ts +480 -0
- package/platform/types/components/aws/nuxt.d.ts.map +1 -0
- package/platform/types/components/aws/open-search.d.ts +306 -0
- package/platform/types/components/aws/open-search.d.ts.map +1 -0
- package/platform/types/components/aws/opencontrol.d.ts +169 -0
- package/platform/types/components/aws/opencontrol.d.ts.map +1 -0
- package/platform/types/components/aws/permission.d.ts +80 -0
- package/platform/types/components/aws/permission.d.ts.map +1 -0
- package/platform/types/components/aws/postgres-v1.d.ts +328 -0
- package/platform/types/components/aws/postgres-v1.d.ts.map +1 -0
- package/platform/types/components/aws/postgres.d.ts +529 -0
- package/platform/types/components/aws/postgres.d.ts.map +1 -0
- package/platform/types/components/aws/providers/bucket-files.d.ts +18 -0
- package/platform/types/components/aws/providers/bucket-files.d.ts.map +1 -0
- package/platform/types/components/aws/providers/distribution-deployment-waiter.d.ts +13 -0
- package/platform/types/components/aws/providers/distribution-deployment-waiter.d.ts.map +1 -0
- package/platform/types/components/aws/providers/distribution-invalidation.d.ts +11 -0
- package/platform/types/components/aws/providers/distribution-invalidation.d.ts.map +1 -0
- package/platform/types/components/aws/providers/function-environment-update.d.ts +33 -0
- package/platform/types/components/aws/providers/function-environment-update.d.ts.map +1 -0
- package/platform/types/components/aws/providers/hosted-zone-lookup.d.ts +11 -0
- package/platform/types/components/aws/providers/hosted-zone-lookup.d.ts.map +1 -0
- package/platform/types/components/aws/providers/kv-keys.d.ts +11 -0
- package/platform/types/components/aws/providers/kv-keys.d.ts.map +1 -0
- package/platform/types/components/aws/providers/kv-routes-update.d.ts +11 -0
- package/platform/types/components/aws/providers/kv-routes-update.d.ts.map +1 -0
- package/platform/types/components/aws/providers/microvm-image-prune.d.ts +35 -0
- package/platform/types/components/aws/providers/microvm-image-prune.d.ts.map +1 -0
- package/platform/types/components/aws/providers/origin-access-control.d.ts +8 -0
- package/platform/types/components/aws/providers/origin-access-control.d.ts.map +1 -0
- package/platform/types/components/aws/providers/rds-role-lookup.d.ts +8 -0
- package/platform/types/components/aws/providers/rds-role-lookup.d.ts.map +1 -0
- package/platform/types/components/aws/providers/vector-table.d.ts +12 -0
- package/platform/types/components/aws/providers/vector-table.d.ts.map +1 -0
- package/platform/types/components/aws/queue-lambda-subscriber.d.ts +53 -0
- package/platform/types/components/aws/queue-lambda-subscriber.d.ts.map +1 -0
- package/platform/types/components/aws/queue.d.ts +494 -0
- package/platform/types/components/aws/queue.d.ts.map +1 -0
- package/platform/types/components/aws/react.d.ts +407 -0
- package/platform/types/components/aws/react.d.ts.map +1 -0
- package/platform/types/components/aws/realtime-lambda-subscriber.d.ts +53 -0
- package/platform/types/components/aws/realtime-lambda-subscriber.d.ts.map +1 -0
- package/platform/types/components/aws/realtime.d.ts +237 -0
- package/platform/types/components/aws/realtime.d.ts.map +1 -0
- package/platform/types/components/aws/redis-v1.d.ts +348 -0
- package/platform/types/components/aws/redis-v1.d.ts.map +1 -0
- package/platform/types/components/aws/redis.d.ts +545 -0
- package/platform/types/components/aws/redis.d.ts.map +1 -0
- package/platform/types/components/aws/remix.d.ts +408 -0
- package/platform/types/components/aws/remix.d.ts.map +1 -0
- package/platform/types/components/aws/router-base-route.d.ts +28 -0
- package/platform/types/components/aws/router-base-route.d.ts.map +1 -0
- package/platform/types/components/aws/router-bucket-route.d.ts +29 -0
- package/platform/types/components/aws/router-bucket-route.d.ts.map +1 -0
- package/platform/types/components/aws/router-url-route.d.ts +28 -0
- package/platform/types/components/aws/router-url-route.d.ts.map +1 -0
- package/platform/types/components/aws/router.d.ts +1754 -0
- package/platform/types/components/aws/router.d.ts.map +1 -0
- package/platform/types/components/aws/service-v1.d.ts +78 -0
- package/platform/types/components/aws/service-v1.d.ts.map +1 -0
- package/platform/types/components/aws/service.d.ts +1756 -0
- package/platform/types/components/aws/service.d.ts.map +1 -0
- package/platform/types/components/aws/sns-topic-lambda-subscriber.d.ts +53 -0
- package/platform/types/components/aws/sns-topic-lambda-subscriber.d.ts.map +1 -0
- package/platform/types/components/aws/sns-topic-queue-subscriber.d.ts +55 -0
- package/platform/types/components/aws/sns-topic-queue-subscriber.d.ts.map +1 -0
- package/platform/types/components/aws/sns-topic.d.ts +394 -0
- package/platform/types/components/aws/sns-topic.d.ts.map +1 -0
- package/platform/types/components/aws/solid-start.d.ts +399 -0
- package/platform/types/components/aws/solid-start.d.ts.map +1 -0
- package/platform/types/components/aws/ssr-site.d.ts +895 -0
- package/platform/types/components/aws/ssr-site.d.ts.map +1 -0
- package/platform/types/components/aws/static-site.d.ts +744 -0
- package/platform/types/components/aws/static-site.d.ts.map +1 -0
- package/platform/types/components/aws/step-functions/choice.d.ts +73 -0
- package/platform/types/components/aws/step-functions/choice.d.ts.map +1 -0
- package/platform/types/components/aws/step-functions/fail.d.ts +63 -0
- package/platform/types/components/aws/step-functions/fail.d.ts.map +1 -0
- package/platform/types/components/aws/step-functions/map.d.ts +236 -0
- package/platform/types/components/aws/step-functions/map.d.ts.map +1 -0
- package/platform/types/components/aws/step-functions/parallel.d.ts +127 -0
- package/platform/types/components/aws/step-functions/parallel.d.ts.map +1 -0
- package/platform/types/components/aws/step-functions/pass.d.ts +39 -0
- package/platform/types/components/aws/step-functions/pass.d.ts.map +1 -0
- package/platform/types/components/aws/step-functions/state.d.ts +231 -0
- package/platform/types/components/aws/step-functions/state.d.ts.map +1 -0
- package/platform/types/components/aws/step-functions/succeed.d.ts +26 -0
- package/platform/types/components/aws/step-functions/succeed.d.ts.map +1 -0
- package/platform/types/components/aws/step-functions/task.d.ts +485 -0
- package/platform/types/components/aws/step-functions/task.d.ts.map +1 -0
- package/platform/types/components/aws/step-functions/wait.d.ts +91 -0
- package/platform/types/components/aws/step-functions/wait.d.ts.map +1 -0
- package/platform/types/components/aws/step-functions.d.ts +478 -0
- package/platform/types/components/aws/step-functions.d.ts.map +1 -0
- package/platform/types/components/aws/svelte-kit.d.ts +456 -0
- package/platform/types/components/aws/svelte-kit.d.ts.map +1 -0
- package/platform/types/components/aws/takeover/alb.d.ts +2 -0
- package/platform/types/components/aws/takeover/alb.d.ts.map +1 -0
- package/platform/types/components/aws/takeover/apigatewayv2.d.ts +2 -0
- package/platform/types/components/aws/takeover/apigatewayv2.d.ts.map +1 -0
- package/platform/types/components/aws/takeover/app-sync.d.ts +2 -0
- package/platform/types/components/aws/takeover/app-sync.d.ts.map +1 -0
- package/platform/types/components/aws/takeover/aurora.d.ts +2 -0
- package/platform/types/components/aws/takeover/aurora.d.ts.map +1 -0
- package/platform/types/components/aws/takeover/bucket.d.ts +2 -0
- package/platform/types/components/aws/takeover/bucket.d.ts.map +1 -0
- package/platform/types/components/aws/takeover/bus.d.ts +2 -0
- package/platform/types/components/aws/takeover/bus.d.ts.map +1 -0
- package/platform/types/components/aws/takeover/cognito-user-pool.d.ts +2 -0
- package/platform/types/components/aws/takeover/cognito-user-pool.d.ts.map +1 -0
- package/platform/types/components/aws/takeover/cron-v2.d.ts +2 -0
- package/platform/types/components/aws/takeover/cron-v2.d.ts.map +1 -0
- package/platform/types/components/aws/takeover/dsql.d.ts +2 -0
- package/platform/types/components/aws/takeover/dsql.d.ts.map +1 -0
- package/platform/types/components/aws/takeover/dynamo.d.ts +2 -0
- package/platform/types/components/aws/takeover/dynamo.d.ts.map +1 -0
- package/platform/types/components/aws/takeover/efs.d.ts +2 -0
- package/platform/types/components/aws/takeover/efs.d.ts.map +1 -0
- package/platform/types/components/aws/takeover/function.d.ts +2 -0
- package/platform/types/components/aws/takeover/function.d.ts.map +1 -0
- package/platform/types/components/aws/takeover/helpers.d.ts +16 -0
- package/platform/types/components/aws/takeover/helpers.d.ts.map +1 -0
- package/platform/types/components/aws/takeover/index.d.ts +28 -0
- package/platform/types/components/aws/takeover/index.d.ts.map +1 -0
- package/platform/types/components/aws/takeover/mysql.d.ts +2 -0
- package/platform/types/components/aws/takeover/mysql.d.ts.map +1 -0
- package/platform/types/components/aws/takeover/postgres.d.ts +2 -0
- package/platform/types/components/aws/takeover/postgres.d.ts.map +1 -0
- package/platform/types/components/aws/takeover/queue.d.ts +2 -0
- package/platform/types/components/aws/takeover/queue.d.ts.map +1 -0
- package/platform/types/components/aws/takeover/redis.d.ts +2 -0
- package/platform/types/components/aws/takeover/redis.d.ts.map +1 -0
- package/platform/types/components/aws/takeover/service.d.ts +2 -0
- package/platform/types/components/aws/takeover/service.d.ts.map +1 -0
- package/platform/types/components/aws/takeover/sns-topic.d.ts +2 -0
- package/platform/types/components/aws/takeover/sns-topic.d.ts.map +1 -0
- package/platform/types/components/aws/takeover/task.d.ts +2 -0
- package/platform/types/components/aws/takeover/task.d.ts.map +1 -0
- package/platform/types/components/aws/tan-stack-start.d.ts +359 -0
- package/platform/types/components/aws/tan-stack-start.d.ts.map +1 -0
- package/platform/types/components/aws/task.d.ts +342 -0
- package/platform/types/components/aws/task.d.ts.map +1 -0
- package/platform/types/components/aws/v5/alb.d.ts +177 -0
- package/platform/types/components/aws/v5/alb.d.ts.map +1 -0
- package/platform/types/components/aws/v5/apigatewayv2.d.ts +482 -0
- package/platform/types/components/aws/v5/apigatewayv2.d.ts.map +1 -0
- package/platform/types/components/aws/v5/app-sync.d.ts +424 -0
- package/platform/types/components/aws/v5/app-sync.d.ts.map +1 -0
- package/platform/types/components/aws/v5/aurora.d.ts +459 -0
- package/platform/types/components/aws/v5/aurora.d.ts.map +1 -0
- package/platform/types/components/aws/v5/bucket.d.ts +578 -0
- package/platform/types/components/aws/v5/bucket.d.ts.map +1 -0
- package/platform/types/components/aws/v5/bus.d.ts +255 -0
- package/platform/types/components/aws/v5/bus.d.ts.map +1 -0
- package/platform/types/components/aws/v5/cluster.d.ts +167 -0
- package/platform/types/components/aws/v5/cluster.d.ts.map +1 -0
- package/platform/types/components/aws/v5/cognito-user-pool-client.d.ts +69 -0
- package/platform/types/components/aws/v5/cognito-user-pool-client.d.ts.map +1 -0
- package/platform/types/components/aws/v5/cognito-user-pool.d.ts +396 -0
- package/platform/types/components/aws/v5/cognito-user-pool.d.ts.map +1 -0
- package/platform/types/components/aws/v5/cron-v2.d.ts +206 -0
- package/platform/types/components/aws/v5/cron-v2.d.ts.map +1 -0
- package/platform/types/components/aws/v5/dsql.d.ts +453 -0
- package/platform/types/components/aws/v5/dsql.d.ts.map +1 -0
- package/platform/types/components/aws/v5/dynamo.d.ts +328 -0
- package/platform/types/components/aws/v5/dynamo.d.ts.map +1 -0
- package/platform/types/components/aws/v5/efs.d.ts +178 -0
- package/platform/types/components/aws/v5/efs.d.ts.map +1 -0
- package/platform/types/components/aws/v5/function.d.ts +582 -0
- package/platform/types/components/aws/v5/function.d.ts.map +1 -0
- package/platform/types/components/aws/v5/index.d.ts +27 -0
- package/platform/types/components/aws/v5/index.d.ts.map +1 -0
- package/platform/types/components/aws/v5/mysql.d.ts +347 -0
- package/platform/types/components/aws/v5/mysql.d.ts.map +1 -0
- package/platform/types/components/aws/v5/postgres.d.ts +348 -0
- package/platform/types/components/aws/v5/postgres.d.ts.map +1 -0
- package/platform/types/components/aws/v5/queue.d.ts +190 -0
- package/platform/types/components/aws/v5/queue.d.ts.map +1 -0
- package/platform/types/components/aws/v5/redis.d.ts +214 -0
- package/platform/types/components/aws/v5/redis.d.ts.map +1 -0
- package/platform/types/components/aws/v5/service.d.ts +1347 -0
- package/platform/types/components/aws/v5/service.d.ts.map +1 -0
- package/platform/types/components/aws/v5/sns-topic.d.ts +226 -0
- package/platform/types/components/aws/v5/sns-topic.d.ts.map +1 -0
- package/platform/types/components/aws/v5/task.d.ts +346 -0
- package/platform/types/components/aws/v5/task.d.ts.map +1 -0
- package/platform/types/components/aws/vector.d.ts +163 -0
- package/platform/types/components/aws/vector.d.ts.map +1 -0
- package/platform/types/components/aws/vpc-v1.d.ts +208 -0
- package/platform/types/components/aws/vpc-v1.d.ts.map +1 -0
- package/platform/types/components/aws/vpc.d.ts +491 -0
- package/platform/types/components/aws/vpc.d.ts.map +1 -0
- package/platform/types/components/aws/workflow.d.ts +331 -0
- package/platform/types/components/aws/workflow.d.ts.map +1 -0
- package/platform/types/components/base/base-site.d.ts +53 -0
- package/platform/types/components/base/base-site.d.ts.map +1 -0
- package/platform/types/components/base/base-ssr-site.d.ts +13 -0
- package/platform/types/components/base/base-ssr-site.d.ts.map +1 -0
- package/platform/types/components/base/base-static-site.d.ts +199 -0
- package/platform/types/components/base/base-static-site.d.ts.map +1 -0
- package/platform/types/components/cloudflare/account-id.d.ts +2 -0
- package/platform/types/components/cloudflare/account-id.d.ts.map +1 -0
- package/platform/types/components/cloudflare/ai.d.ts +68 -0
- package/platform/types/components/cloudflare/ai.d.ts.map +1 -0
- package/platform/types/components/cloudflare/astro.d.ts +249 -0
- package/platform/types/components/cloudflare/astro.d.ts.map +1 -0
- package/platform/types/components/cloudflare/auth.d.ts +22 -0
- package/platform/types/components/cloudflare/auth.d.ts.map +1 -0
- package/platform/types/components/cloudflare/binding.d.ts +109 -0
- package/platform/types/components/cloudflare/binding.d.ts.map +1 -0
- package/platform/types/components/cloudflare/bucket.d.ts +98 -0
- package/platform/types/components/cloudflare/bucket.d.ts.map +1 -0
- package/platform/types/components/cloudflare/cron.d.ts +151 -0
- package/platform/types/components/cloudflare/cron.d.ts.map +1 -0
- package/platform/types/components/cloudflare/d1.d.ts +142 -0
- package/platform/types/components/cloudflare/d1.d.ts.map +1 -0
- package/platform/types/components/cloudflare/dns.d.ts +100 -0
- package/platform/types/components/cloudflare/dns.d.ts.map +1 -0
- package/platform/types/components/cloudflare/durable-object.d.ts +125 -0
- package/platform/types/components/cloudflare/durable-object.d.ts.map +1 -0
- package/platform/types/components/cloudflare/experimental/index.d.ts +4 -0
- package/platform/types/components/cloudflare/experimental/index.d.ts.map +1 -0
- package/platform/types/components/cloudflare/experimental/solid-start.d.ts +219 -0
- package/platform/types/components/cloudflare/experimental/solid-start.d.ts.map +1 -0
- package/platform/types/components/cloudflare/experimental/static-site.d.ts +3 -0
- package/platform/types/components/cloudflare/experimental/static-site.d.ts.map +1 -0
- package/platform/types/components/cloudflare/helpers/compatibility.d.ts +21 -0
- package/platform/types/components/cloudflare/helpers/compatibility.d.ts.map +1 -0
- package/platform/types/components/cloudflare/helpers/fetch.d.ts +19 -0
- package/platform/types/components/cloudflare/helpers/fetch.d.ts.map +1 -0
- package/platform/types/components/cloudflare/helpers/validation.d.ts +15 -0
- package/platform/types/components/cloudflare/helpers/validation.d.ts.map +1 -0
- package/platform/types/components/cloudflare/helpers/worker-builder.d.ts +10 -0
- package/platform/types/components/cloudflare/helpers/worker-builder.d.ts.map +1 -0
- package/platform/types/components/cloudflare/helpers/wrangler.d.ts +31 -0
- package/platform/types/components/cloudflare/helpers/wrangler.d.ts.map +1 -0
- package/platform/types/components/cloudflare/hyperdrive.d.ts +302 -0
- package/platform/types/components/cloudflare/hyperdrive.d.ts.map +1 -0
- package/platform/types/components/cloudflare/index.d.ts +25 -0
- package/platform/types/components/cloudflare/index.d.ts.map +1 -0
- package/platform/types/components/cloudflare/kv.d.ts +140 -0
- package/platform/types/components/cloudflare/kv.d.ts.map +1 -0
- package/platform/types/components/cloudflare/providers/dns-record.d.ts +21 -0
- package/platform/types/components/cloudflare/providers/dns-record.d.ts.map +1 -0
- package/platform/types/components/cloudflare/providers/kv-data.d.ts +23 -0
- package/platform/types/components/cloudflare/providers/kv-data.d.ts.map +1 -0
- package/platform/types/components/cloudflare/providers/worker-assets.d.ts +19 -0
- package/platform/types/components/cloudflare/providers/worker-assets.d.ts.map +1 -0
- package/platform/types/components/cloudflare/providers/worker-placement.d.ts +27 -0
- package/platform/types/components/cloudflare/providers/worker-placement.d.ts.map +1 -0
- package/platform/types/components/cloudflare/providers/worker-script.d.ts +23 -0
- package/platform/types/components/cloudflare/providers/worker-script.d.ts.map +1 -0
- package/platform/types/components/cloudflare/providers/worker-url.d.ts +24 -0
- package/platform/types/components/cloudflare/providers/worker-url.d.ts.map +1 -0
- package/platform/types/components/cloudflare/providers/zone-lookup.d.ts +22 -0
- package/platform/types/components/cloudflare/providers/zone-lookup.d.ts.map +1 -0
- package/platform/types/components/cloudflare/queue-worker-subscriber.d.ts +122 -0
- package/platform/types/components/cloudflare/queue-worker-subscriber.d.ts.map +1 -0
- package/platform/types/components/cloudflare/queue.d.ts +235 -0
- package/platform/types/components/cloudflare/queue.d.ts.map +1 -0
- package/platform/types/components/cloudflare/rate-limit.d.ts +117 -0
- package/platform/types/components/cloudflare/rate-limit.d.ts.map +1 -0
- package/platform/types/components/cloudflare/react-router.d.ts +262 -0
- package/platform/types/components/cloudflare/react-router.d.ts.map +1 -0
- package/platform/types/components/cloudflare/ssr-site.d.ts +60 -0
- package/platform/types/components/cloudflare/ssr-site.d.ts.map +1 -0
- package/platform/types/components/cloudflare/static-site-v2.d.ts +302 -0
- package/platform/types/components/cloudflare/static-site-v2.d.ts.map +1 -0
- package/platform/types/components/cloudflare/static-site.d.ts +270 -0
- package/platform/types/components/cloudflare/static-site.d.ts.map +1 -0
- package/platform/types/components/cloudflare/tan-stack-start.d.ts +259 -0
- package/platform/types/components/cloudflare/tan-stack-start.d.ts.map +1 -0
- package/platform/types/components/cloudflare/worker.d.ts +483 -0
- package/platform/types/components/cloudflare/worker.d.ts.map +1 -0
- package/platform/types/components/cloudflare/workflow.d.ts +248 -0
- package/platform/types/components/cloudflare/workflow.d.ts.map +1 -0
- package/platform/types/components/component.d.ts +67 -0
- package/platform/types/components/component.d.ts.map +1 -0
- package/platform/types/components/core.d.ts +16 -0
- package/platform/types/components/core.d.ts.map +1 -0
- package/platform/types/components/cpu.d.ts +3 -0
- package/platform/types/components/cpu.d.ts.map +1 -0
- package/platform/types/components/dns.d.ts +63 -0
- package/platform/types/components/dns.d.ts.map +1 -0
- package/platform/types/components/duration.d.ts +9 -0
- package/platform/types/components/duration.d.ts.map +1 -0
- package/platform/types/components/error.d.ts +4 -0
- package/platform/types/components/error.d.ts.map +1 -0
- package/platform/types/components/esbuild.d.ts +3 -0
- package/platform/types/components/esbuild.d.ts.map +1 -0
- package/platform/types/components/experimental/dev-command.d.ts +99 -0
- package/platform/types/components/experimental/dev-command.d.ts.map +1 -0
- package/platform/types/components/experimental/index.d.ts +2 -0
- package/platform/types/components/experimental/index.d.ts.map +1 -0
- package/platform/types/components/groups.d.ts +6 -0
- package/platform/types/components/groups.d.ts.map +1 -0
- package/platform/types/components/index.d.ts +5 -0
- package/platform/types/components/index.d.ts.map +1 -0
- package/platform/types/components/input.d.ts +3 -0
- package/platform/types/components/input.d.ts.map +1 -0
- package/platform/types/components/link.d.ts +41 -0
- package/platform/types/components/link.d.ts.map +1 -0
- package/platform/types/components/linkable.d.ts +301 -0
- package/platform/types/components/linkable.d.ts.map +1 -0
- package/platform/types/components/naming-rules.d.ts +32 -0
- package/platform/types/components/naming-rules.d.ts.map +1 -0
- package/platform/types/components/naming.d.ts +21 -0
- package/platform/types/components/naming.d.ts.map +1 -0
- package/platform/types/components/parts-component.d.ts +241 -0
- package/platform/types/components/parts-component.d.ts.map +1 -0
- package/platform/types/components/parts.d.ts +194 -0
- package/platform/types/components/parts.d.ts.map +1 -0
- package/platform/types/components/path.d.ts +2 -0
- package/platform/types/components/path.d.ts.map +1 -0
- package/platform/types/components/rpc/rpc.d.ts +19 -0
- package/platform/types/components/rpc/rpc.d.ts.map +1 -0
- package/platform/types/components/secret.d.ts +123 -0
- package/platform/types/components/secret.d.ts.map +1 -0
- package/platform/types/components/size.d.ts +5 -0
- package/platform/types/components/size.d.ts.map +1 -0
- package/platform/types/components/takeover.d.ts +88 -0
- package/platform/types/components/takeover.d.ts.map +1 -0
- package/platform/types/components/transform.d.ts +34 -0
- package/platform/types/components/transform.d.ts.map +1 -0
- package/platform/types/components/vercel/account-id.d.ts +2 -0
- package/platform/types/components/vercel/account-id.d.ts.map +1 -0
- package/platform/types/components/vercel/dns.d.ts +73 -0
- package/platform/types/components/vercel/dns.d.ts.map +1 -0
- package/platform/types/components/vercel/index.d.ts +3 -0
- package/platform/types/components/vercel/index.d.ts.map +1 -0
- package/platform/types/components/vercel/providers/dns-record.d.ts +15 -0
- package/platform/types/components/vercel/providers/dns-record.d.ts.map +1 -0
- package/platform/types/config.d.ts +1437 -0
- package/platform/types/config.d.ts.map +1 -0
- package/platform/types/global-aliases.d.ts +37 -0
- package/platform/types/global.d.ts +374 -0
- package/platform/types/internal.d.ts +18 -0
- package/platform/types/runtime/worker/unenv.d.ts +14 -0
- package/platform/types/testing/global.d.ts +11 -0
- package/platform/types/testing/global.d.ts.map +1 -0
- package/platform/types/testing/index.d.ts +80 -0
- package/platform/types/testing/index.d.ts.map +1 -0
- package/platform/types/testing/mock.d.ts +136 -0
- package/platform/types/testing/mock.d.ts.map +1 -0
- package/platform/types/testing/vitest.d.ts +19 -0
- package/platform/types/testing/vitest.d.ts.map +1 -0
- package/platform/types/util/compare-semver.d.ts +4 -0
- package/platform/types/util/compare-semver.d.ts.map +1 -0
- package/platform/types/util/fs.d.ts +5 -0
- package/platform/types/util/fs.d.ts.map +1 -0
- package/platform/types/util/lazy.d.ts +2 -0
- package/platform/types/util/lazy.d.ts.map +1 -0
- package/platform/types/util/minify.d.ts +2 -0
- package/platform/types/util/minify.d.ts.map +1 -0
- package/platform/types/util/package.d.ts +10 -0
- package/platform/types/util/package.d.ts.map +1 -0
- package/platform/types/util/semaphore.d.ts +9 -0
- package/platform/types/util/semaphore.d.ts.map +1 -0
- package/platform/types/util/warn.d.ts +2 -0
- package/platform/types/util/warn.d.ts.map +1 -0
|
@@ -0,0 +1,932 @@
|
|
|
1
|
+
import { ComponentResourceOptions } from "@pulumi/pulumi";
|
|
2
|
+
import { Component, Transform, transform } from "../component.js";
|
|
3
|
+
import { Input } from "../input.js";
|
|
4
|
+
import { Dns } from "../dns.js";
|
|
5
|
+
import { FunctionArgs } from "./function.js";
|
|
6
|
+
import { Service as ServiceV1 } from "./service-v1.js";
|
|
7
|
+
import { RETENTION } from "./logging.js";
|
|
8
|
+
import { cloudwatch, ec2, ecs, iam, lb } from "@pulumi/aws";
|
|
9
|
+
import { ImageArgs } from "@pulumi/docker-build";
|
|
10
|
+
|
|
11
|
+
export const supportedCpus = {
|
|
12
|
+
"0.25 vCPU": 256,
|
|
13
|
+
"0.5 vCPU": 512,
|
|
14
|
+
"1 vCPU": 1024,
|
|
15
|
+
"2 vCPU": 2048,
|
|
16
|
+
"4 vCPU": 4096,
|
|
17
|
+
"8 vCPU": 8192,
|
|
18
|
+
"16 vCPU": 16384,
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const supportedMemories = {
|
|
22
|
+
"0.25 vCPU": {
|
|
23
|
+
"0.5 GB": 512,
|
|
24
|
+
"1 GB": 1024,
|
|
25
|
+
"2 GB": 2048,
|
|
26
|
+
},
|
|
27
|
+
"0.5 vCPU": {
|
|
28
|
+
"1 GB": 1024,
|
|
29
|
+
"2 GB": 2048,
|
|
30
|
+
"3 GB": 3072,
|
|
31
|
+
"4 GB": 4096,
|
|
32
|
+
},
|
|
33
|
+
"1 vCPU": {
|
|
34
|
+
"2 GB": 2048,
|
|
35
|
+
"3 GB": 3072,
|
|
36
|
+
"4 GB": 4096,
|
|
37
|
+
"5 GB": 5120,
|
|
38
|
+
"6 GB": 6144,
|
|
39
|
+
"7 GB": 7168,
|
|
40
|
+
"8 GB": 8192,
|
|
41
|
+
},
|
|
42
|
+
"2 vCPU": {
|
|
43
|
+
"4 GB": 4096,
|
|
44
|
+
"5 GB": 5120,
|
|
45
|
+
"6 GB": 6144,
|
|
46
|
+
"7 GB": 7168,
|
|
47
|
+
"8 GB": 8192,
|
|
48
|
+
"9 GB": 9216,
|
|
49
|
+
"10 GB": 10240,
|
|
50
|
+
"11 GB": 11264,
|
|
51
|
+
"12 GB": 12288,
|
|
52
|
+
"13 GB": 13312,
|
|
53
|
+
"14 GB": 14336,
|
|
54
|
+
"15 GB": 15360,
|
|
55
|
+
"16 GB": 16384,
|
|
56
|
+
},
|
|
57
|
+
"4 vCPU": {
|
|
58
|
+
"8 GB": 8192,
|
|
59
|
+
"9 GB": 9216,
|
|
60
|
+
"10 GB": 10240,
|
|
61
|
+
"11 GB": 11264,
|
|
62
|
+
"12 GB": 12288,
|
|
63
|
+
"13 GB": 13312,
|
|
64
|
+
"14 GB": 14336,
|
|
65
|
+
"15 GB": 15360,
|
|
66
|
+
"16 GB": 16384,
|
|
67
|
+
"17 GB": 17408,
|
|
68
|
+
"18 GB": 18432,
|
|
69
|
+
"19 GB": 19456,
|
|
70
|
+
"20 GB": 20480,
|
|
71
|
+
"21 GB": 21504,
|
|
72
|
+
"22 GB": 22528,
|
|
73
|
+
"23 GB": 23552,
|
|
74
|
+
"24 GB": 24576,
|
|
75
|
+
"25 GB": 25600,
|
|
76
|
+
"26 GB": 26624,
|
|
77
|
+
"27 GB": 27648,
|
|
78
|
+
"28 GB": 28672,
|
|
79
|
+
"29 GB": 29696,
|
|
80
|
+
"30 GB": 30720,
|
|
81
|
+
},
|
|
82
|
+
"8 vCPU": {
|
|
83
|
+
"16 GB": 16384,
|
|
84
|
+
"20 GB": 20480,
|
|
85
|
+
"24 GB": 24576,
|
|
86
|
+
"28 GB": 28672,
|
|
87
|
+
"32 GB": 32768,
|
|
88
|
+
"36 GB": 36864,
|
|
89
|
+
"40 GB": 40960,
|
|
90
|
+
"44 GB": 45056,
|
|
91
|
+
"48 GB": 49152,
|
|
92
|
+
"52 GB": 53248,
|
|
93
|
+
"56 GB": 57344,
|
|
94
|
+
"60 GB": 61440,
|
|
95
|
+
},
|
|
96
|
+
"16 vCPU": {
|
|
97
|
+
"32 GB": 32768,
|
|
98
|
+
"40 GB": 40960,
|
|
99
|
+
"48 GB": 49152,
|
|
100
|
+
"56 GB": 57344,
|
|
101
|
+
"64 GB": 65536,
|
|
102
|
+
"72 GB": 73728,
|
|
103
|
+
"80 GB": 81920,
|
|
104
|
+
"88 GB": 90112,
|
|
105
|
+
"96 GB": 98304,
|
|
106
|
+
"104 GB": 106496,
|
|
107
|
+
"112 GB": 114688,
|
|
108
|
+
"120 GB": 122880,
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
type Port = `${number}/${"http" | "https" | "tcp" | "udp" | "tcp_udp" | "tls"}`;
|
|
113
|
+
|
|
114
|
+
export interface ClusterArgs {
|
|
115
|
+
/**
|
|
116
|
+
* The VPC to use for the cluster.
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* ```js
|
|
120
|
+
* {
|
|
121
|
+
* vpc: {
|
|
122
|
+
* id: "vpc-0d19d2b8ca2b268a1",
|
|
123
|
+
* publicSubnets: ["subnet-0b6a2b73896dc8c4c", "subnet-021389ebee680c2f0"],
|
|
124
|
+
* privateSubnets: ["subnet-0db7376a7ad4db5fd ", "subnet-06fc7ee8319b2c0ce"],
|
|
125
|
+
* securityGroups: ["sg-0399348378a4c256c"],
|
|
126
|
+
* }
|
|
127
|
+
* }
|
|
128
|
+
* ```
|
|
129
|
+
*
|
|
130
|
+
* Or create a `Vpc` component.
|
|
131
|
+
*
|
|
132
|
+
* ```js title="sst.config.ts"
|
|
133
|
+
* const myVpc = new sst.aws.Vpc("MyVpc");
|
|
134
|
+
* ```
|
|
135
|
+
*
|
|
136
|
+
* And pass it in.
|
|
137
|
+
*
|
|
138
|
+
* ```js
|
|
139
|
+
* {
|
|
140
|
+
* vpc: myVpc
|
|
141
|
+
* }
|
|
142
|
+
* ```
|
|
143
|
+
*/
|
|
144
|
+
vpc: Input<{
|
|
145
|
+
/**
|
|
146
|
+
* The ID of the VPC.
|
|
147
|
+
*/
|
|
148
|
+
id: Input<string>;
|
|
149
|
+
/**
|
|
150
|
+
* A list of public subnet IDs in the VPC. If a service has public ports configured,
|
|
151
|
+
* its load balancer will be placed in the public subnets.
|
|
152
|
+
*/
|
|
153
|
+
publicSubnets: Input<Input<string>[]>;
|
|
154
|
+
/**
|
|
155
|
+
* A list of private subnet IDs in the VPC. The service will be placed in the private
|
|
156
|
+
* subnets.
|
|
157
|
+
*/
|
|
158
|
+
privateSubnets: Input<Input<string>[]>;
|
|
159
|
+
/**
|
|
160
|
+
* A list of VPC security group IDs for the service.
|
|
161
|
+
*/
|
|
162
|
+
securityGroups: Input<Input<string>[]>;
|
|
163
|
+
}>;
|
|
164
|
+
/**
|
|
165
|
+
* [Transform](/docs/components#transform) how this component creates its underlying
|
|
166
|
+
* resources.
|
|
167
|
+
*/
|
|
168
|
+
transform?: {
|
|
169
|
+
/**
|
|
170
|
+
* Transform the ECS Cluster resource.
|
|
171
|
+
*/
|
|
172
|
+
cluster?: Transform<ecs.ClusterArgs>;
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export interface ClusterServiceArgs {
|
|
177
|
+
/**
|
|
178
|
+
* Configure how this component works in `sst dev`.
|
|
179
|
+
*
|
|
180
|
+
* :::note
|
|
181
|
+
* In `sst dev` your service is run locally; it's not deployed.
|
|
182
|
+
* :::
|
|
183
|
+
*
|
|
184
|
+
* Instead of deploying your service, this starts it locally. It's run
|
|
185
|
+
* as a separate process in the `sst dev` multiplexer. Read more about
|
|
186
|
+
* [`sst dev`](/docs/reference/cli/#dev).
|
|
187
|
+
*/
|
|
188
|
+
dev?: {
|
|
189
|
+
/**
|
|
190
|
+
* The `url` when this is running in dev mode.
|
|
191
|
+
*
|
|
192
|
+
* Since this component is not deployed in `sst dev`, there is no real URL. But if you are
|
|
193
|
+
* using this component's `url` or linking to this component's `url`, it can be useful to
|
|
194
|
+
* have a placeholder URL. It avoids having to handle it being `undefined`.
|
|
195
|
+
* @default `"http://url-unavailable-in-dev.mode"`
|
|
196
|
+
*/
|
|
197
|
+
url?: Input<string>;
|
|
198
|
+
/**
|
|
199
|
+
* The command that `sst dev` runs to start this in dev mode. This is the command you run
|
|
200
|
+
* when you want to run your service locally.
|
|
201
|
+
*/
|
|
202
|
+
command?: Input<string>;
|
|
203
|
+
/**
|
|
204
|
+
* Configure if you want to automatically start this when `sst dev` starts. You can still
|
|
205
|
+
* start it manually later.
|
|
206
|
+
* @default `true`
|
|
207
|
+
*/
|
|
208
|
+
autostart?: Input<boolean>;
|
|
209
|
+
/**
|
|
210
|
+
* Change the directory from where the `command` is run.
|
|
211
|
+
* @default Uses the `image.dockerfile` path
|
|
212
|
+
*/
|
|
213
|
+
directory?: Input<string>;
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* Configure the docker build command for building the image.
|
|
217
|
+
*
|
|
218
|
+
* Prior to building the image, SST will automatically add the `.sst` directory
|
|
219
|
+
* to the `.dockerignore` if not already present.
|
|
220
|
+
*
|
|
221
|
+
* @default `{}`
|
|
222
|
+
* @example
|
|
223
|
+
* ```js
|
|
224
|
+
* {
|
|
225
|
+
* image: {
|
|
226
|
+
* context: "./app",
|
|
227
|
+
* dockerfile: "Dockerfile",
|
|
228
|
+
* args: {
|
|
229
|
+
* MY_VAR: "value"
|
|
230
|
+
* }
|
|
231
|
+
* }
|
|
232
|
+
* }
|
|
233
|
+
* ```
|
|
234
|
+
*/
|
|
235
|
+
image?: Input<{
|
|
236
|
+
/**
|
|
237
|
+
* The path to the [Docker build context](https://docs.docker.com/build/building/context/#local-context). The path is relative to your project's `sst.config.ts`.
|
|
238
|
+
* @default `"."`
|
|
239
|
+
* @example
|
|
240
|
+
*
|
|
241
|
+
* To change where the docker build context is located.
|
|
242
|
+
*
|
|
243
|
+
* ```js
|
|
244
|
+
* {
|
|
245
|
+
* context: "./app"
|
|
246
|
+
* }
|
|
247
|
+
* ```
|
|
248
|
+
*/
|
|
249
|
+
context?: Input<string>;
|
|
250
|
+
/**
|
|
251
|
+
* The path to the [Dockerfile](https://docs.docker.com/reference/cli/docker/image/build/#file).
|
|
252
|
+
* The path is relative to the build `context`.
|
|
253
|
+
* @default `"Dockerfile"`
|
|
254
|
+
* @example
|
|
255
|
+
* To use a different Dockerfile.
|
|
256
|
+
* ```js
|
|
257
|
+
* {
|
|
258
|
+
* dockerfile: "Dockerfile.prod"
|
|
259
|
+
* }
|
|
260
|
+
* ```
|
|
261
|
+
*/
|
|
262
|
+
dockerfile?: Input<string>;
|
|
263
|
+
/**
|
|
264
|
+
* Key-value pairs of [build args](https://docs.docker.com/build/guide/build-args/) to pass to the docker build command.
|
|
265
|
+
* @example
|
|
266
|
+
* ```js
|
|
267
|
+
* {
|
|
268
|
+
* args: {
|
|
269
|
+
* MY_VAR: "value"
|
|
270
|
+
* }
|
|
271
|
+
* }
|
|
272
|
+
* ```
|
|
273
|
+
*/
|
|
274
|
+
args?: Input<Record<string, Input<string>>>;
|
|
275
|
+
}>;
|
|
276
|
+
/**
|
|
277
|
+
* Configure a public endpoint for the service. When configured, a load balancer
|
|
278
|
+
* will be created to route traffic to the containers. By default, the endpoint is an
|
|
279
|
+
* auto-generated load balancer URL.
|
|
280
|
+
*
|
|
281
|
+
* You can also add a custom domain for the public endpoint.
|
|
282
|
+
*
|
|
283
|
+
* @example
|
|
284
|
+
*
|
|
285
|
+
* ```js
|
|
286
|
+
* {
|
|
287
|
+
* public: {
|
|
288
|
+
* domain: "example.com",
|
|
289
|
+
* ports: [
|
|
290
|
+
* { listen: "80/http" },
|
|
291
|
+
* { listen: "443/https", forward: "80/http" }
|
|
292
|
+
* ]
|
|
293
|
+
* }
|
|
294
|
+
* }
|
|
295
|
+
* ```
|
|
296
|
+
*/
|
|
297
|
+
public?: Input<{
|
|
298
|
+
/**
|
|
299
|
+
* Set a custom domain for your public endpoint.
|
|
300
|
+
*
|
|
301
|
+
* Automatically manages domains hosted on AWS Route 53, Cloudflare, and Vercel. For other
|
|
302
|
+
* providers, you'll need to pass in a `cert` that validates domain ownership and add the
|
|
303
|
+
* DNS records.
|
|
304
|
+
*
|
|
305
|
+
* When SST creates the certificate, the load balancer is created after the certificate
|
|
306
|
+
* is validated, and removed before the certificate.
|
|
307
|
+
*
|
|
308
|
+
* :::tip
|
|
309
|
+
* Built-in support for AWS Route 53, Cloudflare, and Vercel. And manual setup for other
|
|
310
|
+
* providers.
|
|
311
|
+
* :::
|
|
312
|
+
*
|
|
313
|
+
* @example
|
|
314
|
+
*
|
|
315
|
+
* By default this assumes the domain is hosted on Route 53.
|
|
316
|
+
*
|
|
317
|
+
* ```js
|
|
318
|
+
* {
|
|
319
|
+
* domain: "example.com"
|
|
320
|
+
* }
|
|
321
|
+
* ```
|
|
322
|
+
*
|
|
323
|
+
* For domains hosted on Cloudflare.
|
|
324
|
+
*
|
|
325
|
+
* ```js
|
|
326
|
+
* {
|
|
327
|
+
* domain: {
|
|
328
|
+
* name: "example.com",
|
|
329
|
+
* dns: sst.cloudflare.dns()
|
|
330
|
+
* }
|
|
331
|
+
* }
|
|
332
|
+
* ```
|
|
333
|
+
*/
|
|
334
|
+
domain?: Input<
|
|
335
|
+
| string
|
|
336
|
+
| {
|
|
337
|
+
/**
|
|
338
|
+
* The custom domain you want to use.
|
|
339
|
+
*
|
|
340
|
+
* @example
|
|
341
|
+
* ```js
|
|
342
|
+
* {
|
|
343
|
+
* domain: {
|
|
344
|
+
* name: "example.com"
|
|
345
|
+
* }
|
|
346
|
+
* }
|
|
347
|
+
* ```
|
|
348
|
+
*
|
|
349
|
+
* Can also include subdomains based on the current stage.
|
|
350
|
+
*
|
|
351
|
+
* ```js
|
|
352
|
+
* {
|
|
353
|
+
* domain: {
|
|
354
|
+
* name: `${$app.stage}.example.com`
|
|
355
|
+
* }
|
|
356
|
+
* }
|
|
357
|
+
* ```
|
|
358
|
+
*/
|
|
359
|
+
name: Input<string>;
|
|
360
|
+
/**
|
|
361
|
+
* The ARN of an ACM (AWS Certificate Manager) certificate that proves ownership of the
|
|
362
|
+
* domain. By default, a certificate is created and validated automatically.
|
|
363
|
+
*
|
|
364
|
+
* :::tip
|
|
365
|
+
* You need to pass in a `cert` for domains that are not hosted on supported `dns` providers.
|
|
366
|
+
* :::
|
|
367
|
+
*
|
|
368
|
+
* To manually set up a domain on an unsupported provider, you'll need to:
|
|
369
|
+
*
|
|
370
|
+
* 1. [Validate that you own the domain](https://docs.aws.amazon.com/acm/latest/userguide/domain-ownership-validation.html) by creating an ACM certificate. You can either validate it by setting a DNS record or by verifying an email sent to the domain owner.
|
|
371
|
+
* 2. Once validated, set the certificate ARN as the `cert` and set `dns` to `false`.
|
|
372
|
+
* 3. Add the DNS records in your provider to point to the load balancer endpoint.
|
|
373
|
+
*
|
|
374
|
+
* @example
|
|
375
|
+
* ```js
|
|
376
|
+
* {
|
|
377
|
+
* domain: {
|
|
378
|
+
* name: "example.com",
|
|
379
|
+
* dns: false,
|
|
380
|
+
* cert: "arn:aws:acm:us-east-1:112233445566:certificate/3a958790-8878-4cdc-a396-06d95064cf63"
|
|
381
|
+
* }
|
|
382
|
+
* }
|
|
383
|
+
* ```
|
|
384
|
+
*/
|
|
385
|
+
cert?: Input<string>;
|
|
386
|
+
/**
|
|
387
|
+
* The DNS provider to use for the domain. Defaults to the AWS.
|
|
388
|
+
*
|
|
389
|
+
* Takes an adapter that can create the DNS records on the provider. This can automate
|
|
390
|
+
* validating the domain and setting up the DNS routing.
|
|
391
|
+
*
|
|
392
|
+
* Supports Route 53, Cloudflare, and Vercel adapters. For other providers, you'll need
|
|
393
|
+
* to set `dns` to `false` and pass in a certificate validating ownership via `cert`.
|
|
394
|
+
*
|
|
395
|
+
* @default `sst.aws.dns`
|
|
396
|
+
*
|
|
397
|
+
* @example
|
|
398
|
+
*
|
|
399
|
+
* Specify the hosted zone ID for the Route 53 domain.
|
|
400
|
+
*
|
|
401
|
+
* ```js
|
|
402
|
+
* {
|
|
403
|
+
* domain: {
|
|
404
|
+
* name: "example.com",
|
|
405
|
+
* dns: sst.aws.dns({
|
|
406
|
+
* zone: "Z2FDTNDATAQYW2"
|
|
407
|
+
* })
|
|
408
|
+
* }
|
|
409
|
+
* }
|
|
410
|
+
* ```
|
|
411
|
+
*
|
|
412
|
+
* Use a domain hosted on Cloudflare, needs the Cloudflare provider.
|
|
413
|
+
*
|
|
414
|
+
* ```js
|
|
415
|
+
* {
|
|
416
|
+
* domain: {
|
|
417
|
+
* name: "example.com",
|
|
418
|
+
* dns: sst.cloudflare.dns()
|
|
419
|
+
* }
|
|
420
|
+
* }
|
|
421
|
+
* ```
|
|
422
|
+
*
|
|
423
|
+
* Use a domain hosted on Vercel, needs the Vercel provider.
|
|
424
|
+
*
|
|
425
|
+
* ```js
|
|
426
|
+
* {
|
|
427
|
+
* domain: {
|
|
428
|
+
* name: "example.com",
|
|
429
|
+
* dns: sst.vercel.dns()
|
|
430
|
+
* }
|
|
431
|
+
* }
|
|
432
|
+
* ```
|
|
433
|
+
*/
|
|
434
|
+
dns?: Input<false | (Dns & {})>;
|
|
435
|
+
}
|
|
436
|
+
>;
|
|
437
|
+
/**
|
|
438
|
+
* Configure the mapping for the ports the public endpoint listens to and forwards to
|
|
439
|
+
* the service.
|
|
440
|
+
* This supports two types of protocols:
|
|
441
|
+
*
|
|
442
|
+
* 1. Application Layer Protocols: `http` and `https`. This'll create an [Application Load Balancer](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/introduction.html).
|
|
443
|
+
* 2. Network Layer Protocols: `tcp`, `udp`, `tcp_udp`, and `tls`. This'll create a [Network Load Balancer](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/introduction.html).
|
|
444
|
+
*
|
|
445
|
+
* :::note
|
|
446
|
+
* If you are listening on `https` or `tls`, you need to specify a custom `public.domain`.
|
|
447
|
+
* :::
|
|
448
|
+
*
|
|
449
|
+
* You can **not** configure both application and network layer protocols for the same
|
|
450
|
+
* service.
|
|
451
|
+
*
|
|
452
|
+
* @example
|
|
453
|
+
* Here we are listening on port `80` and forwarding it to the service on port `8080`.
|
|
454
|
+
* ```js
|
|
455
|
+
* {
|
|
456
|
+
* public: {
|
|
457
|
+
* ports: [
|
|
458
|
+
* { listen: "80/http", forward: "8080/http" }
|
|
459
|
+
* ]
|
|
460
|
+
* }
|
|
461
|
+
* }
|
|
462
|
+
* ```
|
|
463
|
+
*
|
|
464
|
+
* The `forward` port and protocol defaults to the `listen` port and protocol. So in this
|
|
465
|
+
* case both are `80/http`.
|
|
466
|
+
*
|
|
467
|
+
* ```js
|
|
468
|
+
* {
|
|
469
|
+
* public: {
|
|
470
|
+
* ports: [
|
|
471
|
+
* { listen: "80/http" }
|
|
472
|
+
* ]
|
|
473
|
+
* }
|
|
474
|
+
* }
|
|
475
|
+
* ```
|
|
476
|
+
*/
|
|
477
|
+
ports: Input<
|
|
478
|
+
{
|
|
479
|
+
/**
|
|
480
|
+
* The port and protocol the service listens on. Uses the format `{port}/{protocol}`.
|
|
481
|
+
*/
|
|
482
|
+
listen: Input<Port>;
|
|
483
|
+
/**
|
|
484
|
+
* The port and protocol of the container the service forwards the traffic to. Uses the
|
|
485
|
+
* format `{port}/{protocol}`.
|
|
486
|
+
* @default The same port and protocol as `listen`.
|
|
487
|
+
*/
|
|
488
|
+
forward?: Input<Port>;
|
|
489
|
+
}[]
|
|
490
|
+
>;
|
|
491
|
+
}>;
|
|
492
|
+
/**
|
|
493
|
+
* The CPU architecture of the container in this service.
|
|
494
|
+
* @default `"x86_64"`
|
|
495
|
+
* @example
|
|
496
|
+
* ```js
|
|
497
|
+
* {
|
|
498
|
+
* architecture: "arm64"
|
|
499
|
+
* }
|
|
500
|
+
* ```
|
|
501
|
+
*/
|
|
502
|
+
architecture?: Input<"x86_64" | "arm64">;
|
|
503
|
+
/**
|
|
504
|
+
* The amount of CPU allocated to the container in this service.
|
|
505
|
+
*
|
|
506
|
+
* :::note
|
|
507
|
+
* [View the valid combinations](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/fargate-tasks-services.html#fargate-tasks-size) of CPU and memory.
|
|
508
|
+
* :::
|
|
509
|
+
*
|
|
510
|
+
* @default `"0.25 vCPU"`
|
|
511
|
+
* @example
|
|
512
|
+
* ```js
|
|
513
|
+
* {
|
|
514
|
+
* cpu: "1 vCPU"
|
|
515
|
+
* }
|
|
516
|
+
*```
|
|
517
|
+
*/
|
|
518
|
+
cpu?: keyof typeof supportedCpus;
|
|
519
|
+
/**
|
|
520
|
+
* The amount of memory allocated to the container in this service.
|
|
521
|
+
*
|
|
522
|
+
* :::note
|
|
523
|
+
* [View the valid combinations](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/fargate-tasks-services.html#fargate-tasks-size) of CPU and memory.
|
|
524
|
+
* :::
|
|
525
|
+
*
|
|
526
|
+
* @default `"0.5 GB"`
|
|
527
|
+
*
|
|
528
|
+
* @example
|
|
529
|
+
* ```js
|
|
530
|
+
* {
|
|
531
|
+
* memory: "2 GB"
|
|
532
|
+
* }
|
|
533
|
+
*```
|
|
534
|
+
*/
|
|
535
|
+
memory?: `${number} GB`;
|
|
536
|
+
/**
|
|
537
|
+
* The amount of ephemeral storage (in GB) allocated to a container in this service.
|
|
538
|
+
*
|
|
539
|
+
* @default `"21 GB"`
|
|
540
|
+
*
|
|
541
|
+
* @example
|
|
542
|
+
* ```js
|
|
543
|
+
* {
|
|
544
|
+
* storage: "100 GB"
|
|
545
|
+
* }
|
|
546
|
+
* ```
|
|
547
|
+
*/
|
|
548
|
+
storage?: `${number} GB`;
|
|
549
|
+
/**
|
|
550
|
+
* [Link resources](/docs/linking/) to your service. This will:
|
|
551
|
+
*
|
|
552
|
+
* 1. Grant the permissions needed to access the resources.
|
|
553
|
+
* 2. Allow you to access it in your app using the [SDK](/docs/reference/sdk/).
|
|
554
|
+
*
|
|
555
|
+
* @example
|
|
556
|
+
*
|
|
557
|
+
* Takes a list of components to link to the service.
|
|
558
|
+
*
|
|
559
|
+
* ```js
|
|
560
|
+
* {
|
|
561
|
+
* link: [bucket, stripeKey]
|
|
562
|
+
* }
|
|
563
|
+
* ```
|
|
564
|
+
*/
|
|
565
|
+
link?: FunctionArgs["link"];
|
|
566
|
+
/**
|
|
567
|
+
* Permissions and the resources that the service needs to access. These permissions are
|
|
568
|
+
* used to create the service's [task role](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html).
|
|
569
|
+
*
|
|
570
|
+
* :::tip
|
|
571
|
+
* If you `link` the service to a resource, the permissions to access it are
|
|
572
|
+
* automatically added.
|
|
573
|
+
* :::
|
|
574
|
+
*
|
|
575
|
+
* @example
|
|
576
|
+
* Allow the service to read and write to an S3 bucket called `my-bucket`.
|
|
577
|
+
*
|
|
578
|
+
* ```js
|
|
579
|
+
* {
|
|
580
|
+
* permissions: [
|
|
581
|
+
* {
|
|
582
|
+
* actions: ["s3:GetObject", "s3:PutObject"],
|
|
583
|
+
* resources: ["arn:aws:s3:::my-bucket/*"]
|
|
584
|
+
* },
|
|
585
|
+
* ]
|
|
586
|
+
* }
|
|
587
|
+
* ```
|
|
588
|
+
*
|
|
589
|
+
* Allow the service to perform all actions on an S3 bucket called `my-bucket`.
|
|
590
|
+
*
|
|
591
|
+
* ```js
|
|
592
|
+
* {
|
|
593
|
+
* permissions: [
|
|
594
|
+
* {
|
|
595
|
+
* actions: ["s3:*"],
|
|
596
|
+
* resources: ["arn:aws:s3:::my-bucket/*"]
|
|
597
|
+
* },
|
|
598
|
+
* ]
|
|
599
|
+
* }
|
|
600
|
+
* ```
|
|
601
|
+
*
|
|
602
|
+
* Granting the service permissions to access all resources.
|
|
603
|
+
*
|
|
604
|
+
* ```js
|
|
605
|
+
* {
|
|
606
|
+
* permissions: [
|
|
607
|
+
* {
|
|
608
|
+
* actions: ["*"],
|
|
609
|
+
* resources: ["*"]
|
|
610
|
+
* },
|
|
611
|
+
* ]
|
|
612
|
+
* }
|
|
613
|
+
* ```
|
|
614
|
+
*/
|
|
615
|
+
permissions?: FunctionArgs["permissions"];
|
|
616
|
+
/**
|
|
617
|
+
* Key-value pairs of values that are set as [container environment variables](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/taskdef-envfiles.html).
|
|
618
|
+
* The keys need to:
|
|
619
|
+
* - Start with a letter
|
|
620
|
+
* - Be at least 2 characters long
|
|
621
|
+
* - Contain only letters, numbers, or underscores
|
|
622
|
+
*
|
|
623
|
+
* @example
|
|
624
|
+
*
|
|
625
|
+
* ```js
|
|
626
|
+
* {
|
|
627
|
+
* environment: {
|
|
628
|
+
* DEBUG: "true"
|
|
629
|
+
* }
|
|
630
|
+
* }
|
|
631
|
+
* ```
|
|
632
|
+
*/
|
|
633
|
+
environment?: FunctionArgs["environment"];
|
|
634
|
+
/**
|
|
635
|
+
* Configure the service's logs in CloudWatch.
|
|
636
|
+
* @default `{ retention: "1 month" }`
|
|
637
|
+
* @example
|
|
638
|
+
* ```js
|
|
639
|
+
* {
|
|
640
|
+
* logging: {
|
|
641
|
+
* retention: "forever"
|
|
642
|
+
* }
|
|
643
|
+
* }
|
|
644
|
+
* ```
|
|
645
|
+
*/
|
|
646
|
+
logging?: Input<{
|
|
647
|
+
/**
|
|
648
|
+
* The duration the logs are kept in CloudWatch.
|
|
649
|
+
* @default `"1 month"`
|
|
650
|
+
*/
|
|
651
|
+
retention?: Input<keyof typeof RETENTION>;
|
|
652
|
+
}>;
|
|
653
|
+
/**
|
|
654
|
+
* Configure the service to automatically scale up or down based on the CPU or memory
|
|
655
|
+
* utilization of a container. By default, scaling is disabled and the service will run
|
|
656
|
+
* in a single container.
|
|
657
|
+
*
|
|
658
|
+
* @default `{ min: 1, max: 1 }`
|
|
659
|
+
*
|
|
660
|
+
* @example
|
|
661
|
+
* ```js
|
|
662
|
+
* {
|
|
663
|
+
* scaling: {
|
|
664
|
+
* min: 4,
|
|
665
|
+
* max: 16,
|
|
666
|
+
* cpuUtilization: 50,
|
|
667
|
+
* memoryUtilization: 50
|
|
668
|
+
* }
|
|
669
|
+
* }
|
|
670
|
+
* ```
|
|
671
|
+
*/
|
|
672
|
+
scaling?: Input<{
|
|
673
|
+
/**
|
|
674
|
+
* The minimum number of containers to scale down to.
|
|
675
|
+
* @default `1`
|
|
676
|
+
* @example
|
|
677
|
+
* ```js
|
|
678
|
+
* {
|
|
679
|
+
* scaling: {
|
|
680
|
+
* min: 4
|
|
681
|
+
* }
|
|
682
|
+
* }
|
|
683
|
+
*```
|
|
684
|
+
*/
|
|
685
|
+
min?: Input<number>;
|
|
686
|
+
/**
|
|
687
|
+
* The maximum number of containers to scale up to.
|
|
688
|
+
* @default `1`
|
|
689
|
+
* @example
|
|
690
|
+
* ```js
|
|
691
|
+
* {
|
|
692
|
+
* scaling: {
|
|
693
|
+
* max: 16
|
|
694
|
+
* }
|
|
695
|
+
* }
|
|
696
|
+
*```
|
|
697
|
+
*/
|
|
698
|
+
max?: Input<number>;
|
|
699
|
+
/**
|
|
700
|
+
* The target CPU utilization percentage to scale up or down. It'll scale up
|
|
701
|
+
* when the CPU utilization is above the target and scale down when it's below the target.
|
|
702
|
+
* @default `70`
|
|
703
|
+
* @example
|
|
704
|
+
* ```js
|
|
705
|
+
* {
|
|
706
|
+
* scaling: {
|
|
707
|
+
* cpuUtilization: 50
|
|
708
|
+
* }
|
|
709
|
+
* }
|
|
710
|
+
*```
|
|
711
|
+
*/
|
|
712
|
+
cpuUtilization?: Input<number>;
|
|
713
|
+
/**
|
|
714
|
+
* The target memory utilization percentage to scale up or down. It'll scale up
|
|
715
|
+
* when the memory utilization is above the target and scale down when it's below the target.
|
|
716
|
+
* @default `70`
|
|
717
|
+
* @example
|
|
718
|
+
* ```js
|
|
719
|
+
* {
|
|
720
|
+
* scaling: {
|
|
721
|
+
* memoryUtilization: 50
|
|
722
|
+
* }
|
|
723
|
+
* }
|
|
724
|
+
*```
|
|
725
|
+
*/
|
|
726
|
+
memoryUtilization?: Input<number>;
|
|
727
|
+
}>;
|
|
728
|
+
/**
|
|
729
|
+
* [Transform](/docs/components#transform) how this component creates its underlying
|
|
730
|
+
* resources.
|
|
731
|
+
*/
|
|
732
|
+
transform?: {
|
|
733
|
+
/**
|
|
734
|
+
* Transform the Docker Image resource.
|
|
735
|
+
*/
|
|
736
|
+
image?: Transform<ImageArgs>;
|
|
737
|
+
/**
|
|
738
|
+
* Transform the ECS Service resource.
|
|
739
|
+
*/
|
|
740
|
+
service?: Transform<ecs.ServiceArgs>;
|
|
741
|
+
/**
|
|
742
|
+
* Transform the ECS Task IAM Role resource.
|
|
743
|
+
*/
|
|
744
|
+
taskRole?: Transform<iam.RoleArgs>;
|
|
745
|
+
/**
|
|
746
|
+
* Transform the ECS Task Definition resource.
|
|
747
|
+
*/
|
|
748
|
+
taskDefinition?: Transform<ecs.TaskDefinitionArgs>;
|
|
749
|
+
/**
|
|
750
|
+
* Transform the AWS Load Balancer resource.
|
|
751
|
+
*/
|
|
752
|
+
loadBalancer?: Transform<lb.LoadBalancerArgs>;
|
|
753
|
+
/**
|
|
754
|
+
* Transform the AWS Security Group resource for the Load Balancer.
|
|
755
|
+
*/
|
|
756
|
+
loadBalancerSecurityGroup?: Transform<ec2.SecurityGroupArgs>;
|
|
757
|
+
/**
|
|
758
|
+
* Transform the AWS Load Balancer listener resource.
|
|
759
|
+
*/
|
|
760
|
+
listener?: Transform<lb.ListenerArgs>;
|
|
761
|
+
/**
|
|
762
|
+
* Transform the AWS Load Balancer target group resource.
|
|
763
|
+
*/
|
|
764
|
+
target?: Transform<lb.TargetGroupArgs>;
|
|
765
|
+
/**
|
|
766
|
+
* Transform the CloudWatch log group resource.
|
|
767
|
+
*/
|
|
768
|
+
logGroup?: Transform<cloudwatch.LogGroupArgs>;
|
|
769
|
+
};
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
* The `Cluster` component lets you create a cluster of containers and add services to them.
|
|
774
|
+
* It uses [Amazon ECS](https://aws.amazon.com/ecs/) on [AWS Fargate](https://aws.amazon.com/fargate/).
|
|
775
|
+
*
|
|
776
|
+
* For existing usage, rename `sst.aws.Cluster` to `sst.aws.Cluster.v1`. For new Clusters, use
|
|
777
|
+
* the latest [`Cluster`](/docs/component/aws/cluster) component instead.
|
|
778
|
+
*
|
|
779
|
+
* :::caution
|
|
780
|
+
* This component has been deprecated .
|
|
781
|
+
* :::
|
|
782
|
+
*
|
|
783
|
+
* @example
|
|
784
|
+
*
|
|
785
|
+
* #### Create a Cluster
|
|
786
|
+
*
|
|
787
|
+
* ```ts title="sst.config.ts"
|
|
788
|
+
* const vpc = new sst.aws.Vpc("MyVpc");
|
|
789
|
+
* const cluster = new sst.aws.Cluster.v1("MyCluster", { vpc });
|
|
790
|
+
* ```
|
|
791
|
+
*
|
|
792
|
+
* #### Add a service
|
|
793
|
+
*
|
|
794
|
+
* ```ts title="sst.config.ts"
|
|
795
|
+
* cluster.addService("MyService");
|
|
796
|
+
* ```
|
|
797
|
+
*
|
|
798
|
+
* #### Add a public custom domain
|
|
799
|
+
*
|
|
800
|
+
* ```ts title="sst.config.ts"
|
|
801
|
+
* cluster.addService("MyService", {
|
|
802
|
+
* public: {
|
|
803
|
+
* domain: "example.com",
|
|
804
|
+
* ports: [
|
|
805
|
+
* { listen: "80/http" },
|
|
806
|
+
* { listen: "443/https", forward: "80/http" },
|
|
807
|
+
* ]
|
|
808
|
+
* }
|
|
809
|
+
* });
|
|
810
|
+
* ```
|
|
811
|
+
*
|
|
812
|
+
* #### Enable auto-scaling
|
|
813
|
+
*
|
|
814
|
+
* ```ts title="sst.config.ts"
|
|
815
|
+
* cluster.addService("MyService", {
|
|
816
|
+
* scaling: {
|
|
817
|
+
* min: 4,
|
|
818
|
+
* max: 16,
|
|
819
|
+
* cpuUtilization: 50,
|
|
820
|
+
* memoryUtilization: 50,
|
|
821
|
+
* }
|
|
822
|
+
* });
|
|
823
|
+
* ```
|
|
824
|
+
*
|
|
825
|
+
* #### Link resources
|
|
826
|
+
*
|
|
827
|
+
* [Link resources](/docs/linking/) to your service. This will grant permissions
|
|
828
|
+
* to the resources and allow you to access it in your app.
|
|
829
|
+
*
|
|
830
|
+
* ```ts {4} title="sst.config.ts"
|
|
831
|
+
* const bucket = new sst.aws.Bucket("MyBucket");
|
|
832
|
+
*
|
|
833
|
+
* cluster.addService("MyService", {
|
|
834
|
+
* link: [bucket],
|
|
835
|
+
* });
|
|
836
|
+
* ```
|
|
837
|
+
*
|
|
838
|
+
* If your service is written in Node.js, you can use the [SDK](/docs/reference/sdk/)
|
|
839
|
+
* to access the linked resources.
|
|
840
|
+
*
|
|
841
|
+
* ```ts title="app.ts"
|
|
842
|
+
* import { Resource } from "sst";
|
|
843
|
+
*
|
|
844
|
+
* console.log(Resource.MyBucket.name);
|
|
845
|
+
* ```
|
|
846
|
+
*/
|
|
847
|
+
export class Cluster extends Component {
|
|
848
|
+
private args: ClusterArgs;
|
|
849
|
+
private cluster: ecs.Cluster;
|
|
850
|
+
|
|
851
|
+
constructor(
|
|
852
|
+
name: string,
|
|
853
|
+
args: ClusterArgs,
|
|
854
|
+
opts?: ComponentResourceOptions,
|
|
855
|
+
) {
|
|
856
|
+
super(__pulumiType, name, args, opts);
|
|
857
|
+
|
|
858
|
+
const parent = this;
|
|
859
|
+
|
|
860
|
+
const cluster = createCluster();
|
|
861
|
+
|
|
862
|
+
this.args = args;
|
|
863
|
+
this.cluster = cluster;
|
|
864
|
+
|
|
865
|
+
function createCluster() {
|
|
866
|
+
return new ecs.Cluster(
|
|
867
|
+
...transform(args.transform?.cluster, `${name}Cluster`, {}, { parent }),
|
|
868
|
+
);
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* The underlying [resources](/docs/components/#nodes) this component creates.
|
|
874
|
+
*/
|
|
875
|
+
public get nodes() {
|
|
876
|
+
return {
|
|
877
|
+
/**
|
|
878
|
+
* The Amazon ECS Cluster.
|
|
879
|
+
*/
|
|
880
|
+
cluster: this.cluster,
|
|
881
|
+
};
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* Add a service to the cluster.
|
|
886
|
+
*
|
|
887
|
+
* @param name Name of the service.
|
|
888
|
+
* @param args Configure the service.
|
|
889
|
+
*
|
|
890
|
+
* @example
|
|
891
|
+
*
|
|
892
|
+
* ```ts title="sst.config.ts"
|
|
893
|
+
* cluster.addService("MyService");
|
|
894
|
+
* ```
|
|
895
|
+
*
|
|
896
|
+
* Set a custom domain for the service.
|
|
897
|
+
*
|
|
898
|
+
* ```js {2} title="sst.config.ts"
|
|
899
|
+
* cluster.addService("MyService", {
|
|
900
|
+
* domain: "example.com"
|
|
901
|
+
* });
|
|
902
|
+
* ```
|
|
903
|
+
*
|
|
904
|
+
* #### Enable auto-scaling
|
|
905
|
+
*
|
|
906
|
+
* ```ts title="sst.config.ts"
|
|
907
|
+
* cluster.addService("MyService", {
|
|
908
|
+
* scaling: {
|
|
909
|
+
* min: 4,
|
|
910
|
+
* max: 16,
|
|
911
|
+
* cpuUtilization: 50,
|
|
912
|
+
* memoryUtilization: 50,
|
|
913
|
+
* }
|
|
914
|
+
* });
|
|
915
|
+
* ```
|
|
916
|
+
*/
|
|
917
|
+
public addService(name: string, args?: ClusterServiceArgs) {
|
|
918
|
+
// Do not prefix the service to allow `Resource.MyService` to work.
|
|
919
|
+
return new ServiceV1(name, {
|
|
920
|
+
cluster: {
|
|
921
|
+
name: this.cluster.name,
|
|
922
|
+
arn: this.cluster.arn,
|
|
923
|
+
},
|
|
924
|
+
vpc: this.args.vpc,
|
|
925
|
+
...args,
|
|
926
|
+
});
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
const __pulumiType = "sst:aws:Cluster";
|
|
931
|
+
// @ts-expect-error
|
|
932
|
+
Cluster.__pulumiType = __pulumiType;
|