monorise 0.0.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/dist/base/index.d.ts +254 -0
- package/dist/base/index.js +44 -0
- package/dist/base/index.js.map +1 -0
- package/dist/cli/cli.d.ts +1 -0
- package/dist/cli/cli.js +461 -0
- package/dist/cli/cli.js.map +1 -0
- package/dist/core/index.d.ts +4767 -0
- package/dist/core/index.js +7941 -0
- package/dist/core/index.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +11 -0
- package/dist/react/actions/app.action.d.ts +46 -0
- package/dist/react/actions/app.action.d.ts.map +1 -0
- package/dist/react/actions/auth.action.d.ts +24 -0
- package/dist/react/actions/auth.action.d.ts.map +1 -0
- package/dist/react/actions/config.action.d.ts +10 -0
- package/dist/react/actions/config.action.d.ts.map +1 -0
- package/dist/react/actions/core.action.d.ts +219 -0
- package/dist/react/actions/core.action.d.ts.map +1 -0
- package/dist/react/index.d.ts +1093 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +2344 -0
- package/dist/react/index.js.map +1 -0
- package/dist/react/lib/api.d.ts +38 -0
- package/dist/react/lib/api.d.ts.map +1 -0
- package/dist/react/lib/constant.d.ts +2 -0
- package/dist/react/lib/constant.d.ts.map +1 -0
- package/dist/react/lib/entity.d.ts +10 -0
- package/dist/react/lib/entity.d.ts.map +1 -0
- package/dist/react/lib/utils.d.ts +10 -0
- package/dist/react/lib/utils.d.ts.map +1 -0
- package/dist/react/services/auth.service.d.ts +21 -0
- package/dist/react/services/auth.service.d.ts.map +1 -0
- package/dist/react/services/core.service.d.ts +76 -0
- package/dist/react/services/core.service.d.ts.map +1 -0
- package/dist/react/services/filestore.service.d.ts +22 -0
- package/dist/react/services/filestore.service.d.ts.map +1 -0
- package/dist/react/store/monorise.store.d.ts +169 -0
- package/dist/react/store/monorise.store.d.ts.map +1 -0
- package/dist/react/tsup.config.d.ts +3 -0
- package/dist/react/tsup.config.d.ts.map +1 -0
- package/dist/react/types/api.type.d.ts +30 -0
- package/dist/react/types/api.type.d.ts.map +1 -0
- package/dist/react/types/axios.type.d.ts +13 -0
- package/dist/react/types/axios.type.d.ts.map +1 -0
- package/dist/react/types/monorise.type.d.ts +8 -0
- package/dist/react/types/monorise.type.d.ts.map +1 -0
- package/dist/react/types/mutual.type.d.ts +21 -0
- package/dist/react/types/mutual.type.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/analog.d.ts +423 -0
- package/dist/sst/.sst/platform/src/components/aws/analog.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket-route.d.ts +74 -0
- package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket.d.ts +542 -0
- package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-api-key.d.ts +48 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-api-key.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-authorizer.d.ts +55 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-authorizer.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-base-route.d.ts +36 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-base-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-integration-route.d.ts +39 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-integration-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-lambda-route.d.ts +53 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-lambda-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-usage-plan.d.ts +53 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-usage-plan.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1.d.ts +1002 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-authorizer.d.ts +54 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-authorizer.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-base-route.d.ts +28 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-base-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-lambda-route.d.ts +59 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-lambda-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-private-route.d.ts +54 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-private-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-url-route.d.ts +44 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-url-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2.d.ts +931 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-data-source.d.ts +52 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-data-source.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-function.d.ts +33 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-function.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-resolver.d.ts +41 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-resolver.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync.d.ts +638 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/astro.d.ts +421 -0
- package/dist/sst/.sst/platform/src/components/aws/astro.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/aurora.d.ts +702 -0
- package/dist/sst/.sst/platform/src/components/aws/aurora.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/auth-v1.d.ts +26 -0
- package/dist/sst/.sst/platform/src/components/aws/auth-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/auth.d.ts +295 -0
- package/dist/sst/.sst/platform/src/components/aws/auth.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-lambda-subscriber.d.ts +61 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-notification.d.ts +47 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-notification.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-queue-subscriber.d.ts +55 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-queue-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-topic-subscriber.d.ts +55 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-topic-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket.d.ts +1216 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-base-subscriber.d.ts +20 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-base-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-lambda-subscriber.d.ts +49 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-queue-subscriber.d.ts +44 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-queue-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bus.d.ts +403 -0
- package/dist/sst/.sst/platform/src/components/aws/bus.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cdn.d.ts +299 -0
- package/dist/sst/.sst/platform/src/components/aws/cdn.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cluster-v1.d.ts +882 -0
- package/dist/sst/.sst/platform/src/components/aws/cluster-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cluster.d.ts +306 -0
- package/dist/sst/.sst/platform/src/components/aws/cluster.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-identity-pool.d.ts +194 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-identity-pool.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-identity-provider.d.ts +38 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-identity-provider.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool-client.d.ts +50 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool-client.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool.d.ts +603 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cron.d.ts +250 -0
- package/dist/sst/.sst/platform/src/components/aws/cron.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/dns-validated-certificate.d.ts +27 -0
- package/dist/sst/.sst/platform/src/components/aws/dns-validated-certificate.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/dns.d.ts +94 -0
- package/dist/sst/.sst/platform/src/components/aws/dns.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/dynamo-lambda-subscriber.d.ts +55 -0
- package/dist/sst/.sst/platform/src/components/aws/dynamo-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/dynamo.d.ts +568 -0
- package/dist/sst/.sst/platform/src/components/aws/dynamo.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/efs.d.ts +217 -0
- package/dist/sst/.sst/platform/src/components/aws/efs.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/email.d.ts +291 -0
- package/dist/sst/.sst/platform/src/components/aws/email.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/fargate.d.ts +803 -0
- package/dist/sst/.sst/platform/src/components/aws/fargate.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/function.d.ts +1629 -0
- package/dist/sst/.sst/platform/src/components/aws/function.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/apigateway-account.d.ts +3 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/apigateway-account.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.d.ts +144 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/arn.d.ts +40 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/arn.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/bootstrap.d.ts +13 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/bootstrap.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/container-builder.d.ts +4 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/container-builder.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/function-builder.d.ts +10 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/function-builder.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/provider.d.ts +3 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/provider.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/quota.d.ts +7 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/quota.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/site-builder.d.ts +4 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/site-builder.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/subscriber.d.ts +6 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/https-redirect.d.ts +38 -0
- package/dist/sst/.sst/platform/src/components/aws/https-redirect.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/iam-edit.d.ts +39 -0
- package/dist/sst/.sst/platform/src/components/aws/iam-edit.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/index.d.ts +48 -0
- package/dist/sst/.sst/platform/src/components/aws/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.d.ts +48 -0
- package/dist/sst/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/kinesis-stream.d.ts +249 -0
- package/dist/sst/.sst/platform/src/components/aws/kinesis-stream.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/linkable.d.ts +17 -0
- package/dist/sst/.sst/platform/src/components/aws/linkable.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/logging.d.ts +26 -0
- package/dist/sst/.sst/platform/src/components/aws/logging.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/mysql.d.ts +496 -0
- package/dist/sst/.sst/platform/src/components/aws/mysql.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/nextjs.d.ts +517 -0
- package/dist/sst/.sst/platform/src/components/aws/nextjs.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/nuxt.d.ts +495 -0
- package/dist/sst/.sst/platform/src/components/aws/nuxt.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/open-search.d.ts +295 -0
- package/dist/sst/.sst/platform/src/components/aws/open-search.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/opencontrol.d.ts +165 -0
- package/dist/sst/.sst/platform/src/components/aws/opencontrol.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/permission.d.ts +40 -0
- package/dist/sst/.sst/platform/src/components/aws/permission.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/postgres-v1.d.ts +317 -0
- package/dist/sst/.sst/platform/src/components/aws/postgres-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/postgres.d.ts +500 -0
- package/dist/sst/.sst/platform/src/components/aws/postgres.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/bucket-files.d.ts +18 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/bucket-files.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.d.ts +13 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/distribution-invalidation.d.ts +11 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/distribution-invalidation.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/function-environment-update.d.ts +29 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/function-environment-update.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/hosted-zone-lookup.d.ts +11 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/hosted-zone-lookup.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/kv-keys.d.ts +11 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/kv-keys.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/kv-routes-update.d.ts +11 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/kv-routes-update.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/origin-access-control.d.ts +8 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/origin-access-control.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/rds-role-lookup.d.ts +8 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/rds-role-lookup.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/vector-table.d.ts +12 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/vector-table.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/queue-lambda-subscriber.d.ts +48 -0
- package/dist/sst/.sst/platform/src/components/aws/queue-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/queue.d.ts +485 -0
- package/dist/sst/.sst/platform/src/components/aws/queue.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/react.d.ts +416 -0
- package/dist/sst/.sst/platform/src/components/aws/react.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/realtime-lambda-subscriber.d.ts +53 -0
- package/dist/sst/.sst/platform/src/components/aws/realtime-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/realtime.d.ts +232 -0
- package/dist/sst/.sst/platform/src/components/aws/realtime.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/redis-v1.d.ts +338 -0
- package/dist/sst/.sst/platform/src/components/aws/redis-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/redis.d.ts +364 -0
- package/dist/sst/.sst/platform/src/components/aws/redis.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/remix.d.ts +423 -0
- package/dist/sst/.sst/platform/src/components/aws/remix.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/router-base-route.d.ts +28 -0
- package/dist/sst/.sst/platform/src/components/aws/router-base-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/router-bucket-route.d.ts +29 -0
- package/dist/sst/.sst/platform/src/components/aws/router-bucket-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/router-url-route.d.ts +28 -0
- package/dist/sst/.sst/platform/src/components/aws/router-url-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/router.d.ts +1272 -0
- package/dist/sst/.sst/platform/src/components/aws/router.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/service-v1.d.ts +78 -0
- package/dist/sst/.sst/platform/src/components/aws/service-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/service.d.ts +1625 -0
- package/dist/sst/.sst/platform/src/components/aws/service.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.d.ts +53 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic-queue-subscriber.d.ts +55 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic-queue-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic.d.ts +389 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/solid-start.d.ts +414 -0
- package/dist/sst/.sst/platform/src/components/aws/solid-start.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/ssr-site.d.ts +685 -0
- package/dist/sst/.sst/platform/src/components/aws/ssr-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/static-site.d.ts +736 -0
- package/dist/sst/.sst/platform/src/components/aws/static-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/choice.d.ts +73 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/choice.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/fail.d.ts +63 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/fail.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/map.d.ts +236 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/map.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/parallel.d.ts +127 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/parallel.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/pass.d.ts +39 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/pass.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/state.d.ts +231 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/state.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/succeed.d.ts +26 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/succeed.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/task.d.ts +477 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/task.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/wait.d.ts +91 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/wait.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions.d.ts +473 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/svelte-kit.d.ts +417 -0
- package/dist/sst/.sst/platform/src/components/aws/svelte-kit.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/tan-stack-start.d.ts +354 -0
- package/dist/sst/.sst/platform/src/components/aws/tan-stack-start.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/task.d.ts +322 -0
- package/dist/sst/.sst/platform/src/components/aws/task.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/vector.d.ts +150 -0
- package/dist/sst/.sst/platform/src/components/aws/vector.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/vpc-v1.d.ts +208 -0
- package/dist/sst/.sst/platform/src/components/aws/vpc-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/vpc.d.ts +444 -0
- package/dist/sst/.sst/platform/src/components/aws/vpc.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/base/base-site.d.ts +53 -0
- package/dist/sst/.sst/platform/src/components/base/base-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/base/base-ssr-site.d.ts +13 -0
- package/dist/sst/.sst/platform/src/components/base/base-ssr-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/base/base-static-site.d.ts +199 -0
- package/dist/sst/.sst/platform/src/components/base/base-static-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/account-id.d.ts +2 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/account-id.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/auth.d.ts +22 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/auth.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/binding.d.ts +69 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/binding.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/bucket.d.ts +103 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/bucket.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/cron.d.ts +121 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/cron.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/d1.d.ts +107 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/d1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/dns.d.ts +94 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/dns.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/astro.d.ts +186 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/astro.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/index.d.ts +4 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/solid-start.d.ts +171 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/solid-start.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/static-site.d.ts +222 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/static-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/helpers/fetch.d.ts +19 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/helpers/fetch.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/helpers/worker-builder.d.ts +10 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/helpers/worker-builder.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/index.d.ts +16 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/kv.d.ts +107 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/kv.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/dns-record.d.ts +20 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/dns-record.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/kv-data.d.ts +23 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/kv-data.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-assets.d.ts +18 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-assets.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-url.d.ts +22 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-url.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/zone-lookup.d.ts +22 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/zone-lookup.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/queue.d.ts +60 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/queue.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/ssr-site.d.ts +51 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/ssr-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/static-site.d.ts +262 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/static-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/worker.d.ts +295 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/worker.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/component.d.ts +37 -0
- package/dist/sst/.sst/platform/src/components/component.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cpu.d.ts +3 -0
- package/dist/sst/.sst/platform/src/components/cpu.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/dns.d.ts +59 -0
- package/dist/sst/.sst/platform/src/components/dns.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/duration.d.ts +7 -0
- package/dist/sst/.sst/platform/src/components/duration.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/error.d.ts +4 -0
- package/dist/sst/.sst/platform/src/components/error.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/experimental/dev-command.d.ts +99 -0
- package/dist/sst/.sst/platform/src/components/experimental/dev-command.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/experimental/index.d.ts +2 -0
- package/dist/sst/.sst/platform/src/components/experimental/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/index.d.ts +16 -0
- package/dist/sst/.sst/platform/src/components/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/input.d.ts +3 -0
- package/dist/sst/.sst/platform/src/components/input.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/link.d.ts +41 -0
- package/dist/sst/.sst/platform/src/components/link.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/linkable.d.ts +271 -0
- package/dist/sst/.sst/platform/src/components/linkable.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/naming.d.ts +7 -0
- package/dist/sst/.sst/platform/src/components/naming.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/path.d.ts +2 -0
- package/dist/sst/.sst/platform/src/components/path.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/rpc/rpc.d.ts +19 -0
- package/dist/sst/.sst/platform/src/components/rpc/rpc.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/secret.d.ts +125 -0
- package/dist/sst/.sst/platform/src/components/secret.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/size.d.ts +5 -0
- package/dist/sst/.sst/platform/src/components/size.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/vercel/account-id.d.ts +2 -0
- package/dist/sst/.sst/platform/src/components/vercel/account-id.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/vercel/dns.d.ts +73 -0
- package/dist/sst/.sst/platform/src/components/vercel/dns.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/vercel/index.d.ts +3 -0
- package/dist/sst/.sst/platform/src/components/vercel/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/vercel/providers/dns-record.d.ts +14 -0
- package/dist/sst/.sst/platform/src/components/vercel/providers/dns-record.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/config.d.ts +1258 -0
- package/dist/sst/.sst/platform/src/config.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/util/compare-semver.d.ts +4 -0
- package/dist/sst/.sst/platform/src/util/compare-semver.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/util/fs.d.ts +5 -0
- package/dist/sst/.sst/platform/src/util/fs.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/util/lazy.d.ts +2 -0
- package/dist/sst/.sst/platform/src/util/lazy.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/util/semaphore.d.ts +9 -0
- package/dist/sst/.sst/platform/src/util/semaphore.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/util/warn.d.ts +2 -0
- package/dist/sst/.sst/platform/src/util/warn.d.ts.map +1 -0
- package/dist/sst/components/dashboard.d.ts +2 -0
- package/dist/sst/components/dashboard.d.ts.map +1 -0
- package/dist/sst/components/monorise-core.d.ts +18 -0
- package/dist/sst/components/monorise-core.d.ts.map +1 -0
- package/dist/sst/components/q-function.d.ts +17 -0
- package/dist/sst/components/q-function.d.ts.map +1 -0
- package/dist/sst/components/single-table.d.ts +14 -0
- package/dist/sst/components/single-table.d.ts.map +1 -0
- package/dist/sst/constants/event.d.ts +73 -0
- package/dist/sst/constants/event.d.ts.map +1 -0
- package/dist/sst/constants/table.d.ts +3 -0
- package/dist/sst/constants/table.d.ts.map +1 -0
- package/dist/sst/index.d.ts +11 -0
- package/dist/sst/index.d.ts.map +1 -0
- package/dist/sst/index.js +609 -0
- package/dist/sst/index.js.map +1 -0
- package/dist/sst/sst.config.d.ts +3 -0
- package/dist/sst/sst.config.d.ts.map +1 -0
- package/dist/sst/tsup.config.d.ts +3 -0
- package/dist/sst/tsup.config.d.ts.map +1 -0
- package/package.json +83 -0
|
@@ -0,0 +1,1258 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `sst.config.ts` file is used to configure your SST app and its resources.
|
|
3
|
+
*
|
|
4
|
+
* ```ts
|
|
5
|
+
* $config(input: Config): Config
|
|
6
|
+
* ```
|
|
7
|
+
*
|
|
8
|
+
* You specify it using the `$config` function. This takes an object of type [`Config`](#config).
|
|
9
|
+
*
|
|
10
|
+
* ```ts title="sst.config.ts"
|
|
11
|
+
* /// <reference path="./.sst/platform/config.d.ts" />
|
|
12
|
+
*
|
|
13
|
+
* export default $config({
|
|
14
|
+
* // Your app's config
|
|
15
|
+
* app(input) {
|
|
16
|
+
* return {
|
|
17
|
+
* name: "my-sst-app",
|
|
18
|
+
* home: "aws"
|
|
19
|
+
* };
|
|
20
|
+
* },
|
|
21
|
+
* // Your app's resources
|
|
22
|
+
* async run() {
|
|
23
|
+
* const bucket = new sst.aws.Bucket("MyBucket");
|
|
24
|
+
*
|
|
25
|
+
* // Your app's outputs
|
|
26
|
+
* return {
|
|
27
|
+
* bucket: bucket.name
|
|
28
|
+
* };
|
|
29
|
+
* },
|
|
30
|
+
* // Optionally, your app's Console config
|
|
31
|
+
* console: {
|
|
32
|
+
* autodeploy: {
|
|
33
|
+
* runner: { compute: "large" }
|
|
34
|
+
* }
|
|
35
|
+
* }
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* The `Config` object takes:
|
|
40
|
+
* 1. [`app`](#app-2) — Your config
|
|
41
|
+
* 2. [`run`](#run) — Your resources
|
|
42
|
+
* 3. [`console`](#console) — Optionally, your app's Console config
|
|
43
|
+
*
|
|
44
|
+
* The `app` function is evaluated right when your app loads. It's used to define the app config and its providers.
|
|
45
|
+
*
|
|
46
|
+
* :::note
|
|
47
|
+
* You need TypeScript 5 to see the types in your config.
|
|
48
|
+
* :::
|
|
49
|
+
*
|
|
50
|
+
* You can add Pulumi code in the `run` function not the `app` function. While the `run`
|
|
51
|
+
* function is where you define your resources using SST or Pulumi's components.
|
|
52
|
+
*
|
|
53
|
+
* The run function also has access to a list of [Global](/docs/reference/global/) `$` variables and functions. These serve as the context for your app config.
|
|
54
|
+
*
|
|
55
|
+
* :::caution
|
|
56
|
+
* Do not `import` the provider packages in your `sst.config.ts`.
|
|
57
|
+
* :::
|
|
58
|
+
*
|
|
59
|
+
* Since SST manages importing your provider packages, it's recommended not to add any imports
|
|
60
|
+
* in your `sst.config.ts`.
|
|
61
|
+
*
|
|
62
|
+
* ---
|
|
63
|
+
*
|
|
64
|
+
* #### .env
|
|
65
|
+
*
|
|
66
|
+
* Your `.env` and `.env.<stage>` files are loaded as environment variables in your config.
|
|
67
|
+
* They need to be in the same directory as your `sst.config.ts`.
|
|
68
|
+
*
|
|
69
|
+
* ```bash title=".env"
|
|
70
|
+
* MY_ENV_VAR=hello
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* And are available as `process.env` in both your `app` and `run` functions.
|
|
74
|
+
*
|
|
75
|
+
* ```ts title="sst.config.ts"
|
|
76
|
+
* process.env.MY_ENV_VAR
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* The `.env` file takes precedence over `.env.<stage>`. So if you have a `.env` and a
|
|
80
|
+
* `.env.dev` file, the values in the `.env` file will be used.
|
|
81
|
+
*
|
|
82
|
+
* :::note
|
|
83
|
+
* You need to restart `sst dev` for changes in your `.env` files to take effect.
|
|
84
|
+
* :::
|
|
85
|
+
*
|
|
86
|
+
* Make sure the stage name in your `.env.<stage>` matches the stage your app is running on.
|
|
87
|
+
*
|
|
88
|
+
* @packageDocumentation
|
|
89
|
+
*/
|
|
90
|
+
import type { Shell } from "bun";
|
|
91
|
+
type Prettify<T> = {
|
|
92
|
+
[K in keyof T]: T[K];
|
|
93
|
+
} & {};
|
|
94
|
+
export interface App {
|
|
95
|
+
/**
|
|
96
|
+
* The version of SST supported by the app. The CLI will fail any commands if the version does
|
|
97
|
+
* not match.
|
|
98
|
+
*
|
|
99
|
+
* :::tip
|
|
100
|
+
* Useful in CI where you don't want it to automatically deploy with a new version of SST.
|
|
101
|
+
* :::
|
|
102
|
+
*
|
|
103
|
+
* @default The latest version of SST.
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
*
|
|
107
|
+
* Takes a specific version.
|
|
108
|
+
*
|
|
109
|
+
* ```ts
|
|
110
|
+
* version: "3.2.49"
|
|
111
|
+
* ```
|
|
112
|
+
*
|
|
113
|
+
* Also supports semver ranges.
|
|
114
|
+
* ```ts
|
|
115
|
+
* version: ">= 3.2.49"
|
|
116
|
+
* ```
|
|
117
|
+
*/
|
|
118
|
+
version?: string;
|
|
119
|
+
/**
|
|
120
|
+
* The name of the app. This is used to prefix the names of the resources in your app.
|
|
121
|
+
*
|
|
122
|
+
* :::caution
|
|
123
|
+
* If you change the name of your app, it'll redeploy your app with new resources. The old resources will be orphaned.
|
|
124
|
+
* :::
|
|
125
|
+
*
|
|
126
|
+
* This means that you don't want to change the name of your app without removing the old resources first.
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
*
|
|
130
|
+
* ```ts
|
|
131
|
+
* {
|
|
132
|
+
* name: "my-sst-app"
|
|
133
|
+
* }
|
|
134
|
+
* ```
|
|
135
|
+
*/
|
|
136
|
+
name: string;
|
|
137
|
+
/**
|
|
138
|
+
* Configure how your resources are handled when they have to be removed.
|
|
139
|
+
*
|
|
140
|
+
* - `remove`: Removes the underlying resource.
|
|
141
|
+
* - `retain`: Retains resources like S3 buckets and DynamoDB tables. Removes everything else.
|
|
142
|
+
* - `retain-all`: Retains all resources.
|
|
143
|
+
*
|
|
144
|
+
* :::tip
|
|
145
|
+
* If you change your removal policy, you'll need to deploy your app once for it to take
|
|
146
|
+
* effect.
|
|
147
|
+
* :::
|
|
148
|
+
*
|
|
149
|
+
* For example, retain resources if it's the _production_ stage, otherwise remove all
|
|
150
|
+
* resources.
|
|
151
|
+
*
|
|
152
|
+
* ```ts
|
|
153
|
+
* {
|
|
154
|
+
* removal: input.stage === "production" ? "retain" : "remove"
|
|
155
|
+
* }
|
|
156
|
+
* ```
|
|
157
|
+
*
|
|
158
|
+
* This applies to not just the `sst remove` command but also cases where you remove a
|
|
159
|
+
* resource from the `sst.config.ts` and run `sst dev` or `sst deploy`.
|
|
160
|
+
*
|
|
161
|
+
* <VideoAside title="Watch a video on how to protect your prod resources" href="https://youtu.be/fb6UBGwgDuA" />
|
|
162
|
+
*
|
|
163
|
+
* To control how a stage is handled on `sst remove`, check out the `protect` prop.
|
|
164
|
+
*
|
|
165
|
+
* @default `"retain"`
|
|
166
|
+
*/
|
|
167
|
+
removal?: "remove" | "retain" | "retain-all";
|
|
168
|
+
/**
|
|
169
|
+
* The providers that are being used in this app. This allows you to use the resources from
|
|
170
|
+
* these providers in your app.
|
|
171
|
+
*
|
|
172
|
+
* ```ts
|
|
173
|
+
* {
|
|
174
|
+
* providers: {
|
|
175
|
+
* aws: "6.27.0",
|
|
176
|
+
* cloudflare: "5.37.1"
|
|
177
|
+
* }
|
|
178
|
+
* }
|
|
179
|
+
* ```
|
|
180
|
+
*
|
|
181
|
+
* Check out the full list in the [Directory](/docs/all-providers#directory).
|
|
182
|
+
*
|
|
183
|
+
* :::tip
|
|
184
|
+
* You'll need to run `sst install` after you update the `providers` in your config.
|
|
185
|
+
* :::
|
|
186
|
+
*
|
|
187
|
+
* If you don't set a `provider` it uses your `home` provider with the default config. So if you set `home` to `aws`, it's the same as doing:
|
|
188
|
+
*
|
|
189
|
+
* ```ts
|
|
190
|
+
* {
|
|
191
|
+
* home: "aws",
|
|
192
|
+
* providers: {
|
|
193
|
+
* aws: "6.27.0"
|
|
194
|
+
* }
|
|
195
|
+
* }
|
|
196
|
+
* ```
|
|
197
|
+
*
|
|
198
|
+
* You can also configure the provider props. Here's the config for some common providers:
|
|
199
|
+
* - [AWS](https://www.pulumi.com/registry/packages/aws/api-docs/provider/#inputs)
|
|
200
|
+
* - [Cloudflare](https://www.pulumi.com/registry/packages/cloudflare/api-docs/provider/#inputs)
|
|
201
|
+
*
|
|
202
|
+
* @example
|
|
203
|
+
*
|
|
204
|
+
* For example, to change the region for AWS.
|
|
205
|
+
*
|
|
206
|
+
* ```ts
|
|
207
|
+
* {
|
|
208
|
+
* providers: {
|
|
209
|
+
* aws: {
|
|
210
|
+
* region: "us-west-2"
|
|
211
|
+
* }
|
|
212
|
+
* }
|
|
213
|
+
* }
|
|
214
|
+
* ```
|
|
215
|
+
*
|
|
216
|
+
* @default The `home` provider.
|
|
217
|
+
*/
|
|
218
|
+
providers?: Record<string, any>;
|
|
219
|
+
/**
|
|
220
|
+
* The provider SST will use to store the state for your app. The state keeps track of all your resources and secrets. The state is generated locally and backed up in your cloud provider.
|
|
221
|
+
*
|
|
222
|
+
*
|
|
223
|
+
* Currently supports AWS, Cloudflare and local.
|
|
224
|
+
*
|
|
225
|
+
* :::tip
|
|
226
|
+
* SST uses the `home` provider to store the state for your app. If you use the local provider it will be saved on your machine. You can see where by running `sst version`.
|
|
227
|
+
* :::
|
|
228
|
+
*
|
|
229
|
+
* If you want to configure the aws or cloudflare home provider, you can:
|
|
230
|
+
*
|
|
231
|
+
* ```ts
|
|
232
|
+
* {
|
|
233
|
+
* home: "aws",
|
|
234
|
+
* providers: {
|
|
235
|
+
* aws: {
|
|
236
|
+
* region: "us-west-2"
|
|
237
|
+
* }
|
|
238
|
+
* }
|
|
239
|
+
* }
|
|
240
|
+
* ```
|
|
241
|
+
*
|
|
242
|
+
*/
|
|
243
|
+
home: "aws" | "cloudflare" | "local";
|
|
244
|
+
/**
|
|
245
|
+
* If set to `true`, the `sst remove` CLI will not run and will error out.
|
|
246
|
+
*
|
|
247
|
+
* This is useful for preventing cases where you run `sst remove --stage <stage>` for the
|
|
248
|
+
* wrong stage.
|
|
249
|
+
*
|
|
250
|
+
* :::tip
|
|
251
|
+
* Protect your production stages from being accidentally removed.
|
|
252
|
+
* :::
|
|
253
|
+
*
|
|
254
|
+
* For example, prevent the _production_ stage from being removed.
|
|
255
|
+
*
|
|
256
|
+
* ```ts
|
|
257
|
+
* {
|
|
258
|
+
* protect: input.stage === "production"
|
|
259
|
+
* }
|
|
260
|
+
* ```
|
|
261
|
+
*
|
|
262
|
+
* However, this only applies to `sst remove` for stages.
|
|
263
|
+
*
|
|
264
|
+
* <VideoAside title="Watch a video on how to protect your prod resources" href="https://youtu.be/fb6UBGwgDuA" />
|
|
265
|
+
*
|
|
266
|
+
* If you accidentally remove a resource from the `sst.config.ts` and run `sst deploy` or
|
|
267
|
+
* `sst dev`, it'll still get removed. To avoid this, check out the `removal` prop.
|
|
268
|
+
*/
|
|
269
|
+
protect?: boolean;
|
|
270
|
+
/**
|
|
271
|
+
* Configure which directories should be watched for changes when running `sst dev`.
|
|
272
|
+
* By default, all directories are watched (except node_modules and hidden directories).
|
|
273
|
+
*
|
|
274
|
+
* @example
|
|
275
|
+
* ```ts
|
|
276
|
+
* {
|
|
277
|
+
* watch: ["packages/www", "packages/api"]
|
|
278
|
+
* }
|
|
279
|
+
* ```
|
|
280
|
+
*
|
|
281
|
+
* This will only watch the `packages/www` and `packages/api` directories.
|
|
282
|
+
* The paths are relative to the project root.
|
|
283
|
+
*/
|
|
284
|
+
watch?: string[];
|
|
285
|
+
}
|
|
286
|
+
export interface AppInput {
|
|
287
|
+
/**
|
|
288
|
+
* The stage this app is running on. This is a string that can be passed in through the CLI.
|
|
289
|
+
*
|
|
290
|
+
* :::caution
|
|
291
|
+
* Changing the stage will redeploy your app to a new stage with new resources. The old resources will still be around in the old stage.
|
|
292
|
+
* :::
|
|
293
|
+
*
|
|
294
|
+
* If not passed in, it'll use the username of your local machine, or prompt you for it.
|
|
295
|
+
*/
|
|
296
|
+
stage: string;
|
|
297
|
+
}
|
|
298
|
+
export interface RunnerInput {
|
|
299
|
+
/**
|
|
300
|
+
* The stage the deployment will be run in.
|
|
301
|
+
*/
|
|
302
|
+
stage: string;
|
|
303
|
+
}
|
|
304
|
+
export interface Runner {
|
|
305
|
+
/**
|
|
306
|
+
* The service used to run the build. Currently, only AWS CodeBuild is supported.
|
|
307
|
+
*/
|
|
308
|
+
engine: "codebuild";
|
|
309
|
+
/**
|
|
310
|
+
* The timeout for the build. It can be from `5 minutes` to `36 hours`.
|
|
311
|
+
* @default `1 hour`
|
|
312
|
+
*/
|
|
313
|
+
timeout?: `${number} ${"minute" | "minutes" | "hour" | "hours"}`;
|
|
314
|
+
/**
|
|
315
|
+
* The architecture of the build machine.
|
|
316
|
+
*
|
|
317
|
+
* The `x86_64` machine uses the [`al/standard/5.0`](https://github.com/aws/aws-codebuild-docker-images/tree/master/al/x86_64/standard/5.0) build image.
|
|
318
|
+
* While `arm64` uses the [`al/aarch64/standard/3.0`](https://github.com/aws/aws-codebuild-docker-images/tree/master/al/aarch64/standard/3.0) image instead.
|
|
319
|
+
*
|
|
320
|
+
* You can also configure what's used in the image:
|
|
321
|
+
*
|
|
322
|
+
* - **Node**
|
|
323
|
+
*
|
|
324
|
+
* To specify the version of Node you want to use in your build, you can use the
|
|
325
|
+
* `.node-version`, `.nvmrc`, or use the `engine` field in your `package.json`.
|
|
326
|
+
*
|
|
327
|
+
* <Tabs>
|
|
328
|
+
* <TabItem label="package.json">
|
|
329
|
+
* ```js title="package.json"
|
|
330
|
+
* {
|
|
331
|
+
* engine: {
|
|
332
|
+
* node: "20.15.1"
|
|
333
|
+
* }
|
|
334
|
+
* }
|
|
335
|
+
* ```
|
|
336
|
+
* </TabItem>
|
|
337
|
+
* <TabItem label="node-version">
|
|
338
|
+
* ```bash title=".node-version"
|
|
339
|
+
* 20.15.1
|
|
340
|
+
* ```
|
|
341
|
+
* </TabItem>
|
|
342
|
+
* <TabItem label="nvmrc">
|
|
343
|
+
* ```bash title=".nvmrc"
|
|
344
|
+
* 20.15.1
|
|
345
|
+
* ```
|
|
346
|
+
* </TabItem>
|
|
347
|
+
* </Tabs>
|
|
348
|
+
*
|
|
349
|
+
* - **Package manager**
|
|
350
|
+
*
|
|
351
|
+
* To specify the package manager you want to use you can configure it through your
|
|
352
|
+
* `package.json`.
|
|
353
|
+
*
|
|
354
|
+
* <Tabs>
|
|
355
|
+
* <TabItem label="pnpm">
|
|
356
|
+
* ```js title="package.json"
|
|
357
|
+
* {
|
|
358
|
+
* packageManager: "pnpm@8.6.3"
|
|
359
|
+
* }
|
|
360
|
+
* ```
|
|
361
|
+
* </TabItem>
|
|
362
|
+
* <TabItem label="bun">
|
|
363
|
+
* ```js title="package.json"
|
|
364
|
+
* {
|
|
365
|
+
* packageManager: "bun@1.2.0"
|
|
366
|
+
* }
|
|
367
|
+
* ```
|
|
368
|
+
* </TabItem>
|
|
369
|
+
* </Tabs>
|
|
370
|
+
*
|
|
371
|
+
* Feel free to get in touch if you want to use your own build image or
|
|
372
|
+
* configure what's used in the build image.
|
|
373
|
+
*
|
|
374
|
+
* @default `x86_64`
|
|
375
|
+
*/
|
|
376
|
+
architecture?: "x86_64" | "arm64";
|
|
377
|
+
/**
|
|
378
|
+
* The compute size of the build environment.
|
|
379
|
+
*
|
|
380
|
+
* For `x86_64`, the following compute sizes are supported:
|
|
381
|
+
* - `small`: 3 GB, 2 vCPUs
|
|
382
|
+
* - `medium`: 7 GB, 4 vCPUs
|
|
383
|
+
* - `large`: 15 GB, 8 vCPUs
|
|
384
|
+
* - `xlarge`: 70 GB, 36 vCPUs
|
|
385
|
+
* - `2xlarge`: 145 GB, 72 vCPUs
|
|
386
|
+
*
|
|
387
|
+
* For `arm64` architecture, the following compute sizes are supported:
|
|
388
|
+
* - `small`: 4 GB, 2 vCPUs
|
|
389
|
+
* - `medium`: 8 GB, 4 vCPUs
|
|
390
|
+
* - `large`: 16 GB, 8 vCPUs
|
|
391
|
+
* - `xlarge`: 64 GB, 32 vCPUs
|
|
392
|
+
* - `2xlarge`: 96 GB, 48 vCPUs
|
|
393
|
+
*
|
|
394
|
+
* To increase the memory used by your Node.js process in the build environment, you'll want
|
|
395
|
+
* to set the `NODE_OPTIONS` environment variable to `--max-old-space-size=xyz`. Where `xyz`
|
|
396
|
+
* is the memory size in MB. By default, this is set to 1.5 GB.
|
|
397
|
+
*
|
|
398
|
+
* Read more about the [CodeBuild build environments](https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html).
|
|
399
|
+
*
|
|
400
|
+
* @default `medium`
|
|
401
|
+
*/
|
|
402
|
+
compute?: "small" | "medium" | "large" | "xlarge" | "2xlarge";
|
|
403
|
+
/**
|
|
404
|
+
* The VPC to run the build in. If provided, the build environment will have access to
|
|
405
|
+
* resources in the VPC.
|
|
406
|
+
*
|
|
407
|
+
* This is useful for building Next.js apps that might make queries to your database
|
|
408
|
+
* as a part of the build process.
|
|
409
|
+
*
|
|
410
|
+
* You can get these from the outputs of the `Vpc` component your are using or from the
|
|
411
|
+
* [Console](/docs/console/#resources).
|
|
412
|
+
*
|
|
413
|
+
* @example
|
|
414
|
+
*
|
|
415
|
+
* ```ts
|
|
416
|
+
* {
|
|
417
|
+
* vpc: {
|
|
418
|
+
* id: "vpc-0be8fa4de860618bb",
|
|
419
|
+
* subnets: ["subnet-0be8fa4de860618bb"],
|
|
420
|
+
* securityGroups: ["sg-0be8fa4de860618bb"]
|
|
421
|
+
* }
|
|
422
|
+
* }
|
|
423
|
+
* ```
|
|
424
|
+
*/
|
|
425
|
+
vpc?: {
|
|
426
|
+
/**
|
|
427
|
+
* The ID of the VPC.
|
|
428
|
+
*/
|
|
429
|
+
id: string;
|
|
430
|
+
/**
|
|
431
|
+
* The subnets to run the build in.
|
|
432
|
+
*/
|
|
433
|
+
subnets: string[];
|
|
434
|
+
/**
|
|
435
|
+
* The security groups to run the build in.
|
|
436
|
+
*/
|
|
437
|
+
securityGroups: string[];
|
|
438
|
+
};
|
|
439
|
+
/**
|
|
440
|
+
* Paths to cache as a part of the build. By default the `.git` directory is cached.
|
|
441
|
+
*
|
|
442
|
+
* The given list of files and directories will be saved to the cache at the end of the build.
|
|
443
|
+
* And they will be restored at the start of the build process.
|
|
444
|
+
*
|
|
445
|
+
* ```ts
|
|
446
|
+
* {
|
|
447
|
+
* cache: {
|
|
448
|
+
* paths: ["node_modules", "/path/to/cache"]
|
|
449
|
+
* }
|
|
450
|
+
* }
|
|
451
|
+
* ```
|
|
452
|
+
*
|
|
453
|
+
* The relative paths are for caching files inside your repo. While the absolute path is for
|
|
454
|
+
* any global caches.
|
|
455
|
+
*
|
|
456
|
+
* To clear the cache, you can trigger a new deploy using the **Force** deploy option in the
|
|
457
|
+
* Console.
|
|
458
|
+
*/
|
|
459
|
+
cache?: {
|
|
460
|
+
/**
|
|
461
|
+
* The paths to cache. These are relative to the root of the repository.
|
|
462
|
+
*
|
|
463
|
+
* By default, the `.git` directory is always cached.
|
|
464
|
+
*/
|
|
465
|
+
paths: string[];
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
interface GitSender {
|
|
469
|
+
/**
|
|
470
|
+
* The ID of the user.
|
|
471
|
+
*/
|
|
472
|
+
id: number;
|
|
473
|
+
/**
|
|
474
|
+
* The username of the user.
|
|
475
|
+
*/
|
|
476
|
+
username: string;
|
|
477
|
+
}
|
|
478
|
+
interface GitCommit {
|
|
479
|
+
/**
|
|
480
|
+
* The ID of the commit.
|
|
481
|
+
*/
|
|
482
|
+
id: string;
|
|
483
|
+
/**
|
|
484
|
+
* The commit message.
|
|
485
|
+
*/
|
|
486
|
+
message: string;
|
|
487
|
+
}
|
|
488
|
+
interface GitRepo {
|
|
489
|
+
/**
|
|
490
|
+
* The ID of the repo. This is usually a number.
|
|
491
|
+
*/
|
|
492
|
+
id: number;
|
|
493
|
+
/**
|
|
494
|
+
* The name of the owner or org the repo to belongs to.
|
|
495
|
+
*/
|
|
496
|
+
owner: string;
|
|
497
|
+
/**
|
|
498
|
+
* The name of the repo.
|
|
499
|
+
*/
|
|
500
|
+
repo: string;
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* A git event for when a branch is updated or deleted. For example:
|
|
504
|
+
* ```js
|
|
505
|
+
* {
|
|
506
|
+
* type: "branch",
|
|
507
|
+
* action: "pushed",
|
|
508
|
+
* repo: {
|
|
509
|
+
* id: 1296269,
|
|
510
|
+
* owner: "octocat",
|
|
511
|
+
* repo: "Hello-World"
|
|
512
|
+
* },
|
|
513
|
+
* branch: "main",
|
|
514
|
+
* commit: {
|
|
515
|
+
* id: "b7e7c4c559e0e5b4bc6f8d98e0e5e5e5e5e5e5e5",
|
|
516
|
+
* message: "Update the README with new information"
|
|
517
|
+
* },
|
|
518
|
+
* sender: {
|
|
519
|
+
* id: 1,
|
|
520
|
+
* username: "octocat"
|
|
521
|
+
* }
|
|
522
|
+
* }
|
|
523
|
+
* ```
|
|
524
|
+
*/
|
|
525
|
+
export interface BranchEvent {
|
|
526
|
+
/**
|
|
527
|
+
* The git event type, for the `BranchEvent` it's `branch`.
|
|
528
|
+
*/
|
|
529
|
+
type: "branch";
|
|
530
|
+
/**
|
|
531
|
+
* The type of the git action.
|
|
532
|
+
*
|
|
533
|
+
* - `pushed` is when you git push to a branch
|
|
534
|
+
* - `removed` is when a branch is removed
|
|
535
|
+
*/
|
|
536
|
+
action: "pushed" | "removed";
|
|
537
|
+
/**
|
|
538
|
+
* The Git repository the event is coming from. This might look like:
|
|
539
|
+
*
|
|
540
|
+
* ```js
|
|
541
|
+
* {
|
|
542
|
+
* id: 1296269,
|
|
543
|
+
* owner: "octocat",
|
|
544
|
+
* repo: "Hello-World"
|
|
545
|
+
* }
|
|
546
|
+
* ```
|
|
547
|
+
*/
|
|
548
|
+
repo: Prettify<GitRepo>;
|
|
549
|
+
/**
|
|
550
|
+
* The name of the branch the event is coming from.
|
|
551
|
+
*/
|
|
552
|
+
branch: string;
|
|
553
|
+
/**
|
|
554
|
+
* Info about the commit in the event. This might look like:
|
|
555
|
+
*
|
|
556
|
+
* ```js
|
|
557
|
+
* {
|
|
558
|
+
* id: "b7e7c4c559e0e5b4bc6f8d98e0e5e5e5e5e5e5e5",
|
|
559
|
+
* message: "Update the README with new information"
|
|
560
|
+
* }
|
|
561
|
+
* ```
|
|
562
|
+
*/
|
|
563
|
+
commit: Prettify<GitCommit>;
|
|
564
|
+
/**
|
|
565
|
+
* The user that generated the event. For example:
|
|
566
|
+
*
|
|
567
|
+
* ```js
|
|
568
|
+
* {
|
|
569
|
+
* id: 1,
|
|
570
|
+
* username: "octocat"
|
|
571
|
+
* }
|
|
572
|
+
* ```
|
|
573
|
+
*/
|
|
574
|
+
sender: Prettify<GitSender>;
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* A git event for when a tag is created or deleted. For example:
|
|
578
|
+
* ```js
|
|
579
|
+
* {
|
|
580
|
+
* type: "tag",
|
|
581
|
+
* action: "pushed",
|
|
582
|
+
* repo: {
|
|
583
|
+
* id: 1296269,
|
|
584
|
+
* owner: "octocat",
|
|
585
|
+
* repo: "Hello-World"
|
|
586
|
+
* },
|
|
587
|
+
* tag: "v1.5.2",
|
|
588
|
+
* commit: {
|
|
589
|
+
* id: "b7e7c4c559e0e5b4bc6f8d98e0e5e5e5e5e5e5e5",
|
|
590
|
+
* message: "Update the README with new information"
|
|
591
|
+
* },
|
|
592
|
+
* sender: {
|
|
593
|
+
* id: 1,
|
|
594
|
+
* username: "octocat"
|
|
595
|
+
* }
|
|
596
|
+
* }
|
|
597
|
+
* ```
|
|
598
|
+
*/
|
|
599
|
+
export interface TagEvent {
|
|
600
|
+
/**
|
|
601
|
+
* The git event type, for the `TagEvent` it's `tag`.
|
|
602
|
+
*/
|
|
603
|
+
type: "tag";
|
|
604
|
+
/**
|
|
605
|
+
* The type of the git action.
|
|
606
|
+
*
|
|
607
|
+
* - `pushed` is when you create a tag
|
|
608
|
+
* - `removed` is when a tag is removed
|
|
609
|
+
*/
|
|
610
|
+
action: "pushed" | "removed";
|
|
611
|
+
/**
|
|
612
|
+
* The Git repository the event is coming from. This might look like:
|
|
613
|
+
*
|
|
614
|
+
* ```js
|
|
615
|
+
* {
|
|
616
|
+
* id: 1296269,
|
|
617
|
+
* owner: "octocat",
|
|
618
|
+
* repo: "Hello-World"
|
|
619
|
+
* }
|
|
620
|
+
* ```
|
|
621
|
+
*/
|
|
622
|
+
repo: Prettify<GitRepo>;
|
|
623
|
+
/**
|
|
624
|
+
* The name of the tag. For example, `v1.5.2`.
|
|
625
|
+
*/
|
|
626
|
+
tag: string;
|
|
627
|
+
/**
|
|
628
|
+
* Info about the commit in the event. This might look like:
|
|
629
|
+
*
|
|
630
|
+
* ```js
|
|
631
|
+
* {
|
|
632
|
+
* id: "b7e7c4c559e0e5b4bc6f8d98e0e5e5e5e5e5e5e5",
|
|
633
|
+
* message: "Update the README with new information"
|
|
634
|
+
* }
|
|
635
|
+
* ```
|
|
636
|
+
*/
|
|
637
|
+
commit: Prettify<GitCommit>;
|
|
638
|
+
/**
|
|
639
|
+
* The user that generated the event. For example:
|
|
640
|
+
*
|
|
641
|
+
* ```js
|
|
642
|
+
* {
|
|
643
|
+
* id: 1,
|
|
644
|
+
* username: "octocat"
|
|
645
|
+
* }
|
|
646
|
+
* ```
|
|
647
|
+
*/
|
|
648
|
+
sender: Prettify<GitSender>;
|
|
649
|
+
}
|
|
650
|
+
/**
|
|
651
|
+
* A git event for when a pull request is updated or deleted. For example:
|
|
652
|
+
*
|
|
653
|
+
* ```js
|
|
654
|
+
* {
|
|
655
|
+
* type: "pull_request",
|
|
656
|
+
* action: "pushed",
|
|
657
|
+
* repo: {
|
|
658
|
+
* id: 1296269,
|
|
659
|
+
* owner: "octocat",
|
|
660
|
+
* repo: "Hello-World"
|
|
661
|
+
* },
|
|
662
|
+
* number: 1347,
|
|
663
|
+
* base: "main",
|
|
664
|
+
* head: "feature",
|
|
665
|
+
* commit: {
|
|
666
|
+
* id: "b7e7c4c559e0e5b4bc6f8d98e0e5e5e5e5e5e5e5",
|
|
667
|
+
* message: "Update the README with new information"
|
|
668
|
+
* },
|
|
669
|
+
* sender: {
|
|
670
|
+
* id: 1,
|
|
671
|
+
* username: "octocat"
|
|
672
|
+
* }
|
|
673
|
+
* }
|
|
674
|
+
* ```
|
|
675
|
+
*/
|
|
676
|
+
export interface PullRequestEvent {
|
|
677
|
+
/**
|
|
678
|
+
* The git event type, for the `PullRequestEvent` it's `pull_request`.
|
|
679
|
+
*/
|
|
680
|
+
type: "pull_request";
|
|
681
|
+
/**
|
|
682
|
+
* The type of the git action.
|
|
683
|
+
*
|
|
684
|
+
* - `pushed` is when you git push to the base branch of the PR
|
|
685
|
+
* - `removed` is when the PR is closed or merged
|
|
686
|
+
*/
|
|
687
|
+
action: "pushed" | "removed";
|
|
688
|
+
/**
|
|
689
|
+
* The Git repository the event is coming from. This might look like:
|
|
690
|
+
*
|
|
691
|
+
* ```js
|
|
692
|
+
* {
|
|
693
|
+
* id: 1296269,
|
|
694
|
+
* owner: "octocat",
|
|
695
|
+
* repo: "Hello-World"
|
|
696
|
+
* }
|
|
697
|
+
* ```
|
|
698
|
+
*/
|
|
699
|
+
repo: Prettify<GitRepo>;
|
|
700
|
+
/**
|
|
701
|
+
* The pull request number.
|
|
702
|
+
*/
|
|
703
|
+
number: number;
|
|
704
|
+
/**
|
|
705
|
+
* The title of the pull request.
|
|
706
|
+
*/
|
|
707
|
+
title: string;
|
|
708
|
+
/**
|
|
709
|
+
* The base branch of the PR. This is the branch the code is being merged into.
|
|
710
|
+
*/
|
|
711
|
+
base: string;
|
|
712
|
+
/**
|
|
713
|
+
* The head branch of the PR. This is the branch the code is coming from.
|
|
714
|
+
*/
|
|
715
|
+
head: string;
|
|
716
|
+
/**
|
|
717
|
+
* Info about the commit in the event. This might look like:
|
|
718
|
+
*
|
|
719
|
+
* ```js
|
|
720
|
+
* {
|
|
721
|
+
* id: "b7e7c4c559e0e5b4bc6f8d98e0e5e5e5e5e5e5e5",
|
|
722
|
+
* message: "Update the README with new information"
|
|
723
|
+
* }
|
|
724
|
+
* ```
|
|
725
|
+
*/
|
|
726
|
+
commit: Prettify<GitCommit>;
|
|
727
|
+
/**
|
|
728
|
+
* The user that generated the event. For example:
|
|
729
|
+
*
|
|
730
|
+
* ```js
|
|
731
|
+
* {
|
|
732
|
+
* id: 1,
|
|
733
|
+
* username: "octocat"
|
|
734
|
+
* }
|
|
735
|
+
* ```
|
|
736
|
+
*/
|
|
737
|
+
sender: Prettify<GitSender>;
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
* A user event for when the user manually triggers a deploy. For example:
|
|
741
|
+
* ```js
|
|
742
|
+
* {
|
|
743
|
+
* type: "user",
|
|
744
|
+
* action: "deploy",
|
|
745
|
+
* repo: {
|
|
746
|
+
* id: 1296269,
|
|
747
|
+
* owner: "octocat",
|
|
748
|
+
* repo: "Hello-World"
|
|
749
|
+
* },
|
|
750
|
+
* ref: "main",
|
|
751
|
+
* commit: {
|
|
752
|
+
* id: "b7e7c4c559e0e5b4bc6f8d98e0e5e5e5e5e5e5e5",
|
|
753
|
+
* message: "Update the README with new information"
|
|
754
|
+
* }
|
|
755
|
+
* }
|
|
756
|
+
* ```
|
|
757
|
+
*/
|
|
758
|
+
export interface UserEvent {
|
|
759
|
+
/**
|
|
760
|
+
* The user event type.
|
|
761
|
+
*/
|
|
762
|
+
type: "user";
|
|
763
|
+
/**
|
|
764
|
+
* The type of the user action.
|
|
765
|
+
*
|
|
766
|
+
* - `deploy` is when you manually trigger a deploy
|
|
767
|
+
* - `remove` is when you manually remove a stage
|
|
768
|
+
*/
|
|
769
|
+
action: "deploy" | "remove";
|
|
770
|
+
/**
|
|
771
|
+
* The Git repository the event is coming from. This might look like:
|
|
772
|
+
*
|
|
773
|
+
* ```js
|
|
774
|
+
* {
|
|
775
|
+
* id: 1296269,
|
|
776
|
+
* owner: "octocat",
|
|
777
|
+
* repo: "Hello-World"
|
|
778
|
+
* }
|
|
779
|
+
* ```
|
|
780
|
+
*/
|
|
781
|
+
repo: Prettify<GitRepo>;
|
|
782
|
+
/**
|
|
783
|
+
* The reference to the Git commit. This can be the branch, tag, or commit hash.
|
|
784
|
+
*/
|
|
785
|
+
ref: string;
|
|
786
|
+
/**
|
|
787
|
+
* Info about the commit in the event. This might look like:
|
|
788
|
+
*
|
|
789
|
+
* ```js
|
|
790
|
+
* {
|
|
791
|
+
* id: "b7e7c4c559e0e5b4bc6f8d98e0e5e5e5e5e5e5e5",
|
|
792
|
+
* message: "Update the README with new information"
|
|
793
|
+
* }
|
|
794
|
+
* ```
|
|
795
|
+
*/
|
|
796
|
+
commit: Prettify<GitCommit>;
|
|
797
|
+
}
|
|
798
|
+
export interface Target {
|
|
799
|
+
/**
|
|
800
|
+
* The stage or a list of stages the app will be deployed to.
|
|
801
|
+
*/
|
|
802
|
+
stage: string | string[];
|
|
803
|
+
}
|
|
804
|
+
export interface WorkflowInput {
|
|
805
|
+
/**
|
|
806
|
+
* The [Bun shell](https://bun.sh/docs/runtime/shell). It's a cross-platform
|
|
807
|
+
* _bash-like_ shell for scripting with JavaScript and TypeScript.
|
|
808
|
+
*/
|
|
809
|
+
$: Shell;
|
|
810
|
+
/**
|
|
811
|
+
* The event that triggered the workflow.
|
|
812
|
+
*
|
|
813
|
+
* This includes git branch, pull request, or tag events. And it also
|
|
814
|
+
* includes a user event for manual deploys that are triggered through the
|
|
815
|
+
* Console.
|
|
816
|
+
*/
|
|
817
|
+
event: BranchEvent | PullRequestEvent | TagEvent | UserEvent;
|
|
818
|
+
}
|
|
819
|
+
export interface Config {
|
|
820
|
+
/**
|
|
821
|
+
* The config for your app. It needs to return an object of type [`App`](#app-1). The `app`
|
|
822
|
+
* function is evaluated when your app loads.
|
|
823
|
+
*
|
|
824
|
+
* :::caution
|
|
825
|
+
* You cannot define any components or resources in the `app` function.
|
|
826
|
+
* :::
|
|
827
|
+
*
|
|
828
|
+
* Here's an example of a simple `app` function.
|
|
829
|
+
*
|
|
830
|
+
* @example
|
|
831
|
+
*
|
|
832
|
+
* ```ts title="sst.config.ts"
|
|
833
|
+
* app(input) {
|
|
834
|
+
* return {
|
|
835
|
+
* name: "my-sst-app",
|
|
836
|
+
* home: "aws",
|
|
837
|
+
* providers: {
|
|
838
|
+
* aws: true,
|
|
839
|
+
* cloudflare: {
|
|
840
|
+
* accountId: "6fef9ed9089bb15de3e4198618385de2"
|
|
841
|
+
* }
|
|
842
|
+
* },
|
|
843
|
+
* removal: input.stage === "production" ? "retain" : "remove"
|
|
844
|
+
* };
|
|
845
|
+
* },
|
|
846
|
+
* ```
|
|
847
|
+
*/
|
|
848
|
+
app(input: AppInput): App | Promise<App>;
|
|
849
|
+
/**
|
|
850
|
+
* Configure how your app works with the SST Console.
|
|
851
|
+
*/
|
|
852
|
+
console?: {
|
|
853
|
+
/**
|
|
854
|
+
* Auto-deploys your app when you _git push_ to your repo. Uses
|
|
855
|
+
* [AWS CodeBuild](https://aws.amazon.com/codebuild/) in your account to run the build.
|
|
856
|
+
*
|
|
857
|
+
* To get started, first [make sure to set up Autodeploy](/docs/console#setup).
|
|
858
|
+
* Specifically, you need to configure an environment with the stage and AWS account
|
|
859
|
+
* you want to auto-deploy to.
|
|
860
|
+
*
|
|
861
|
+
* Now when you _git push_ to a branch, pull request, or tag, the following happens:
|
|
862
|
+
*
|
|
863
|
+
* 1. The stage name is generated based on the `autodeploy.target` callback.
|
|
864
|
+
* 1. If there is no callback, the stage name is a sanitized version of the branch or tag.
|
|
865
|
+
* 2. If there is a callback but no stage is returned, the deploy is skipped.
|
|
866
|
+
* 2. The runner config is generated based on the `autodeploy.runner`. Or the defaults are
|
|
867
|
+
* used.
|
|
868
|
+
* 3. The stage is matched against the environments in the Console to get the AWS account
|
|
869
|
+
* and any environment variables for the deploy.
|
|
870
|
+
* 4. The deploy is run based on the above config.
|
|
871
|
+
*
|
|
872
|
+
* This only applies only to git events. If you trigger a deploy through the Console, you
|
|
873
|
+
* are asked to sepcify the stage you want to deploy to. So in this case, it skips step 1
|
|
874
|
+
* from above and does not call `autodeploy.target`.
|
|
875
|
+
*
|
|
876
|
+
* You can further configure Autodeploy through the `autodeploy` prop.
|
|
877
|
+
*
|
|
878
|
+
* ```ts title="sst.config.ts"
|
|
879
|
+
* console: {
|
|
880
|
+
* autodeploy: {
|
|
881
|
+
* target(event) {}, // Customize the target stage
|
|
882
|
+
* runner(stage) {}, // Customize the runner
|
|
883
|
+
* async workflow({ $, input }) {} // Customize the workflow
|
|
884
|
+
* }
|
|
885
|
+
* }
|
|
886
|
+
* ```
|
|
887
|
+
*
|
|
888
|
+
* Here, `target`, `runner`, and `workflow` are all optional and come with defaults, so
|
|
889
|
+
* you don't need to configure anything. But you can customize them.
|
|
890
|
+
*
|
|
891
|
+
* ```ts
|
|
892
|
+
* {
|
|
893
|
+
* autodeploy: {
|
|
894
|
+
* target(event) {
|
|
895
|
+
* if (
|
|
896
|
+
* event.type === "branch" &&
|
|
897
|
+
* event.branch === "main" &&
|
|
898
|
+
* event.action === "pushed"
|
|
899
|
+
* ) {
|
|
900
|
+
* return { stage: "production" };
|
|
901
|
+
* }
|
|
902
|
+
* },
|
|
903
|
+
* runner(stage) {
|
|
904
|
+
* if (stage === "production") return { timeout: "3 hours" };
|
|
905
|
+
* }
|
|
906
|
+
* }
|
|
907
|
+
* }
|
|
908
|
+
* ```
|
|
909
|
+
*
|
|
910
|
+
* For example, here we are only auto-deploying to the `production` stage when you git push
|
|
911
|
+
* to the `main` branch. We are also setting the timeout to 3 hours for the `production`
|
|
912
|
+
* stage. You can read more about the `target` and `runner` props below.
|
|
913
|
+
*
|
|
914
|
+
* Finally, if you want to configure exactly what happens in the build, you can pass in
|
|
915
|
+
* a `workflow` function.
|
|
916
|
+
*
|
|
917
|
+
* ```ts
|
|
918
|
+
* {
|
|
919
|
+
* autodeploy: {
|
|
920
|
+
* async workflow({ $, event }) {
|
|
921
|
+
* await $`npm i -g pnpm`;
|
|
922
|
+
* await $`pnpm i`;
|
|
923
|
+
* event.action === "removed"
|
|
924
|
+
* ? await $`pnpm sst remove`
|
|
925
|
+
* : await $`pnpm sst deploy`;
|
|
926
|
+
* }
|
|
927
|
+
* }
|
|
928
|
+
* }
|
|
929
|
+
* ```
|
|
930
|
+
*
|
|
931
|
+
* You can read more the `workflow` prop below.
|
|
932
|
+
*
|
|
933
|
+
* @default Auto-deploys branches and PRs.
|
|
934
|
+
*/
|
|
935
|
+
autodeploy: {
|
|
936
|
+
/**
|
|
937
|
+
* Defines the stage or a list of stages the app will be auto-deployed to.
|
|
938
|
+
*
|
|
939
|
+
* When a git event is received, Autodeploy will run the `target` function with the
|
|
940
|
+
* git event. This function should return the stage or a list of stages the app will
|
|
941
|
+
* be deployed to. Or `undefined` if the deploy should be skipped.
|
|
942
|
+
*
|
|
943
|
+
* :::tip
|
|
944
|
+
* Return `undefined` to skip the deploy.
|
|
945
|
+
* :::
|
|
946
|
+
*
|
|
947
|
+
* The stage that is returned is then compared to the environments set in the
|
|
948
|
+
* [app settings in the Console](/docs/console/#setup). If the stage matches an
|
|
949
|
+
* environment, the stage will be deployed to that environment. If no matching environment
|
|
950
|
+
* is found, the deploy will be skipped.
|
|
951
|
+
*
|
|
952
|
+
* :::note
|
|
953
|
+
* You need to configure an environment in the Console to be able to deploy to it.
|
|
954
|
+
* :::
|
|
955
|
+
*
|
|
956
|
+
* Currently, only git events for **branches**, **pull requests**, and **tags** are
|
|
957
|
+
* supported.
|
|
958
|
+
*
|
|
959
|
+
* :::tip
|
|
960
|
+
* This is not called when you manually trigger a deploy through the Console.
|
|
961
|
+
* :::
|
|
962
|
+
*
|
|
963
|
+
* This config only applies to git events. If you trigger a deploy through the Console,
|
|
964
|
+
* you are asked to sepcify the stage you want to deploy to. In this case, and
|
|
965
|
+
* when you redeploy a manual deploy, the `target` function is not called.
|
|
966
|
+
*
|
|
967
|
+
* By default, this is what the `target` function looks like:
|
|
968
|
+
*
|
|
969
|
+
* ```ts
|
|
970
|
+
* {
|
|
971
|
+
* target(event) {
|
|
972
|
+
* if (event.type === "branch" && event.action === "pushed") {
|
|
973
|
+
* return {
|
|
974
|
+
* stage: event.branch
|
|
975
|
+
* .replace(/[^a-zA-Z0-9-]/g, "-")
|
|
976
|
+
* .replace(/-+/g, "-")
|
|
977
|
+
* .replace(/^-/g, "")
|
|
978
|
+
* .replace(/-$/g, "")
|
|
979
|
+
* };
|
|
980
|
+
* }
|
|
981
|
+
*
|
|
982
|
+
* if (event.type === "pull_request") {
|
|
983
|
+
* return { stage: `pr-${event.number}` };
|
|
984
|
+
* }
|
|
985
|
+
* }
|
|
986
|
+
* }
|
|
987
|
+
* ```
|
|
988
|
+
*
|
|
989
|
+
* So for a:
|
|
990
|
+
*
|
|
991
|
+
* - **branch**: The stage name is a sanitized version of the branch name. When a branch
|
|
992
|
+
* is removed, the stage is **not removed**.
|
|
993
|
+
* - **pull request**: The stage name is `pr-<number>`. When a pull request is closed,
|
|
994
|
+
* the stage **is removed**.
|
|
995
|
+
*
|
|
996
|
+
* :::tip
|
|
997
|
+
* Git events to tags are not auto-deployed by default.
|
|
998
|
+
* :::
|
|
999
|
+
*
|
|
1000
|
+
* Git events to tags are not auto-deployed by default. You can change this by adding it
|
|
1001
|
+
* to your config.
|
|
1002
|
+
*
|
|
1003
|
+
* ```ts
|
|
1004
|
+
* {
|
|
1005
|
+
* target(event) {
|
|
1006
|
+
* if (event.type === "tag" && event.action === "pushed") {
|
|
1007
|
+
* return {
|
|
1008
|
+
* stage: "tag-" + event.tag
|
|
1009
|
+
* .replace(/[^a-zA-Z0-9-]/g, "-")
|
|
1010
|
+
* .replace(/-+/g, "-")
|
|
1011
|
+
* .replace(/^-/g, "")
|
|
1012
|
+
* .replace(/-$/g, "")
|
|
1013
|
+
* };
|
|
1014
|
+
* }
|
|
1015
|
+
* }
|
|
1016
|
+
* }
|
|
1017
|
+
* ```
|
|
1018
|
+
*
|
|
1019
|
+
* Here, similar to the branch event, we are sanitizing the tag name to generate the stage.
|
|
1020
|
+
* Just make sure to configure the environment for these tag stages in the Console.
|
|
1021
|
+
*
|
|
1022
|
+
* If you don't want to auto-deploy for a given event, you can return `undefined`. For
|
|
1023
|
+
* example, to skip any deploys to the `staging` stage.
|
|
1024
|
+
*
|
|
1025
|
+
* ```ts {3}
|
|
1026
|
+
* {
|
|
1027
|
+
* target(event) {
|
|
1028
|
+
* if (event.type === "branch" && event.branch === "staging") return;
|
|
1029
|
+
* if (
|
|
1030
|
+
* event.type === "branch" &&
|
|
1031
|
+
* event.branch === "main" &&
|
|
1032
|
+
* event.action === "pushed"
|
|
1033
|
+
* ) {
|
|
1034
|
+
* return { stage: "production" };
|
|
1035
|
+
* }
|
|
1036
|
+
* }
|
|
1037
|
+
* }
|
|
1038
|
+
* ```
|
|
1039
|
+
*/
|
|
1040
|
+
target?(input: BranchEvent | PullRequestEvent | TagEvent): Target | undefined;
|
|
1041
|
+
/**
|
|
1042
|
+
* Configure the runner that will run the build. By default it uses the following config:
|
|
1043
|
+
*
|
|
1044
|
+
* ```ts
|
|
1045
|
+
* {
|
|
1046
|
+
* runner: {
|
|
1047
|
+
* engine: "codebuild",
|
|
1048
|
+
* architecture: "x86_64",
|
|
1049
|
+
* compute: "medium",
|
|
1050
|
+
* timeout: "1 hour"
|
|
1051
|
+
* }
|
|
1052
|
+
* }
|
|
1053
|
+
* ```
|
|
1054
|
+
*
|
|
1055
|
+
* Most of these are optional and come with defaults. But you can configure them.
|
|
1056
|
+
*
|
|
1057
|
+
* ```ts
|
|
1058
|
+
* {
|
|
1059
|
+
* runner: { timeout: "3 hours" }
|
|
1060
|
+
* }
|
|
1061
|
+
* ```
|
|
1062
|
+
*
|
|
1063
|
+
* You can also configure it based on the stage that's being deployed. Let's say you
|
|
1064
|
+
* want to use the defaults for all stages except for `production`.
|
|
1065
|
+
*
|
|
1066
|
+
* ```ts
|
|
1067
|
+
* {
|
|
1068
|
+
* runner(stage) {
|
|
1069
|
+
* if (stage === "production") return { timeout: "3 hours" };
|
|
1070
|
+
* }
|
|
1071
|
+
* }
|
|
1072
|
+
* ```
|
|
1073
|
+
*
|
|
1074
|
+
* Aside from the above, you can also have the deploys run inside a VPC.
|
|
1075
|
+
*
|
|
1076
|
+
* ```ts
|
|
1077
|
+
* {
|
|
1078
|
+
* runner: {
|
|
1079
|
+
* vpc: {
|
|
1080
|
+
* id: "vpc-0be8fa4de860618bb",
|
|
1081
|
+
* securityGroups: ["sg-0399348378a4c256c"],
|
|
1082
|
+
* subnets: ["subnet-0b6a2b73896dc8c4c", "subnet-021389ebee680c2f0"]
|
|
1083
|
+
* }
|
|
1084
|
+
* }
|
|
1085
|
+
* }
|
|
1086
|
+
* ```
|
|
1087
|
+
*
|
|
1088
|
+
* Or configure files or directories to be cached.
|
|
1089
|
+
*
|
|
1090
|
+
* ```ts
|
|
1091
|
+
* {
|
|
1092
|
+
* runner: {
|
|
1093
|
+
* cache: {
|
|
1094
|
+
* paths: ["node_modules", "/path/to/cache"]
|
|
1095
|
+
* }
|
|
1096
|
+
* }
|
|
1097
|
+
* }
|
|
1098
|
+
* ```
|
|
1099
|
+
*
|
|
1100
|
+
* A _runner_ is a [AWS CodeBuild](https://aws.amazon.com/codebuild/) project and an
|
|
1101
|
+
* IAM Role. This is created in **your account**.
|
|
1102
|
+
*
|
|
1103
|
+
* Once a runner is created, it can be used to run multiple builds of the same
|
|
1104
|
+
* machine config concurrently. Runners are also shared across all apps in the same
|
|
1105
|
+
* account and region.
|
|
1106
|
+
*
|
|
1107
|
+
* :::note
|
|
1108
|
+
* You are only charged for the number of build minutes that you use.
|
|
1109
|
+
* :::
|
|
1110
|
+
*
|
|
1111
|
+
* If a runner with a given config has been been previously created,
|
|
1112
|
+
* it'll be reused. The Console will also automatically remove runners that
|
|
1113
|
+
* have not been used for more than 7 days.
|
|
1114
|
+
*
|
|
1115
|
+
* You are not charged for the number of runners you have, only for the number of build
|
|
1116
|
+
* minutes that you use. The pricing is based on the machine config used.
|
|
1117
|
+
* [Learn more about CodeBuild pricing](https://aws.amazon.com/codebuild/pricing/).
|
|
1118
|
+
*/
|
|
1119
|
+
runner?: Runner | ((input: RunnerInput) => Runner);
|
|
1120
|
+
/**
|
|
1121
|
+
* Customize the commands that are run during the build process. This is
|
|
1122
|
+
* useful for running tests, or completely customizing the build process.
|
|
1123
|
+
*
|
|
1124
|
+
* The default workflow automatically figures out the package manager you
|
|
1125
|
+
* are using, installs the dependencies, and runs `sst deploy` or `sst remove`
|
|
1126
|
+
* based on the event.
|
|
1127
|
+
*
|
|
1128
|
+
* For example, if you are using pnpm, the following is equivalent to the
|
|
1129
|
+
* default workflow.
|
|
1130
|
+
*
|
|
1131
|
+
* ```ts
|
|
1132
|
+
* {
|
|
1133
|
+
* async workflow({ $, event }) {
|
|
1134
|
+
* await $`npm i -g pnpm`;
|
|
1135
|
+
* await $`pnpm i`;
|
|
1136
|
+
* event.action === "removed"
|
|
1137
|
+
* ? await $`pnpm sst remove`
|
|
1138
|
+
* : await $`pnpm sst deploy`;
|
|
1139
|
+
* }
|
|
1140
|
+
* }
|
|
1141
|
+
* ```
|
|
1142
|
+
*
|
|
1143
|
+
* The workflow function is run inside a Bun process. It passes in `$`
|
|
1144
|
+
* as the [Bun Shell](https://bun.sh/docs/runtime/shell). This makes
|
|
1145
|
+
* _bash-like_ scripting easier.
|
|
1146
|
+
*
|
|
1147
|
+
* :::tip
|
|
1148
|
+
* Use the Bun Shell to make running commands easier.
|
|
1149
|
+
* :::
|
|
1150
|
+
*
|
|
1151
|
+
* For example, here's how you can run tests before deploying.
|
|
1152
|
+
*
|
|
1153
|
+
* ```ts {5}
|
|
1154
|
+
* {
|
|
1155
|
+
* async workflow({ $, event }) {
|
|
1156
|
+
* await $`npm i -g pnpm`;
|
|
1157
|
+
* await $`pnpm i`;
|
|
1158
|
+
* await $`pnpm test`;
|
|
1159
|
+
* event.action === "removed"
|
|
1160
|
+
* ? await $`pnpm sst remove`
|
|
1161
|
+
* : await $`pnpm sst deploy`;
|
|
1162
|
+
* }
|
|
1163
|
+
* }
|
|
1164
|
+
* ```
|
|
1165
|
+
*
|
|
1166
|
+
* When you pass in a `workflow`, you are effectively taking control of what
|
|
1167
|
+
* runs in your build.
|
|
1168
|
+
*
|
|
1169
|
+
* :::caution
|
|
1170
|
+
* If you don't run `sst deploy`, your app won't be deployed.
|
|
1171
|
+
* :::
|
|
1172
|
+
*
|
|
1173
|
+
* This means that if you don't run `sst deploy`, your app won't be deployed.
|
|
1174
|
+
*
|
|
1175
|
+
* :::tip
|
|
1176
|
+
* Throwing an error will fail the build and display the error in the Console.
|
|
1177
|
+
* :::
|
|
1178
|
+
*
|
|
1179
|
+
* If you throw an error in the workflow, the deploy will fail and the error
|
|
1180
|
+
* will be displayed in the Autodeploy logs.
|
|
1181
|
+
*
|
|
1182
|
+
* Here's a more detailed example of using the Bun Shell to handle failures.
|
|
1183
|
+
*
|
|
1184
|
+
* ```ts {6,9}
|
|
1185
|
+
* {
|
|
1186
|
+
* async workflow({ $, event }) {
|
|
1187
|
+
* await $`npm i -g pnpm`;
|
|
1188
|
+
* await $`pnpm i`;
|
|
1189
|
+
*
|
|
1190
|
+
* const { exitCode } = await $`pnpm test`.nothrow();
|
|
1191
|
+
* if (exitCode !== 0) {
|
|
1192
|
+
* // Process the test report and then fail the build
|
|
1193
|
+
* throw new Error("Failed to run tests");
|
|
1194
|
+
* }
|
|
1195
|
+
*
|
|
1196
|
+
* event.action === "removed"
|
|
1197
|
+
* ? await $`pnpm sst remove`
|
|
1198
|
+
* : await $`pnpm sst deploy`;
|
|
1199
|
+
* }
|
|
1200
|
+
* }
|
|
1201
|
+
* ```
|
|
1202
|
+
*
|
|
1203
|
+
* You'll notice we are not passing in `--stage` to the SST commands. This is because the `SST_STAGE` environment variable is already set in
|
|
1204
|
+
* the build process.
|
|
1205
|
+
*
|
|
1206
|
+
* :::tip
|
|
1207
|
+
* You don't need to pass in `--stage` to the SST commands.
|
|
1208
|
+
* :::
|
|
1209
|
+
*
|
|
1210
|
+
* The build process is run inside an
|
|
1211
|
+
* [Amazon Linux 2](https://aws.amazon.com/amazon-linux-2/) machine based on
|
|
1212
|
+
* the `architecture` used.
|
|
1213
|
+
*/
|
|
1214
|
+
workflow?(input: WorkflowInput): Promise<void>;
|
|
1215
|
+
};
|
|
1216
|
+
};
|
|
1217
|
+
/**
|
|
1218
|
+
* An async function that lets you define the resources in your app.
|
|
1219
|
+
*
|
|
1220
|
+
* :::note
|
|
1221
|
+
* You can use SST and Pulumi components only in the `run` function.
|
|
1222
|
+
* :::
|
|
1223
|
+
*
|
|
1224
|
+
* You can optionally return an object that'll be displayed as the output in the CLI.
|
|
1225
|
+
*
|
|
1226
|
+
* @example
|
|
1227
|
+
*
|
|
1228
|
+
* For example, here we return the name of the bucket we created.
|
|
1229
|
+
*
|
|
1230
|
+
* ```ts title="sst.config.ts"
|
|
1231
|
+
* async run() {
|
|
1232
|
+
* const bucket = new sst.aws.Bucket("MyBucket");
|
|
1233
|
+
*
|
|
1234
|
+
* return {
|
|
1235
|
+
* bucket: bucket.name
|
|
1236
|
+
* };
|
|
1237
|
+
* }
|
|
1238
|
+
* ```
|
|
1239
|
+
*
|
|
1240
|
+
* This will display the following in the CLI on `sst deploy` and `sst dev`.
|
|
1241
|
+
*
|
|
1242
|
+
* ```bash frame=\"none\"
|
|
1243
|
+
* bucket: bucket-jOaikGu4rla
|
|
1244
|
+
* ```
|
|
1245
|
+
*
|
|
1246
|
+
* These outputs are also written to a `.sst/outputs.json` file after every successful deploy.
|
|
1247
|
+
* It contains the above outputs in JSON.
|
|
1248
|
+
*
|
|
1249
|
+
* ```json title=".sst/outputs.json"
|
|
1250
|
+
* {"bucket": "bucket-jOaikGu4rla"}
|
|
1251
|
+
* ```
|
|
1252
|
+
*/
|
|
1253
|
+
run(): Promise<Record<string, any> | void>;
|
|
1254
|
+
}
|
|
1255
|
+
/** @internal */
|
|
1256
|
+
export declare function $config(input: Config): Config;
|
|
1257
|
+
export {};
|
|
1258
|
+
//# sourceMappingURL=config.d.ts.map
|