@monorise/sst 1.0.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.sst/platform/src/components/aws/analog.d.ts +423 -0
- package/dist/.sst/platform/src/components/aws/analog.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/analog.js +118 -0
- package/dist/.sst/platform/src/components/aws/analog.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigateway-websocket-route.d.ts +74 -0
- package/dist/.sst/platform/src/components/aws/apigateway-websocket-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigateway-websocket-route.js +110 -0
- package/dist/.sst/platform/src/components/aws/apigateway-websocket-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigateway-websocket.d.ts +542 -0
- package/dist/.sst/platform/src/components/aws/apigateway-websocket.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigateway-websocket.js +409 -0
- package/dist/.sst/platform/src/components/aws/apigateway-websocket.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-api-key.d.ts +48 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-api-key.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-api-key.js +55 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-api-key.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-authorizer.d.ts +55 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-authorizer.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-authorizer.js +110 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-authorizer.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-base-route.d.ts +36 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-base-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-base-route.js +34 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-base-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-integration-route.d.ts +39 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-integration-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-integration-route.js +49 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-integration-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-lambda-route.d.ts +53 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-lambda-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-lambda-route.js +85 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-lambda-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-usage-plan.d.ts +53 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-usage-plan.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-usage-plan.js +66 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-usage-plan.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1.d.ts +1002 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1.js +749 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-authorizer.d.ts +54 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-authorizer.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-authorizer.js +98 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-authorizer.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-base-route.d.ts +28 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-base-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-base-route.js +28 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-base-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-lambda-route.d.ts +59 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-lambda-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-lambda-route.js +84 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-lambda-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-private-route.d.ts +54 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-private-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-private-route.js +55 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-private-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-url-route.d.ts +44 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-url-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-url-route.js +53 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-url-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2.d.ts +933 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2.js +648 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/app-sync-data-source.d.ts +52 -0
- package/dist/.sst/platform/src/components/aws/app-sync-data-source.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/app-sync-data-source.js +208 -0
- package/dist/.sst/platform/src/components/aws/app-sync-data-source.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/app-sync-function.d.ts +33 -0
- package/dist/.sst/platform/src/components/aws/app-sync-function.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/app-sync-function.js +52 -0
- package/dist/.sst/platform/src/components/aws/app-sync-function.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/app-sync-resolver.d.ts +41 -0
- package/dist/.sst/platform/src/components/aws/app-sync-resolver.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/app-sync-resolver.js +70 -0
- package/dist/.sst/platform/src/components/aws/app-sync-resolver.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/app-sync.d.ts +638 -0
- package/dist/.sst/platform/src/components/aws/app-sync.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/app-sync.js +330 -0
- package/dist/.sst/platform/src/components/aws/app-sync.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/astro.d.ts +421 -0
- package/dist/.sst/platform/src/components/aws/astro.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/astro.js +156 -0
- package/dist/.sst/platform/src/components/aws/astro.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/aurora.d.ts +702 -0
- package/dist/.sst/platform/src/components/aws/aurora.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/aurora.js +678 -0
- package/dist/.sst/platform/src/components/aws/aurora.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/auth-v1.d.ts +26 -0
- package/dist/.sst/platform/src/components/aws/auth-v1.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/auth-v1.js +36 -0
- package/dist/.sst/platform/src/components/aws/auth-v1.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/auth.d.ts +260 -0
- package/dist/.sst/platform/src/components/aws/auth.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/auth.js +209 -0
- package/dist/.sst/platform/src/components/aws/auth.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket-lambda-subscriber.d.ts +61 -0
- package/dist/.sst/platform/src/components/aws/bucket-lambda-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket-lambda-subscriber.js +99 -0
- package/dist/.sst/platform/src/components/aws/bucket-lambda-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket-notification.d.ts +47 -0
- package/dist/.sst/platform/src/components/aws/bucket-notification.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket-notification.js +170 -0
- package/dist/.sst/platform/src/components/aws/bucket-notification.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket-queue-subscriber.d.ts +55 -0
- package/dist/.sst/platform/src/components/aws/bucket-queue-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket-queue-subscriber.js +77 -0
- package/dist/.sst/platform/src/components/aws/bucket-queue-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket-topic-subscriber.d.ts +55 -0
- package/dist/.sst/platform/src/components/aws/bucket-topic-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket-topic-subscriber.js +99 -0
- package/dist/.sst/platform/src/components/aws/bucket-topic-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket.d.ts +1115 -0
- package/dist/.sst/platform/src/components/aws/bucket.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket.js +754 -0
- package/dist/.sst/platform/src/components/aws/bucket.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bus-base-subscriber.d.ts +20 -0
- package/dist/.sst/platform/src/components/aws/bus-base-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bus-base-subscriber.js +19 -0
- package/dist/.sst/platform/src/components/aws/bus-base-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bus-lambda-subscriber.d.ts +49 -0
- package/dist/.sst/platform/src/components/aws/bus-lambda-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bus-lambda-subscriber.js +81 -0
- package/dist/.sst/platform/src/components/aws/bus-lambda-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bus-queue-subscriber.d.ts +44 -0
- package/dist/.sst/platform/src/components/aws/bus-queue-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bus-queue-subscriber.js +63 -0
- package/dist/.sst/platform/src/components/aws/bus-queue-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bus.d.ts +403 -0
- package/dist/.sst/platform/src/components/aws/bus.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bus.js +350 -0
- package/dist/.sst/platform/src/components/aws/bus.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/cdn.d.ts +299 -0
- package/dist/.sst/platform/src/components/aws/cdn.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/cdn.js +234 -0
- package/dist/.sst/platform/src/components/aws/cdn.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/cluster-v1.d.ts +882 -0
- package/dist/.sst/platform/src/components/aws/cluster-v1.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/cluster-v1.js +245 -0
- package/dist/.sst/platform/src/components/aws/cluster-v1.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/cluster.d.ts +308 -0
- package/dist/.sst/platform/src/components/aws/cluster.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/cluster.js +321 -0
- package/dist/.sst/platform/src/components/aws/cluster.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/cognito-identity-pool.d.ts +194 -0
- package/dist/.sst/platform/src/components/aws/cognito-identity-pool.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/cognito-identity-pool.js +263 -0
- package/dist/.sst/platform/src/components/aws/cognito-identity-pool.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/cognito-identity-provider.d.ts +38 -0
- package/dist/.sst/platform/src/components/aws/cognito-identity-provider.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/cognito-identity-provider.js +67 -0
- package/dist/.sst/platform/src/components/aws/cognito-identity-provider.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/cognito-user-pool-client.d.ts +50 -0
- package/dist/.sst/platform/src/components/aws/cognito-user-pool-client.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/cognito-user-pool-client.js +81 -0
- package/dist/.sst/platform/src/components/aws/cognito-user-pool-client.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/cognito-user-pool.d.ts +599 -0
- package/dist/.sst/platform/src/components/aws/cognito-user-pool.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/cognito-user-pool.js +368 -0
- package/dist/.sst/platform/src/components/aws/cognito-user-pool.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/cron.d.ts +250 -0
- package/dist/.sst/platform/src/components/aws/cron.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/cron.js +200 -0
- package/dist/.sst/platform/src/components/aws/cron.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/dns-validated-certificate.d.ts +27 -0
- package/dist/.sst/platform/src/components/aws/dns-validated-certificate.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/dns-validated-certificate.js +55 -0
- package/dist/.sst/platform/src/components/aws/dns-validated-certificate.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/dns.d.ts +94 -0
- package/dist/.sst/platform/src/components/aws/dns.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/dns.js +121 -0
- package/dist/.sst/platform/src/components/aws/dns.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/dynamo-lambda-subscriber.d.ts +55 -0
- package/dist/.sst/platform/src/components/aws/dynamo-lambda-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/dynamo-lambda-subscriber.js +79 -0
- package/dist/.sst/platform/src/components/aws/dynamo-lambda-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/dynamo.d.ts +569 -0
- package/dist/.sst/platform/src/components/aws/dynamo.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/dynamo.js +291 -0
- package/dist/.sst/platform/src/components/aws/dynamo.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/efs.d.ts +217 -0
- package/dist/.sst/platform/src/components/aws/efs.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/efs.js +241 -0
- package/dist/.sst/platform/src/components/aws/efs.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/email.d.ts +291 -0
- package/dist/.sst/platform/src/components/aws/email.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/email.js +276 -0
- package/dist/.sst/platform/src/components/aws/email.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/fargate.d.ts +769 -0
- package/dist/.sst/platform/src/components/aws/fargate.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/fargate.js +434 -0
- package/dist/.sst/platform/src/components/aws/fargate.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/function.d.ts +1631 -0
- package/dist/.sst/platform/src/components/aws/function.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/function.js +1041 -0
- package/dist/.sst/platform/src/components/aws/function.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/apigateway-account.d.ts +3 -0
- package/dist/.sst/platform/src/components/aws/helpers/apigateway-account.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/apigateway-account.js +31 -0
- package/dist/.sst/platform/src/components/aws/helpers/apigateway-account.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.d.ts +144 -0
- package/dist/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.js +2 -0
- package/dist/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/arn.d.ts +35 -0
- package/dist/.sst/platform/src/components/aws/helpers/arn.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/arn.js +86 -0
- package/dist/.sst/platform/src/components/aws/helpers/arn.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/bootstrap.d.ts +13 -0
- package/dist/.sst/platform/src/components/aws/helpers/bootstrap.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/bootstrap.js +7 -0
- package/dist/.sst/platform/src/components/aws/helpers/bootstrap.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/container-builder.d.ts +4 -0
- package/dist/.sst/platform/src/components/aws/helpers/container-builder.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/container-builder.js +27 -0
- package/dist/.sst/platform/src/components/aws/helpers/container-builder.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/function-builder.d.ts +10 -0
- package/dist/.sst/platform/src/components/aws/helpers/function-builder.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/function-builder.js +51 -0
- package/dist/.sst/platform/src/components/aws/helpers/function-builder.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/provider.d.ts +3 -0
- package/dist/.sst/platform/src/components/aws/helpers/provider.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/provider.js +34 -0
- package/dist/.sst/platform/src/components/aws/helpers/provider.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/quota.d.ts +7 -0
- package/dist/.sst/platform/src/components/aws/helpers/quota.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/quota.js +20 -0
- package/dist/.sst/platform/src/components/aws/helpers/quota.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/site-builder.d.ts +4 -0
- package/dist/.sst/platform/src/components/aws/helpers/site-builder.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/site-builder.js +36 -0
- package/dist/.sst/platform/src/components/aws/helpers/site-builder.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/subscriber.d.ts +6 -0
- package/dist/.sst/platform/src/components/aws/helpers/subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/subscriber.js +13 -0
- package/dist/.sst/platform/src/components/aws/helpers/subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/https-redirect.d.ts +38 -0
- package/dist/.sst/platform/src/components/aws/https-redirect.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/https-redirect.js +124 -0
- package/dist/.sst/platform/src/components/aws/https-redirect.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/iam-edit.d.ts +39 -0
- package/dist/.sst/platform/src/components/aws/iam-edit.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/iam-edit.js +40 -0
- package/dist/.sst/platform/src/components/aws/iam-edit.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/index.d.ts +48 -0
- package/dist/.sst/platform/src/components/aws/index.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/index.js +49 -0
- package/dist/.sst/platform/src/components/aws/index.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.d.ts +48 -0
- package/dist/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.js +82 -0
- package/dist/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/kinesis-stream.d.ts +249 -0
- package/dist/.sst/platform/src/components/aws/kinesis-stream.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/kinesis-stream.js +134 -0
- package/dist/.sst/platform/src/components/aws/kinesis-stream.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/linkable.d.ts +17 -0
- package/dist/.sst/platform/src/components/aws/linkable.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/linkable.js +25 -0
- package/dist/.sst/platform/src/components/aws/linkable.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/logging.d.ts +26 -0
- package/dist/.sst/platform/src/components/aws/logging.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/logging.js +26 -0
- package/dist/.sst/platform/src/components/aws/logging.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/mysql.d.ts +496 -0
- package/dist/.sst/platform/src/components/aws/mysql.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/mysql.js +514 -0
- package/dist/.sst/platform/src/components/aws/mysql.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/nextjs.d.ts +517 -0
- package/dist/.sst/platform/src/components/aws/nextjs.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/nextjs.js +444 -0
- package/dist/.sst/platform/src/components/aws/nextjs.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/nuxt.d.ts +495 -0
- package/dist/.sst/platform/src/components/aws/nuxt.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/nuxt.js +113 -0
- package/dist/.sst/platform/src/components/aws/nuxt.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/open-search.d.ts +295 -0
- package/dist/.sst/platform/src/components/aws/open-search.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/open-search.js +365 -0
- package/dist/.sst/platform/src/components/aws/open-search.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/opencontrol.d.ts +165 -0
- package/dist/.sst/platform/src/components/aws/opencontrol.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/opencontrol.js +164 -0
- package/dist/.sst/platform/src/components/aws/opencontrol.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/permission.d.ts +27 -0
- package/dist/.sst/platform/src/components/aws/permission.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/permission.js +19 -0
- package/dist/.sst/platform/src/components/aws/permission.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/postgres-v1.d.ts +317 -0
- package/dist/.sst/platform/src/components/aws/postgres-v1.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/postgres-v1.js +304 -0
- package/dist/.sst/platform/src/components/aws/postgres-v1.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/postgres.d.ts +500 -0
- package/dist/.sst/platform/src/components/aws/postgres.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/postgres.js +532 -0
- package/dist/.sst/platform/src/components/aws/postgres.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/bucket-files.d.ts +18 -0
- package/dist/.sst/platform/src/components/aws/providers/bucket-files.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/bucket-files.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/bucket-files.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.d.ts +13 -0
- package/dist/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/distribution-invalidation.d.ts +11 -0
- package/dist/.sst/platform/src/components/aws/providers/distribution-invalidation.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/distribution-invalidation.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/distribution-invalidation.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/function-environment-update.d.ts +29 -0
- package/dist/.sst/platform/src/components/aws/providers/function-environment-update.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/function-environment-update.js +18 -0
- package/dist/.sst/platform/src/components/aws/providers/function-environment-update.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/hosted-zone-lookup.d.ts +11 -0
- package/dist/.sst/platform/src/components/aws/providers/hosted-zone-lookup.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/hosted-zone-lookup.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/hosted-zone-lookup.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/kv-keys.d.ts +11 -0
- package/dist/.sst/platform/src/components/aws/providers/kv-keys.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/kv-keys.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/kv-keys.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/kv-routes-update.d.ts +11 -0
- package/dist/.sst/platform/src/components/aws/providers/kv-routes-update.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/kv-routes-update.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/kv-routes-update.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/origin-access-control.d.ts +8 -0
- package/dist/.sst/platform/src/components/aws/providers/origin-access-control.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/origin-access-control.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/origin-access-control.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/rds-role-lookup.d.ts +8 -0
- package/dist/.sst/platform/src/components/aws/providers/rds-role-lookup.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/rds-role-lookup.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/rds-role-lookup.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/vector-table.d.ts +12 -0
- package/dist/.sst/platform/src/components/aws/providers/vector-table.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/vector-table.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/vector-table.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/queue-lambda-subscriber.d.ts +48 -0
- package/dist/.sst/platform/src/components/aws/queue-lambda-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/queue-lambda-subscriber.js +81 -0
- package/dist/.sst/platform/src/components/aws/queue-lambda-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/queue.d.ts +485 -0
- package/dist/.sst/platform/src/components/aws/queue.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/queue.js +322 -0
- package/dist/.sst/platform/src/components/aws/queue.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/react.d.ts +416 -0
- package/dist/.sst/platform/src/components/aws/react.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/react.js +157 -0
- package/dist/.sst/platform/src/components/aws/react.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/realtime-lambda-subscriber.d.ts +53 -0
- package/dist/.sst/platform/src/components/aws/realtime-lambda-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/realtime-lambda-subscriber.js +78 -0
- package/dist/.sst/platform/src/components/aws/realtime-lambda-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/realtime.d.ts +226 -0
- package/dist/.sst/platform/src/components/aws/realtime.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/realtime.js +221 -0
- package/dist/.sst/platform/src/components/aws/realtime.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/redis-v1.d.ts +338 -0
- package/dist/.sst/platform/src/components/aws/redis-v1.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/redis-v1.js +335 -0
- package/dist/.sst/platform/src/components/aws/redis-v1.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/redis.d.ts +364 -0
- package/dist/.sst/platform/src/components/aws/redis.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/redis.js +382 -0
- package/dist/.sst/platform/src/components/aws/redis.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/remix.d.ts +423 -0
- package/dist/.sst/platform/src/components/aws/remix.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/remix.js +212 -0
- package/dist/.sst/platform/src/components/aws/remix.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/router-base-route.d.ts +28 -0
- package/dist/.sst/platform/src/components/aws/router-base-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/router-base-route.js +40 -0
- package/dist/.sst/platform/src/components/aws/router-base-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/router-bucket-route.d.ts +29 -0
- package/dist/.sst/platform/src/components/aws/router-bucket-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/router-bucket-route.js +40 -0
- package/dist/.sst/platform/src/components/aws/router-bucket-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/router-url-route.d.ts +28 -0
- package/dist/.sst/platform/src/components/aws/router-url-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/router-url-route.js +51 -0
- package/dist/.sst/platform/src/components/aws/router-url-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/router.d.ts +1266 -0
- package/dist/.sst/platform/src/components/aws/router.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/router.js +1156 -0
- package/dist/.sst/platform/src/components/aws/router.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/service-v1.d.ts +78 -0
- package/dist/.sst/platform/src/components/aws/service-v1.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/service-v1.js +606 -0
- package/dist/.sst/platform/src/components/aws/service-v1.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/service.d.ts +1599 -0
- package/dist/.sst/platform/src/components/aws/service.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/service.js +924 -0
- package/dist/.sst/platform/src/components/aws/service.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.d.ts +53 -0
- package/dist/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.js +75 -0
- package/dist/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/sns-topic-queue-subscriber.d.ts +55 -0
- package/dist/.sst/platform/src/components/aws/sns-topic-queue-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/sns-topic-queue-subscriber.js +59 -0
- package/dist/.sst/platform/src/components/aws/sns-topic-queue-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/sns-topic.d.ts +389 -0
- package/dist/.sst/platform/src/components/aws/sns-topic.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/sns-topic.js +233 -0
- package/dist/.sst/platform/src/components/aws/sns-topic.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/solid-start.d.ts +414 -0
- package/dist/.sst/platform/src/components/aws/solid-start.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/solid-start.js +120 -0
- package/dist/.sst/platform/src/components/aws/solid-start.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/ssr-site.d.ts +494 -0
- package/dist/.sst/platform/src/components/aws/ssr-site.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/ssr-site.js +792 -0
- package/dist/.sst/platform/src/components/aws/ssr-site.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/static-site.d.ts +736 -0
- package/dist/.sst/platform/src/components/aws/static-site.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/static-site.js +583 -0
- package/dist/.sst/platform/src/components/aws/static-site.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/choice.d.ts +73 -0
- package/dist/.sst/platform/src/components/aws/step-functions/choice.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/choice.js +98 -0
- package/dist/.sst/platform/src/components/aws/step-functions/choice.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/fail.d.ts +63 -0
- package/dist/.sst/platform/src/components/aws/step-functions/fail.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/fail.js +25 -0
- package/dist/.sst/platform/src/components/aws/step-functions/fail.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/map.d.ts +236 -0
- package/dist/.sst/platform/src/components/aws/step-functions/map.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/map.js +108 -0
- package/dist/.sst/platform/src/components/aws/step-functions/map.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/parallel.d.ts +127 -0
- package/dist/.sst/platform/src/components/aws/step-functions/parallel.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/parallel.js +129 -0
- package/dist/.sst/platform/src/components/aws/step-functions/parallel.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/pass.d.ts +39 -0
- package/dist/.sst/platform/src/components/aws/step-functions/pass.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/pass.js +41 -0
- package/dist/.sst/platform/src/components/aws/step-functions/pass.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/state.d.ts +197 -0
- package/dist/.sst/platform/src/components/aws/step-functions/state.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/state.js +134 -0
- package/dist/.sst/platform/src/components/aws/step-functions/state.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/succeed.d.ts +26 -0
- package/dist/.sst/platform/src/components/aws/step-functions/succeed.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/succeed.js +25 -0
- package/dist/.sst/platform/src/components/aws/step-functions/succeed.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/task.d.ts +477 -0
- package/dist/.sst/platform/src/components/aws/step-functions/task.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/task.js +116 -0
- package/dist/.sst/platform/src/components/aws/step-functions/task.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/wait.d.ts +91 -0
- package/dist/.sst/platform/src/components/aws/step-functions/wait.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/wait.js +46 -0
- package/dist/.sst/platform/src/components/aws/step-functions/wait.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions.d.ts +473 -0
- package/dist/.sst/platform/src/components/aws/step-functions.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions.js +576 -0
- package/dist/.sst/platform/src/components/aws/step-functions.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/svelte-kit.d.ts +417 -0
- package/dist/.sst/platform/src/components/aws/svelte-kit.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/svelte-kit.js +144 -0
- package/dist/.sst/platform/src/components/aws/svelte-kit.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/tan-stack-start.d.ts +354 -0
- package/dist/.sst/platform/src/components/aws/tan-stack-start.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/tan-stack-start.js +143 -0
- package/dist/.sst/platform/src/components/aws/tan-stack-start.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/task.d.ts +322 -0
- package/dist/.sst/platform/src/components/aws/task.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/task.js +311 -0
- package/dist/.sst/platform/src/components/aws/task.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/vector.d.ts +150 -0
- package/dist/.sst/platform/src/components/aws/vector.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/vector.js +224 -0
- package/dist/.sst/platform/src/components/aws/vector.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/vpc-v1.d.ts +208 -0
- package/dist/.sst/platform/src/components/aws/vpc-v1.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/vpc-v1.js +355 -0
- package/dist/.sst/platform/src/components/aws/vpc-v1.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/vpc.d.ts +444 -0
- package/dist/.sst/platform/src/components/aws/vpc.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/vpc.js +834 -0
- package/dist/.sst/platform/src/components/aws/vpc.js.map +1 -0
- package/dist/.sst/platform/src/components/base/base-site.d.ts +53 -0
- package/dist/.sst/platform/src/components/base/base-site.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/base/base-site.js +47 -0
- package/dist/.sst/platform/src/components/base/base-site.js.map +1 -0
- package/dist/.sst/platform/src/components/base/base-ssr-site.d.ts +111 -0
- package/dist/.sst/platform/src/components/base/base-ssr-site.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/base/base-ssr-site.js +72 -0
- package/dist/.sst/platform/src/components/base/base-ssr-site.js.map +1 -0
- package/dist/.sst/platform/src/components/base/base-static-site.d.ts +199 -0
- package/dist/.sst/platform/src/components/base/base-static-site.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/base/base-static-site.js +87 -0
- package/dist/.sst/platform/src/components/base/base-static-site.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/account-id.d.ts +2 -0
- package/dist/.sst/platform/src/components/cloudflare/account-id.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/account-id.js +2 -0
- package/dist/.sst/platform/src/components/cloudflare/account-id.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/auth.d.ts +22 -0
- package/dist/.sst/platform/src/components/cloudflare/auth.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/auth.js +37 -0
- package/dist/.sst/platform/src/components/cloudflare/auth.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/binding.d.ts +69 -0
- package/dist/.sst/platform/src/components/cloudflare/binding.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/binding.js +25 -0
- package/dist/.sst/platform/src/components/cloudflare/binding.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/bucket.d.ts +101 -0
- package/dist/.sst/platform/src/components/cloudflare/bucket.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/bucket.js +98 -0
- package/dist/.sst/platform/src/components/cloudflare/bucket.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/cron.d.ts +121 -0
- package/dist/.sst/platform/src/components/cloudflare/cron.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/cron.js +86 -0
- package/dist/.sst/platform/src/components/cloudflare/cron.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/d1.d.ts +107 -0
- package/dist/.sst/platform/src/components/cloudflare/d1.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/d1.js +104 -0
- package/dist/.sst/platform/src/components/cloudflare/d1.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/dns.d.ts +94 -0
- package/dist/.sst/platform/src/components/cloudflare/dns.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/dns.js +138 -0
- package/dist/.sst/platform/src/components/cloudflare/dns.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/helpers/fetch.d.ts +19 -0
- package/dist/.sst/platform/src/components/cloudflare/helpers/fetch.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/helpers/fetch.js +39 -0
- package/dist/.sst/platform/src/components/cloudflare/helpers/fetch.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/helpers/worker-builder.d.ts +10 -0
- package/dist/.sst/platform/src/components/cloudflare/helpers/worker-builder.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/helpers/worker-builder.js +25 -0
- package/dist/.sst/platform/src/components/cloudflare/helpers/worker-builder.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/index.d.ts +13 -0
- package/dist/.sst/platform/src/components/cloudflare/index.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/index.js +13 -0
- package/dist/.sst/platform/src/components/cloudflare/index.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/kv.d.ts +101 -0
- package/dist/.sst/platform/src/components/cloudflare/kv.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/kv.js +98 -0
- package/dist/.sst/platform/src/components/cloudflare/kv.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/dns-record.d.ts +20 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/dns-record.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/dns-record.js +11 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/dns-record.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/kv-data.d.ts +23 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/kv-data.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/kv-data.js +63 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/kv-data.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/worker-url.d.ts +22 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/worker-url.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/worker-url.js +83 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/worker-url.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/zone-lookup.d.ts +22 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/zone-lookup.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/zone-lookup.js +54 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/zone-lookup.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/queue.d.ts +60 -0
- package/dist/.sst/platform/src/components/cloudflare/queue.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/queue.js +57 -0
- package/dist/.sst/platform/src/components/cloudflare/queue.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/remix.d.ts +223 -0
- package/dist/.sst/platform/src/components/cloudflare/remix.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/remix.js +291 -0
- package/dist/.sst/platform/src/components/cloudflare/remix.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/ssr-site.d.ts +59 -0
- package/dist/.sst/platform/src/components/cloudflare/ssr-site.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/ssr-site.js +177 -0
- package/dist/.sst/platform/src/components/cloudflare/ssr-site.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/static-site.d.ts +262 -0
- package/dist/.sst/platform/src/components/cloudflare/static-site.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/static-site.js +315 -0
- package/dist/.sst/platform/src/components/cloudflare/static-site.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/worker.d.ts +273 -0
- package/dist/.sst/platform/src/components/cloudflare/worker.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/worker.js +326 -0
- package/dist/.sst/platform/src/components/cloudflare/worker.js.map +1 -0
- package/dist/.sst/platform/src/components/component.d.ts +37 -0
- package/dist/.sst/platform/src/components/component.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/component.js +395 -0
- package/dist/.sst/platform/src/components/component.js.map +1 -0
- package/dist/.sst/platform/src/components/cpu.d.ts +3 -0
- package/dist/.sst/platform/src/components/cpu.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cpu.js +9 -0
- package/dist/.sst/platform/src/components/cpu.js.map +1 -0
- package/dist/.sst/platform/src/components/dns.d.ts +59 -0
- package/dist/.sst/platform/src/components/dns.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/dns.js +7 -0
- package/dist/.sst/platform/src/components/dns.js.map +1 -0
- package/dist/.sst/platform/src/components/duration.d.ts +6 -0
- package/dist/.sst/platform/src/components/duration.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/duration.js +19 -0
- package/dist/.sst/platform/src/components/duration.js.map +1 -0
- package/dist/.sst/platform/src/components/error.d.ts +4 -0
- package/dist/.sst/platform/src/components/error.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/error.js +6 -0
- package/dist/.sst/platform/src/components/error.js.map +1 -0
- package/dist/.sst/platform/src/components/experimental/dev-command.d.ts +99 -0
- package/dist/.sst/platform/src/components/experimental/dev-command.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/experimental/dev-command.js +59 -0
- package/dist/.sst/platform/src/components/experimental/dev-command.js.map +1 -0
- package/dist/.sst/platform/src/components/experimental/index.d.ts +2 -0
- package/dist/.sst/platform/src/components/experimental/index.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/experimental/index.js +2 -0
- package/dist/.sst/platform/src/components/experimental/index.js.map +1 -0
- package/dist/.sst/platform/src/components/hint.d.ts +7 -0
- package/dist/.sst/platform/src/components/hint.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/hint.js +20 -0
- package/dist/.sst/platform/src/components/hint.js.map +1 -0
- package/dist/.sst/platform/src/components/index.d.ts +16 -0
- package/dist/.sst/platform/src/components/index.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/index.js +16 -0
- package/dist/.sst/platform/src/components/index.js.map +1 -0
- package/dist/.sst/platform/src/components/input.d.ts +3 -0
- package/dist/.sst/platform/src/components/input.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/input.js +2 -0
- package/dist/.sst/platform/src/components/input.js.map +1 -0
- package/dist/.sst/platform/src/components/link.d.ts +41 -0
- package/dist/.sst/platform/src/components/link.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/link.js +138 -0
- package/dist/.sst/platform/src/components/link.js.map +1 -0
- package/dist/.sst/platform/src/components/linkable.d.ts +271 -0
- package/dist/.sst/platform/src/components/linkable.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/linkable.js +244 -0
- package/dist/.sst/platform/src/components/linkable.js.map +1 -0
- package/dist/.sst/platform/src/components/naming.d.ts +7 -0
- package/dist/.sst/platform/src/components/naming.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/naming.js +58 -0
- package/dist/.sst/platform/src/components/naming.js.map +1 -0
- package/dist/.sst/platform/src/components/path.d.ts +2 -0
- package/dist/.sst/platform/src/components/path.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/path.js +5 -0
- package/dist/.sst/platform/src/components/path.js.map +1 -0
- package/dist/.sst/platform/src/components/rpc/rpc.d.ts +18 -0
- package/dist/.sst/platform/src/components/rpc/rpc.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/rpc/rpc.js +120 -0
- package/dist/.sst/platform/src/components/rpc/rpc.js.map +1 -0
- package/dist/.sst/platform/src/components/secret.d.ts +125 -0
- package/dist/.sst/platform/src/components/secret.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/secret.js +143 -0
- package/dist/.sst/platform/src/components/secret.js.map +1 -0
- package/dist/.sst/platform/src/components/size.d.ts +5 -0
- package/dist/.sst/platform/src/components/size.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/size.js +29 -0
- package/dist/.sst/platform/src/components/size.js.map +1 -0
- package/dist/.sst/platform/src/components/vercel/account-id.d.ts +2 -0
- package/dist/.sst/platform/src/components/vercel/account-id.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/vercel/account-id.js +2 -0
- package/dist/.sst/platform/src/components/vercel/account-id.js.map +1 -0
- package/dist/.sst/platform/src/components/vercel/dns.d.ts +73 -0
- package/dist/.sst/platform/src/components/vercel/dns.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/vercel/dns.js +104 -0
- package/dist/.sst/platform/src/components/vercel/dns.js.map +1 -0
- package/dist/.sst/platform/src/components/vercel/index.d.ts +3 -0
- package/dist/.sst/platform/src/components/vercel/index.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/vercel/index.js +3 -0
- package/dist/.sst/platform/src/components/vercel/index.js.map +1 -0
- package/dist/.sst/platform/src/components/vercel/providers/dns-record.d.ts +14 -0
- package/dist/.sst/platform/src/components/vercel/providers/dns-record.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/vercel/providers/dns-record.js +8 -0
- package/dist/.sst/platform/src/components/vercel/providers/dns-record.js.map +1 -0
- package/dist/.sst/platform/src/config.d.ts +1243 -0
- package/dist/.sst/platform/src/config.d.ts.map +1 -0
- package/dist/.sst/platform/src/config.js +5 -0
- package/dist/.sst/platform/src/config.js.map +1 -0
- package/dist/.sst/platform/src/util/compare-semver.d.ts +4 -0
- package/dist/.sst/platform/src/util/compare-semver.d.ts.map +1 -0
- package/dist/.sst/platform/src/util/compare-semver.js +24 -0
- package/dist/.sst/platform/src/util/compare-semver.js.map +1 -0
- package/dist/.sst/platform/src/util/lazy.d.ts +2 -0
- package/dist/.sst/platform/src/util/lazy.d.ts.map +1 -0
- package/dist/.sst/platform/src/util/lazy.js +12 -0
- package/dist/.sst/platform/src/util/lazy.js.map +1 -0
- package/dist/.sst/platform/src/util/path-to-regex.d.ts +128 -0
- package/dist/.sst/platform/src/util/path-to-regex.d.ts.map +1 -0
- package/dist/.sst/platform/src/util/path-to-regex.js +392 -0
- package/dist/.sst/platform/src/util/path-to-regex.js.map +1 -0
- package/dist/.sst/platform/src/util/semaphore.d.ts +9 -0
- package/dist/.sst/platform/src/util/semaphore.d.ts.map +1 -0
- package/dist/.sst/platform/src/util/semaphore.js +36 -0
- package/dist/.sst/platform/src/util/semaphore.js.map +1 -0
- package/dist/.sst/platform/src/util/warn.d.ts +2 -0
- package/dist/.sst/platform/src/util/warn.d.ts.map +1 -0
- package/dist/.sst/platform/src/util/warn.js +8 -0
- package/dist/.sst/platform/src/util/warn.js.map +1 -0
- package/dist/components/monorise-core.d.ts +17 -0
- package/dist/components/monorise-core.d.ts.map +1 -0
- package/dist/components/monorise-core.js +134 -0
- package/dist/components/monorise-core.js.map +1 -0
- package/dist/components/q-function.d.ts +17 -0
- package/dist/components/q-function.d.ts.map +1 -0
- package/dist/components/q-function.js +53 -0
- package/dist/components/q-function.js.map +1 -0
- package/dist/components/single-table.d.ts +12 -0
- package/dist/components/single-table.d.ts.map +1 -0
- package/dist/components/single-table.js +71 -0
- package/dist/components/single-table.js.map +1 -0
- package/dist/constants/event.d.ts +73 -0
- package/dist/constants/event.d.ts.map +1 -0
- package/dist/constants/event.js +74 -0
- package/dist/constants/event.js.map +1 -0
- package/dist/constants/table.d.ts +3 -0
- package/dist/constants/table.d.ts.map +1 -0
- package/dist/constants/table.js +3 -0
- package/dist/constants/table.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/sst.config.d.ts +3 -0
- package/dist/sst.config.d.ts.map +1 -0
- package/dist/sst.config.js +24 -0
- package/dist/sst.config.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +25 -0
|
@@ -0,0 +1,834 @@
|
|
|
1
|
+
import { all, interpolate, output, } from "@pulumi/pulumi";
|
|
2
|
+
import { Component, transform } from "../component";
|
|
3
|
+
import { ec2, getAvailabilityZonesOutput, getPartitionOutput, iam, route53, servicediscovery, ssm, } from "@pulumi/aws";
|
|
4
|
+
import { Vpc as VpcV1 } from "./vpc-v1";
|
|
5
|
+
import { VisibleError } from "../error";
|
|
6
|
+
import { PrivateKey } from "@pulumi/tls";
|
|
7
|
+
/**
|
|
8
|
+
* The `Vpc` component lets you add a VPC to your app. It uses [Amazon VPC](https://docs.aws.amazon.com/vpc/). This is useful for services like RDS and Fargate that need to be hosted inside
|
|
9
|
+
* a VPC.
|
|
10
|
+
*
|
|
11
|
+
* This creates a VPC with 2 Availability Zones by default. It also creates the following
|
|
12
|
+
* resources:
|
|
13
|
+
*
|
|
14
|
+
* 1. A default security group blocking all incoming internet traffic.
|
|
15
|
+
* 2. A public subnet in each AZ.
|
|
16
|
+
* 3. A private subnet in each AZ.
|
|
17
|
+
* 4. An Internet Gateway. All the traffic from the public subnets are routed through it.
|
|
18
|
+
* 5. If `nat` is enabled, a NAT Gateway or NAT instance in each AZ. All the traffic from
|
|
19
|
+
* the private subnets are routed to the NAT in the same AZ.
|
|
20
|
+
*
|
|
21
|
+
* :::note
|
|
22
|
+
* By default, this does not create NAT Gateways or NAT instances.
|
|
23
|
+
* :::
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
*
|
|
27
|
+
* #### Create a VPC
|
|
28
|
+
*
|
|
29
|
+
* ```ts title="sst.config.ts"
|
|
30
|
+
* new sst.aws.Vpc("MyVPC");
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* #### Create it with 3 Availability Zones
|
|
34
|
+
*
|
|
35
|
+
* ```ts title="sst.config.ts" {2}
|
|
36
|
+
* new sst.aws.Vpc("MyVPC", {
|
|
37
|
+
* az: 3
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* #### Enable NAT
|
|
42
|
+
*
|
|
43
|
+
* ```ts title="sst.config.ts" {2}
|
|
44
|
+
* new sst.aws.Vpc("MyVPC", {
|
|
45
|
+
* nat: "managed"
|
|
46
|
+
* });
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* ---
|
|
50
|
+
*
|
|
51
|
+
* ### Cost
|
|
52
|
+
*
|
|
53
|
+
* By default, this component is **free**. Following is the cost to enable the `nat` or `bastion`
|
|
54
|
+
* options.
|
|
55
|
+
*
|
|
56
|
+
* #### Managed NAT
|
|
57
|
+
*
|
|
58
|
+
* If you enable `nat` with the `managed` option, it uses a _NAT Gateway_ per `az` at $0.045 per
|
|
59
|
+
* hour, and $0.045 per GB processed per month.
|
|
60
|
+
*
|
|
61
|
+
* That works out to a minimum of $0.045 x 2 x 24 x 30 or **$65 per month**. Adjust this for the
|
|
62
|
+
* number of `az` and add $0.045 per GB processed per month.
|
|
63
|
+
*
|
|
64
|
+
* The above are rough estimates for _us-east-1_, check out the
|
|
65
|
+
* [NAT Gateway pricing](https://aws.amazon.com/vpc/pricing/) for more details. Standard [data
|
|
66
|
+
* transfer charges](https://aws.amazon.com/ec2/pricing/on-demand/#Data_Transfer) apply.
|
|
67
|
+
*
|
|
68
|
+
* #### EC2 NAT
|
|
69
|
+
*
|
|
70
|
+
* If you enable `nat` with the `ec2` option, it uses `t4g.nano` EC2 _On Demand_ instances per
|
|
71
|
+
* `az` at $0.0042 per hour, and $0.09 per GB processed per month for the first 10TB.
|
|
72
|
+
*
|
|
73
|
+
* That works out to a minimum of $0.0042 x 2 x 24 x 30 or **$6 per month**. Adjust this for the
|
|
74
|
+
* `nat.ec2.instance` you are using and add $0.09 per GB processed per month.
|
|
75
|
+
*
|
|
76
|
+
* The above are rough estimates for _us-east-1_, check out the
|
|
77
|
+
* [EC2 On-Demand pricing](https://aws.amazon.com/vpc/pricing/) and the
|
|
78
|
+
* [EC2 Data Transfer pricing](https://aws.amazon.com/ec2/pricing/on-demand/#Data_Transfer)
|
|
79
|
+
* for more details.
|
|
80
|
+
*
|
|
81
|
+
* #### Bastion
|
|
82
|
+
*
|
|
83
|
+
* If you enable `bastion`, it uses a single `t4g.nano` EC2 _On Demand_ instance at
|
|
84
|
+
* $0.0042 per hour, and $0.09 per GB processed per month for the first 10TB.
|
|
85
|
+
*
|
|
86
|
+
* That works out to $0.0042 x 24 x 30 or **$3 per month**. Add $0.09 per GB processed per month.
|
|
87
|
+
*
|
|
88
|
+
* However if `nat: "ec2"` is enabled, one of the NAT EC2 instances will be reused; making this
|
|
89
|
+
* **free**.
|
|
90
|
+
*
|
|
91
|
+
* The above are rough estimates for _us-east-1_, check out the
|
|
92
|
+
* [EC2 On-Demand pricing](https://aws.amazon.com/vpc/pricing/) and the
|
|
93
|
+
* [EC2 Data Transfer pricing](https://aws.amazon.com/ec2/pricing/on-demand/#Data_Transfer)
|
|
94
|
+
* for more details.
|
|
95
|
+
*/
|
|
96
|
+
export class Vpc extends Component {
|
|
97
|
+
constructor(name, args = {}, opts) {
|
|
98
|
+
super(__pulumiType, name, args, opts);
|
|
99
|
+
const _version = 2;
|
|
100
|
+
const _refVersion = 2;
|
|
101
|
+
const self = this;
|
|
102
|
+
if (args && "ref" in args) {
|
|
103
|
+
const ref = reference();
|
|
104
|
+
this.vpc = ref.vpc;
|
|
105
|
+
this.internetGateway = ref.internetGateway;
|
|
106
|
+
this.securityGroup = ref.securityGroup;
|
|
107
|
+
this._publicSubnets = output(ref.publicSubnets);
|
|
108
|
+
this._privateSubnets = output(ref.privateSubnets);
|
|
109
|
+
this.publicRouteTables = output(ref.publicRouteTables);
|
|
110
|
+
this.privateRouteTables = output(ref.privateRouteTables);
|
|
111
|
+
this.natGateways = output(ref.natGateways);
|
|
112
|
+
this.natInstances = output(ref.natInstances);
|
|
113
|
+
this.elasticIps = ref.elasticIps;
|
|
114
|
+
this.bastionInstance = ref.bastionInstance;
|
|
115
|
+
this.cloudmapNamespace = ref.cloudmapNamespace;
|
|
116
|
+
this.privateKeyValue = output(ref.privateKeyValue);
|
|
117
|
+
registerOutputs();
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
registerVersion();
|
|
121
|
+
const zones = normalizeAz();
|
|
122
|
+
const nat = normalizeNat();
|
|
123
|
+
const partition = getPartitionOutput({}, opts).partition;
|
|
124
|
+
const vpc = createVpc();
|
|
125
|
+
const { keyPair, privateKeyValue } = createKeyPair();
|
|
126
|
+
const internetGateway = createInternetGateway();
|
|
127
|
+
const securityGroup = createSecurityGroup();
|
|
128
|
+
const { publicSubnets, publicRouteTables } = createPublicSubnets();
|
|
129
|
+
const elasticIps = createElasticIps();
|
|
130
|
+
const natGateways = createNatGateways();
|
|
131
|
+
const natInstances = createNatInstances();
|
|
132
|
+
const { privateSubnets, privateRouteTables } = createPrivateSubnets();
|
|
133
|
+
const bastionInstance = createBastion();
|
|
134
|
+
const cloudmapNamespace = createCloudmapNamespace();
|
|
135
|
+
this.vpc = vpc;
|
|
136
|
+
this.internetGateway = internetGateway;
|
|
137
|
+
this.securityGroup = securityGroup;
|
|
138
|
+
this.natGateways = natGateways;
|
|
139
|
+
this.natInstances = natInstances;
|
|
140
|
+
this.elasticIps = elasticIps;
|
|
141
|
+
this._publicSubnets = publicSubnets;
|
|
142
|
+
this._privateSubnets = privateSubnets;
|
|
143
|
+
this.publicRouteTables = publicRouteTables;
|
|
144
|
+
this.privateRouteTables = privateRouteTables;
|
|
145
|
+
this.bastionInstance = output(bastionInstance);
|
|
146
|
+
this.cloudmapNamespace = cloudmapNamespace;
|
|
147
|
+
this.privateKeyValue = output(privateKeyValue);
|
|
148
|
+
registerOutputs();
|
|
149
|
+
function reference() {
|
|
150
|
+
const ref = args;
|
|
151
|
+
const vpc = ec2.Vpc.get(`${name}Vpc`, ref.vpcId, undefined, {
|
|
152
|
+
parent: self,
|
|
153
|
+
});
|
|
154
|
+
const vpcId = vpc.tags.apply((tags) => {
|
|
155
|
+
registerVersion((tags === null || tags === void 0 ? void 0 : tags["sst:component-version"])
|
|
156
|
+
? parseInt(tags["sst:component-version"])
|
|
157
|
+
: undefined);
|
|
158
|
+
if ((tags === null || tags === void 0 ? void 0 : tags["sst:ref-version"]) !== _refVersion.toString()) {
|
|
159
|
+
throw new VisibleError([
|
|
160
|
+
`There have been some minor changes to the "Vpc" component that's being referenced by "${name}".\n`,
|
|
161
|
+
`To update, you'll need to redeploy the stage where the VPC was created. And then redeploy this stage.`,
|
|
162
|
+
].join("\n"));
|
|
163
|
+
}
|
|
164
|
+
return output(ref.vpcId);
|
|
165
|
+
});
|
|
166
|
+
const internetGateway = ec2.InternetGateway.get(`${name}InstanceGateway`, ec2.getInternetGatewayOutput({
|
|
167
|
+
filters: [{ name: "attachment.vpc-id", values: [vpcId] }],
|
|
168
|
+
}, { parent: self }).internetGatewayId, undefined, { parent: self });
|
|
169
|
+
const securityGroup = ec2.SecurityGroup.get(`${name}SecurityGroup`, ec2
|
|
170
|
+
.getSecurityGroupsOutput({
|
|
171
|
+
filters: [
|
|
172
|
+
{ name: "group-name", values: ["default"] },
|
|
173
|
+
{ name: "vpc-id", values: [vpcId] },
|
|
174
|
+
],
|
|
175
|
+
}, { parent: self })
|
|
176
|
+
.ids.apply((ids) => {
|
|
177
|
+
if (!ids.length) {
|
|
178
|
+
throw new VisibleError(`Security group not found in VPC ${vpcId}`);
|
|
179
|
+
}
|
|
180
|
+
return ids[0];
|
|
181
|
+
}), undefined, { parent: self });
|
|
182
|
+
const privateSubnets = ec2
|
|
183
|
+
.getSubnetsOutput({
|
|
184
|
+
filters: [
|
|
185
|
+
{ name: "vpc-id", values: [vpcId] },
|
|
186
|
+
{ name: "tag:Name", values: ["*Private*"] },
|
|
187
|
+
],
|
|
188
|
+
}, { parent: self })
|
|
189
|
+
.ids.apply((ids) => ids.map((id, i) => ec2.Subnet.get(`${name}PrivateSubnet${i + 1}`, id, undefined, {
|
|
190
|
+
parent: self,
|
|
191
|
+
})));
|
|
192
|
+
const privateRouteTables = privateSubnets.apply((subnets) => subnets.map((subnet, i) => ec2.RouteTable.get(`${name}PrivateRouteTable${i + 1}`, ec2.getRouteTableOutput({ subnetId: subnet.id }, { parent: self })
|
|
193
|
+
.routeTableId, undefined, { parent: self })));
|
|
194
|
+
const publicSubnets = ec2
|
|
195
|
+
.getSubnetsOutput({
|
|
196
|
+
filters: [
|
|
197
|
+
{ name: "vpc-id", values: [vpcId] },
|
|
198
|
+
{ name: "tag:Name", values: ["*Public*"] },
|
|
199
|
+
],
|
|
200
|
+
}, { parent: self })
|
|
201
|
+
.ids.apply((ids) => ids.map((id, i) => ec2.Subnet.get(`${name}PublicSubnet${i + 1}`, id, undefined, {
|
|
202
|
+
parent: self,
|
|
203
|
+
})));
|
|
204
|
+
const publicRouteTables = publicSubnets.apply((subnets) => subnets.map((subnet, i) => ec2.RouteTable.get(`${name}PublicRouteTable${i + 1}`, ec2.getRouteTableOutput({ subnetId: subnet.id }, { parent: self })
|
|
205
|
+
.routeTableId, undefined, { parent: self })));
|
|
206
|
+
const natGateways = publicSubnets.apply((subnets) => {
|
|
207
|
+
const natGatewayIds = subnets.map((subnet, i) => ec2
|
|
208
|
+
.getNatGatewaysOutput({
|
|
209
|
+
filters: [
|
|
210
|
+
{ name: "subnet-id", values: [subnet.id] },
|
|
211
|
+
{ name: "state", values: ["available"] },
|
|
212
|
+
],
|
|
213
|
+
}, { parent: self })
|
|
214
|
+
.ids.apply((ids) => ids[0]));
|
|
215
|
+
return output(natGatewayIds).apply((ids) => ids
|
|
216
|
+
.filter((id) => id)
|
|
217
|
+
.map((id, i) => ec2.NatGateway.get(`${name}NatGateway${i + 1}`, id, undefined, {
|
|
218
|
+
parent: self,
|
|
219
|
+
})));
|
|
220
|
+
});
|
|
221
|
+
const elasticIps = natGateways.apply((nats) => nats.map((nat, i) => ec2.Eip.get(`${name}ElasticIp${i + 1}`, nat.allocationId, undefined, { parent: self })));
|
|
222
|
+
const natInstances = ec2
|
|
223
|
+
.getInstancesOutput({
|
|
224
|
+
filters: [
|
|
225
|
+
{ name: "tag:sst:is-nat", values: ["true"] },
|
|
226
|
+
{ name: "vpc-id", values: [vpcId] },
|
|
227
|
+
],
|
|
228
|
+
}, { parent: self })
|
|
229
|
+
.ids.apply((ids) => ids.map((id, i) => ec2.Instance.get(`${name}NatInstance${i + 1}`, id, undefined, {
|
|
230
|
+
parent: self,
|
|
231
|
+
})));
|
|
232
|
+
const bastionInstance = ec2
|
|
233
|
+
.getInstancesOutput({
|
|
234
|
+
filters: [
|
|
235
|
+
{ name: "tag:sst:is-bastion", values: ["true"] },
|
|
236
|
+
{ name: "vpc-id", values: [vpcId] },
|
|
237
|
+
],
|
|
238
|
+
}, { parent: self })
|
|
239
|
+
.ids.apply((ids) => ids.length
|
|
240
|
+
? ec2.Instance.get(`${name}BastionInstance`, ids[0], undefined, {
|
|
241
|
+
parent: self,
|
|
242
|
+
})
|
|
243
|
+
: undefined);
|
|
244
|
+
// Note: can also use servicediscovery.getDnsNamespaceOutput() here, ie.
|
|
245
|
+
// ```ts
|
|
246
|
+
// const namespaceId = servicediscovery.getDnsNamespaceOutput({
|
|
247
|
+
// name: "sst",
|
|
248
|
+
// type: "DNS_PRIVATE",
|
|
249
|
+
// }).id;
|
|
250
|
+
// ```
|
|
251
|
+
// but if user deployed multiple VPCs into the same account. This will error because
|
|
252
|
+
// there are multiple results. Even though `getDnsNamespaceOutput()` takes tags in args,
|
|
253
|
+
// the tags are not used for lookup.
|
|
254
|
+
const zone = output(vpcId).apply((vpcId) => route53.getZone({
|
|
255
|
+
name: "sst",
|
|
256
|
+
privateZone: true,
|
|
257
|
+
vpcId,
|
|
258
|
+
}, { parent: self }));
|
|
259
|
+
const namespaceId = zone.linkedServiceDescription.apply((description) => {
|
|
260
|
+
var _a;
|
|
261
|
+
const match = (_a = description.match(/:namespace\/(ns-[a-z1-9]*)/)) === null || _a === void 0 ? void 0 : _a[1];
|
|
262
|
+
if (!match) {
|
|
263
|
+
throw new VisibleError(`Cloud Map namespace not found for VPC ${vpcId}`);
|
|
264
|
+
}
|
|
265
|
+
return match;
|
|
266
|
+
});
|
|
267
|
+
const cloudmapNamespace = servicediscovery.PrivateDnsNamespace.get(`${name}CloudmapNamespace`, namespaceId, { vpc: vpcId }, { parent: self });
|
|
268
|
+
const privateKeyValue = bastionInstance.apply((v) => {
|
|
269
|
+
if (!v)
|
|
270
|
+
return;
|
|
271
|
+
const param = ssm.Parameter.get(`${name}PrivateKeyValue`, interpolate `/sst/vpc/${vpcId}/private-key-value`, undefined, { parent: self });
|
|
272
|
+
return param.value;
|
|
273
|
+
});
|
|
274
|
+
return {
|
|
275
|
+
vpc,
|
|
276
|
+
internetGateway,
|
|
277
|
+
securityGroup,
|
|
278
|
+
publicSubnets,
|
|
279
|
+
publicRouteTables,
|
|
280
|
+
privateSubnets,
|
|
281
|
+
privateRouteTables,
|
|
282
|
+
natGateways,
|
|
283
|
+
natInstances,
|
|
284
|
+
elasticIps,
|
|
285
|
+
bastionInstance,
|
|
286
|
+
cloudmapNamespace,
|
|
287
|
+
privateKeyValue,
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
function registerVersion(overrideVersion) {
|
|
291
|
+
self.registerVersion({
|
|
292
|
+
new: _version,
|
|
293
|
+
old: overrideVersion !== null && overrideVersion !== void 0 ? overrideVersion : $cli.state.version[name],
|
|
294
|
+
message: [
|
|
295
|
+
`There is a new version of "Vpc" that has breaking changes.`,
|
|
296
|
+
``,
|
|
297
|
+
`To continue using the previous version, rename "Vpc" to "Vpc.v${$cli.state.version[name]}". Or recreate this component to update - https://sst.dev/docs/components/#versioning`,
|
|
298
|
+
].join("\n"),
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
function registerOutputs() {
|
|
302
|
+
self.registerOutputs({
|
|
303
|
+
_tunnel: all([
|
|
304
|
+
self.bastionInstance,
|
|
305
|
+
self.privateKeyValue,
|
|
306
|
+
self._privateSubnets,
|
|
307
|
+
self._publicSubnets,
|
|
308
|
+
]).apply(([bastion, privateKeyValue, privateSubnets, publicSubnets]) => {
|
|
309
|
+
if (!bastion)
|
|
310
|
+
return;
|
|
311
|
+
return {
|
|
312
|
+
ip: bastion.publicIp,
|
|
313
|
+
username: "ec2-user",
|
|
314
|
+
privateKey: privateKeyValue,
|
|
315
|
+
subnets: [...privateSubnets, ...publicSubnets].map((s) => s.cidrBlock),
|
|
316
|
+
};
|
|
317
|
+
}),
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
function normalizeAz() {
|
|
321
|
+
return output(args.az).apply((az) => {
|
|
322
|
+
var _a;
|
|
323
|
+
if (Array.isArray(az))
|
|
324
|
+
return output(az);
|
|
325
|
+
const zones = getAvailabilityZonesOutput({
|
|
326
|
+
state: "available",
|
|
327
|
+
}, { parent: self });
|
|
328
|
+
return all([zones, (_a = args.az) !== null && _a !== void 0 ? _a : 2]).apply(([zones, az]) => Array(az)
|
|
329
|
+
.fill(0)
|
|
330
|
+
.map((_, i) => zones.names[i]));
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
function normalizeNat() {
|
|
334
|
+
return all([args.nat, zones]).apply(([nat, zones]) => {
|
|
335
|
+
var _a;
|
|
336
|
+
if (nat === "managed") {
|
|
337
|
+
return { type: "managed" };
|
|
338
|
+
}
|
|
339
|
+
if (nat === "ec2") {
|
|
340
|
+
return {
|
|
341
|
+
type: "ec2",
|
|
342
|
+
ec2: { instance: "t4g.nano", ami: undefined },
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
if (nat) {
|
|
346
|
+
if (nat.ec2 && nat.type === "managed")
|
|
347
|
+
throw new VisibleError(`"nat.type" cannot be "managed" when "nat.ec2" is specified`);
|
|
348
|
+
if (!nat.type)
|
|
349
|
+
throw new VisibleError(`Missing "nat.type" for the "${name}" VPC. It is required when "nat.ec2" is not specified`);
|
|
350
|
+
if (nat.ip && nat.ip.length !== zones.length)
|
|
351
|
+
throw new VisibleError(`The number of Elastic IP allocation IDs must match the number of AZs.`);
|
|
352
|
+
return nat.ec2 || nat.type === "ec2"
|
|
353
|
+
? {
|
|
354
|
+
type: "ec2",
|
|
355
|
+
ip: nat.ip,
|
|
356
|
+
ec2: (_a = nat.ec2) !== null && _a !== void 0 ? _a : { instance: "t4g.nano" },
|
|
357
|
+
}
|
|
358
|
+
: {
|
|
359
|
+
type: "managed",
|
|
360
|
+
ip: nat.ip,
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
return undefined;
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
function createVpc() {
|
|
367
|
+
var _a;
|
|
368
|
+
return new ec2.Vpc(...transform((_a = args.transform) === null || _a === void 0 ? void 0 : _a.vpc, `${name}Vpc`, {
|
|
369
|
+
cidrBlock: "10.0.0.0/16",
|
|
370
|
+
enableDnsSupport: true,
|
|
371
|
+
enableDnsHostnames: true,
|
|
372
|
+
tags: {
|
|
373
|
+
Name: `${$app.name}-${$app.stage}-${name} VPC`,
|
|
374
|
+
"sst:component-version": _version.toString(),
|
|
375
|
+
"sst:ref-version": _refVersion.toString(),
|
|
376
|
+
},
|
|
377
|
+
}, { parent: self }));
|
|
378
|
+
}
|
|
379
|
+
function createKeyPair() {
|
|
380
|
+
const ret = output(args.bastion).apply((bastion) => {
|
|
381
|
+
if (!bastion)
|
|
382
|
+
return {};
|
|
383
|
+
const tlsPrivateKey = new PrivateKey(`${name}TlsPrivateKey`, {
|
|
384
|
+
algorithm: "RSA",
|
|
385
|
+
rsaBits: 4096,
|
|
386
|
+
}, { parent: self });
|
|
387
|
+
new ssm.Parameter(`${name}PrivateKeyValue`, {
|
|
388
|
+
name: interpolate `/sst/vpc/${vpc.id}/private-key-value`,
|
|
389
|
+
description: "Bastion host private key",
|
|
390
|
+
type: ssm.ParameterType.SecureString,
|
|
391
|
+
value: tlsPrivateKey.privateKeyOpenssh,
|
|
392
|
+
}, { parent: self });
|
|
393
|
+
const keyPair = new ec2.KeyPair(`${name}KeyPair`, {
|
|
394
|
+
publicKey: tlsPrivateKey.publicKeyOpenssh,
|
|
395
|
+
}, { parent: self });
|
|
396
|
+
return { keyPair, privateKeyValue: tlsPrivateKey.privateKeyOpenssh };
|
|
397
|
+
});
|
|
398
|
+
return {
|
|
399
|
+
keyPair: output(ret.keyPair),
|
|
400
|
+
privateKeyValue: output(ret.privateKeyValue),
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
function createInternetGateway() {
|
|
404
|
+
var _a;
|
|
405
|
+
return new ec2.InternetGateway(...transform((_a = args.transform) === null || _a === void 0 ? void 0 : _a.internetGateway, `${name}InternetGateway`, {
|
|
406
|
+
vpcId: vpc.id,
|
|
407
|
+
}, { parent: self }));
|
|
408
|
+
}
|
|
409
|
+
function createSecurityGroup() {
|
|
410
|
+
var _a;
|
|
411
|
+
return new ec2.DefaultSecurityGroup(...transform((_a = args.transform) === null || _a === void 0 ? void 0 : _a.securityGroup, `${name}SecurityGroup`, {
|
|
412
|
+
description: "Managed by SST",
|
|
413
|
+
vpcId: vpc.id,
|
|
414
|
+
egress: [
|
|
415
|
+
{
|
|
416
|
+
fromPort: 0,
|
|
417
|
+
toPort: 0,
|
|
418
|
+
protocol: "-1",
|
|
419
|
+
cidrBlocks: ["0.0.0.0/0"],
|
|
420
|
+
},
|
|
421
|
+
],
|
|
422
|
+
ingress: [
|
|
423
|
+
{
|
|
424
|
+
fromPort: 0,
|
|
425
|
+
toPort: 0,
|
|
426
|
+
protocol: "-1",
|
|
427
|
+
// Restricts inbound traffic to only within the VPC
|
|
428
|
+
cidrBlocks: [vpc.cidrBlock],
|
|
429
|
+
},
|
|
430
|
+
],
|
|
431
|
+
}, { parent: self }));
|
|
432
|
+
}
|
|
433
|
+
function createElasticIps() {
|
|
434
|
+
return all([nat, publicSubnets]).apply(([nat, subnets]) => {
|
|
435
|
+
if (!nat)
|
|
436
|
+
return [];
|
|
437
|
+
if (nat === null || nat === void 0 ? void 0 : nat.ip)
|
|
438
|
+
return [];
|
|
439
|
+
return subnets.map((_, i) => {
|
|
440
|
+
var _a;
|
|
441
|
+
return new ec2.Eip(...transform((_a = args.transform) === null || _a === void 0 ? void 0 : _a.elasticIp, `${name}ElasticIp${i + 1}`, {
|
|
442
|
+
vpc: true,
|
|
443
|
+
}, { parent: self }));
|
|
444
|
+
});
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
function createNatGateways() {
|
|
448
|
+
return all([nat, publicSubnets, elasticIps]).apply(([nat, subnets, elasticIps]) => {
|
|
449
|
+
if ((nat === null || nat === void 0 ? void 0 : nat.type) !== "managed")
|
|
450
|
+
return [];
|
|
451
|
+
return subnets.map((subnet, i) => {
|
|
452
|
+
var _a, _b, _c;
|
|
453
|
+
return new ec2.NatGateway(...transform((_a = args.transform) === null || _a === void 0 ? void 0 : _a.natGateway, `${name}NatGateway${i + 1}`, {
|
|
454
|
+
subnetId: subnet.id,
|
|
455
|
+
allocationId: (_c = (_b = elasticIps[i]) === null || _b === void 0 ? void 0 : _b.id) !== null && _c !== void 0 ? _c : nat.ip[i],
|
|
456
|
+
}, { parent: self }));
|
|
457
|
+
});
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
function createNatInstances() {
|
|
461
|
+
return nat.apply((nat) => {
|
|
462
|
+
var _a, _b;
|
|
463
|
+
if ((nat === null || nat === void 0 ? void 0 : nat.type) !== "ec2")
|
|
464
|
+
return output([]);
|
|
465
|
+
const sg = new ec2.SecurityGroup(...transform((_a = args.transform) === null || _a === void 0 ? void 0 : _a.natSecurityGroup, `${name}NatInstanceSecurityGroup`, {
|
|
466
|
+
vpcId: vpc.id,
|
|
467
|
+
ingress: [
|
|
468
|
+
{
|
|
469
|
+
protocol: "-1",
|
|
470
|
+
fromPort: 0,
|
|
471
|
+
toPort: 0,
|
|
472
|
+
cidrBlocks: ["0.0.0.0/0"],
|
|
473
|
+
},
|
|
474
|
+
],
|
|
475
|
+
egress: [
|
|
476
|
+
{
|
|
477
|
+
protocol: "-1",
|
|
478
|
+
fromPort: 0,
|
|
479
|
+
toPort: 0,
|
|
480
|
+
cidrBlocks: ["0.0.0.0/0"],
|
|
481
|
+
},
|
|
482
|
+
],
|
|
483
|
+
}, { parent: self }));
|
|
484
|
+
const role = new iam.Role(`${name}NatInstanceRole`, {
|
|
485
|
+
assumeRolePolicy: iam.getPolicyDocumentOutput({
|
|
486
|
+
statements: [
|
|
487
|
+
{
|
|
488
|
+
actions: ["sts:AssumeRole"],
|
|
489
|
+
principals: [
|
|
490
|
+
{
|
|
491
|
+
type: "Service",
|
|
492
|
+
identifiers: ["ec2.amazonaws.com"],
|
|
493
|
+
},
|
|
494
|
+
],
|
|
495
|
+
},
|
|
496
|
+
],
|
|
497
|
+
}).json,
|
|
498
|
+
managedPolicyArns: [
|
|
499
|
+
interpolate `arn:${partition}:iam::aws:policy/AmazonSSMManagedInstanceCore`,
|
|
500
|
+
],
|
|
501
|
+
}, { parent: self });
|
|
502
|
+
const instanceProfile = new iam.InstanceProfile(`${name}NatInstanceProfile`, { role: role.name }, { parent: self });
|
|
503
|
+
const ami = (_b = nat.ec2.ami) !== null && _b !== void 0 ? _b : ec2.getAmiOutput({
|
|
504
|
+
owners: ["568608671756"], // AWS account ID for fck-nat AMI
|
|
505
|
+
filters: [
|
|
506
|
+
{
|
|
507
|
+
name: "name",
|
|
508
|
+
// The AMI has the SSM agent pre-installed
|
|
509
|
+
values: ["fck-nat-al2023-*"],
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
name: "architecture",
|
|
513
|
+
values: ["arm64"],
|
|
514
|
+
},
|
|
515
|
+
],
|
|
516
|
+
mostRecent: true,
|
|
517
|
+
}, { parent: self }).id;
|
|
518
|
+
return all([
|
|
519
|
+
zones,
|
|
520
|
+
publicSubnets,
|
|
521
|
+
elasticIps,
|
|
522
|
+
keyPair,
|
|
523
|
+
args.bastion,
|
|
524
|
+
]).apply(([zones, publicSubnets, elasticIps, keyPair, bastion]) => zones.map((_, i) => {
|
|
525
|
+
var _a, _b, _c;
|
|
526
|
+
const instance = new ec2.Instance(...transform((_a = args.transform) === null || _a === void 0 ? void 0 : _a.natInstance, `${name}NatInstance${i + 1}`, {
|
|
527
|
+
instanceType: nat.ec2.instance,
|
|
528
|
+
ami,
|
|
529
|
+
subnetId: publicSubnets[i].id,
|
|
530
|
+
vpcSecurityGroupIds: [sg.id],
|
|
531
|
+
iamInstanceProfile: instanceProfile.name,
|
|
532
|
+
sourceDestCheck: false,
|
|
533
|
+
keyName: keyPair === null || keyPair === void 0 ? void 0 : keyPair.keyName,
|
|
534
|
+
tags: Object.assign({ Name: `${name} NAT Instance`, "sst:is-nat": "true" }, (bastion && i === 0 ? { "sst:is-bastion": "true" } : {})),
|
|
535
|
+
}, { parent: self }));
|
|
536
|
+
new ec2.EipAssociation(`${name}NatInstanceEipAssociation${i + 1}`, {
|
|
537
|
+
instanceId: instance.id,
|
|
538
|
+
allocationId: (_c = (_b = elasticIps[i]) === null || _b === void 0 ? void 0 : _b.id) !== null && _c !== void 0 ? _c : nat.ip[i],
|
|
539
|
+
});
|
|
540
|
+
return instance;
|
|
541
|
+
}));
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
function createPublicSubnets() {
|
|
545
|
+
const ret = zones.apply((zones) => zones.map((zone, i) => {
|
|
546
|
+
var _a, _b;
|
|
547
|
+
const subnet = new ec2.Subnet(...transform((_a = args.transform) === null || _a === void 0 ? void 0 : _a.publicSubnet, `${name}PublicSubnet${i + 1}`, {
|
|
548
|
+
vpcId: vpc.id,
|
|
549
|
+
cidrBlock: `10.0.${8 * i}.0/22`,
|
|
550
|
+
availabilityZone: zone,
|
|
551
|
+
mapPublicIpOnLaunch: true,
|
|
552
|
+
}, { parent: self }));
|
|
553
|
+
const routeTable = new ec2.RouteTable(...transform((_b = args.transform) === null || _b === void 0 ? void 0 : _b.publicRouteTable, `${name}PublicRouteTable${i + 1}`, {
|
|
554
|
+
vpcId: vpc.id,
|
|
555
|
+
routes: [
|
|
556
|
+
{
|
|
557
|
+
cidrBlock: "0.0.0.0/0",
|
|
558
|
+
gatewayId: internetGateway.id,
|
|
559
|
+
},
|
|
560
|
+
],
|
|
561
|
+
}, { parent: self }));
|
|
562
|
+
new ec2.RouteTableAssociation(`${name}PublicRouteTableAssociation${i + 1}`, {
|
|
563
|
+
subnetId: subnet.id,
|
|
564
|
+
routeTableId: routeTable.id,
|
|
565
|
+
}, { parent: self });
|
|
566
|
+
return { subnet, routeTable };
|
|
567
|
+
}));
|
|
568
|
+
return {
|
|
569
|
+
publicSubnets: ret.apply((ret) => ret.map((r) => r.subnet)),
|
|
570
|
+
publicRouteTables: ret.apply((ret) => ret.map((r) => r.routeTable)),
|
|
571
|
+
};
|
|
572
|
+
}
|
|
573
|
+
function createPrivateSubnets() {
|
|
574
|
+
const ret = zones.apply((zones) => zones.map((zone, i) => {
|
|
575
|
+
var _a, _b;
|
|
576
|
+
const subnet = new ec2.Subnet(...transform((_a = args.transform) === null || _a === void 0 ? void 0 : _a.privateSubnet, `${name}PrivateSubnet${i + 1}`, {
|
|
577
|
+
vpcId: vpc.id,
|
|
578
|
+
cidrBlock: `10.0.${8 * i + 4}.0/22`,
|
|
579
|
+
availabilityZone: zone,
|
|
580
|
+
}, { parent: self }));
|
|
581
|
+
const routeTable = new ec2.RouteTable(...transform((_b = args.transform) === null || _b === void 0 ? void 0 : _b.privateRouteTable, `${name}PrivateRouteTable${i + 1}`, {
|
|
582
|
+
vpcId: vpc.id,
|
|
583
|
+
routes: all([natGateways, natInstances]).apply(([natGateways, natInstances]) => [
|
|
584
|
+
...(natGateways[i]
|
|
585
|
+
? [
|
|
586
|
+
{
|
|
587
|
+
cidrBlock: "0.0.0.0/0",
|
|
588
|
+
natGatewayId: natGateways[i].id,
|
|
589
|
+
},
|
|
590
|
+
]
|
|
591
|
+
: []),
|
|
592
|
+
...(natInstances[i]
|
|
593
|
+
? [
|
|
594
|
+
{
|
|
595
|
+
cidrBlock: "0.0.0.0/0",
|
|
596
|
+
networkInterfaceId: natInstances[i].primaryNetworkInterfaceId,
|
|
597
|
+
},
|
|
598
|
+
]
|
|
599
|
+
: []),
|
|
600
|
+
]),
|
|
601
|
+
}, { parent: self }));
|
|
602
|
+
new ec2.RouteTableAssociation(`${name}PrivateRouteTableAssociation${i + 1}`, {
|
|
603
|
+
subnetId: subnet.id,
|
|
604
|
+
routeTableId: routeTable.id,
|
|
605
|
+
}, { parent: self });
|
|
606
|
+
return { subnet, routeTable };
|
|
607
|
+
}));
|
|
608
|
+
return {
|
|
609
|
+
privateSubnets: ret.apply((ret) => ret.map((r) => r.subnet)),
|
|
610
|
+
privateRouteTables: ret.apply((ret) => ret.map((r) => r.routeTable)),
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
function createBastion() {
|
|
614
|
+
return all([args.bastion, natInstances, keyPair]).apply(([bastion, natInstances, keyPair]) => {
|
|
615
|
+
var _a, _b;
|
|
616
|
+
if (!bastion)
|
|
617
|
+
return undefined;
|
|
618
|
+
if (natInstances.length)
|
|
619
|
+
return natInstances[0];
|
|
620
|
+
const sg = new ec2.SecurityGroup(...transform((_a = args.transform) === null || _a === void 0 ? void 0 : _a.bastionSecurityGroup, `${name}BastionSecurityGroup`, {
|
|
621
|
+
vpcId: vpc.id,
|
|
622
|
+
ingress: [
|
|
623
|
+
{
|
|
624
|
+
protocol: "tcp",
|
|
625
|
+
fromPort: 22,
|
|
626
|
+
toPort: 22,
|
|
627
|
+
cidrBlocks: ["0.0.0.0/0"],
|
|
628
|
+
},
|
|
629
|
+
],
|
|
630
|
+
egress: [
|
|
631
|
+
{
|
|
632
|
+
protocol: "-1",
|
|
633
|
+
fromPort: 0,
|
|
634
|
+
toPort: 0,
|
|
635
|
+
cidrBlocks: ["0.0.0.0/0"],
|
|
636
|
+
},
|
|
637
|
+
],
|
|
638
|
+
}, { parent: self }));
|
|
639
|
+
const role = new iam.Role(`${name}BastionRole`, {
|
|
640
|
+
assumeRolePolicy: iam.getPolicyDocumentOutput({
|
|
641
|
+
statements: [
|
|
642
|
+
{
|
|
643
|
+
actions: ["sts:AssumeRole"],
|
|
644
|
+
principals: [
|
|
645
|
+
{
|
|
646
|
+
type: "Service",
|
|
647
|
+
identifiers: ["ec2.amazonaws.com"],
|
|
648
|
+
},
|
|
649
|
+
],
|
|
650
|
+
},
|
|
651
|
+
],
|
|
652
|
+
}).json,
|
|
653
|
+
managedPolicyArns: [
|
|
654
|
+
interpolate `arn:${partition}:iam::aws:policy/AmazonSSMManagedInstanceCore`,
|
|
655
|
+
],
|
|
656
|
+
}, { parent: self });
|
|
657
|
+
const instanceProfile = new iam.InstanceProfile(`${name}BastionProfile`, { role: role.name }, { parent: self });
|
|
658
|
+
const ami = ec2.getAmiOutput({
|
|
659
|
+
owners: ["amazon"],
|
|
660
|
+
filters: [
|
|
661
|
+
{
|
|
662
|
+
name: "name",
|
|
663
|
+
// The AMI has the SSM agent pre-installed
|
|
664
|
+
values: ["al2023-ami-20*"],
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
name: "architecture",
|
|
668
|
+
values: ["arm64"],
|
|
669
|
+
},
|
|
670
|
+
],
|
|
671
|
+
mostRecent: true,
|
|
672
|
+
}, { parent: self });
|
|
673
|
+
return new ec2.Instance(...transform((_b = args.transform) === null || _b === void 0 ? void 0 : _b.bastionInstance, `${name}BastionInstance`, {
|
|
674
|
+
instanceType: "t4g.nano",
|
|
675
|
+
ami: ami.id,
|
|
676
|
+
subnetId: publicSubnets.apply((v) => v[0].id),
|
|
677
|
+
vpcSecurityGroupIds: [sg.id],
|
|
678
|
+
iamInstanceProfile: instanceProfile.name,
|
|
679
|
+
keyName: keyPair === null || keyPair === void 0 ? void 0 : keyPair.keyName,
|
|
680
|
+
tags: {
|
|
681
|
+
"sst:is-bastion": "true",
|
|
682
|
+
},
|
|
683
|
+
}, { parent: self }));
|
|
684
|
+
});
|
|
685
|
+
}
|
|
686
|
+
function createCloudmapNamespace() {
|
|
687
|
+
return new servicediscovery.PrivateDnsNamespace(`${name}CloudmapNamespace`, {
|
|
688
|
+
name: "sst",
|
|
689
|
+
vpc: vpc.id,
|
|
690
|
+
}, { parent: self });
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* The VPC ID.
|
|
695
|
+
*/
|
|
696
|
+
get id() {
|
|
697
|
+
return this.vpc.id;
|
|
698
|
+
}
|
|
699
|
+
/**
|
|
700
|
+
* A list of public subnet IDs in the VPC.
|
|
701
|
+
*/
|
|
702
|
+
get publicSubnets() {
|
|
703
|
+
return this._publicSubnets.apply((subnets) => subnets.map((subnet) => subnet.id));
|
|
704
|
+
}
|
|
705
|
+
/**
|
|
706
|
+
* A list of private subnet IDs in the VPC.
|
|
707
|
+
*/
|
|
708
|
+
get privateSubnets() {
|
|
709
|
+
return this._privateSubnets.apply((subnets) => subnets.map((subnet) => subnet.id));
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* A list of VPC security group IDs.
|
|
713
|
+
*/
|
|
714
|
+
get securityGroups() {
|
|
715
|
+
return output(this.securityGroup).apply((v) => [v.id]);
|
|
716
|
+
}
|
|
717
|
+
/**
|
|
718
|
+
* The bastion instance ID.
|
|
719
|
+
*/
|
|
720
|
+
get bastion() {
|
|
721
|
+
return this.bastionInstance.apply((v) => {
|
|
722
|
+
if (!v) {
|
|
723
|
+
throw new VisibleError(`VPC bastion is not enabled. Enable it with "bastion: true".`);
|
|
724
|
+
}
|
|
725
|
+
return v.id;
|
|
726
|
+
});
|
|
727
|
+
}
|
|
728
|
+
/**
|
|
729
|
+
* The underlying [resources](/docs/components/#nodes) this component creates.
|
|
730
|
+
*/
|
|
731
|
+
get nodes() {
|
|
732
|
+
return {
|
|
733
|
+
/**
|
|
734
|
+
* The Amazon EC2 VPC.
|
|
735
|
+
*/
|
|
736
|
+
vpc: this.vpc,
|
|
737
|
+
/**
|
|
738
|
+
* The Amazon EC2 Internet Gateway.
|
|
739
|
+
*/
|
|
740
|
+
internetGateway: this.internetGateway,
|
|
741
|
+
/**
|
|
742
|
+
* The Amazon EC2 Security Group.
|
|
743
|
+
*/
|
|
744
|
+
securityGroup: this.securityGroup,
|
|
745
|
+
/**
|
|
746
|
+
* The Amazon EC2 NAT Gateway.
|
|
747
|
+
*/
|
|
748
|
+
natGateways: this.natGateways,
|
|
749
|
+
/**
|
|
750
|
+
* The Amazon EC2 NAT instances.
|
|
751
|
+
*/
|
|
752
|
+
natInstances: this.natInstances,
|
|
753
|
+
/**
|
|
754
|
+
* The Amazon EC2 Elastic IP.
|
|
755
|
+
*/
|
|
756
|
+
elasticIps: this.elasticIps,
|
|
757
|
+
/**
|
|
758
|
+
* The Amazon EC2 public subnet.
|
|
759
|
+
*/
|
|
760
|
+
publicSubnets: this._publicSubnets,
|
|
761
|
+
/**
|
|
762
|
+
* The Amazon EC2 private subnet.
|
|
763
|
+
*/
|
|
764
|
+
privateSubnets: this._privateSubnets,
|
|
765
|
+
/**
|
|
766
|
+
* The Amazon EC2 route table for the public subnet.
|
|
767
|
+
*/
|
|
768
|
+
publicRouteTables: this.publicRouteTables,
|
|
769
|
+
/**
|
|
770
|
+
* The Amazon EC2 route table for the private subnet.
|
|
771
|
+
*/
|
|
772
|
+
privateRouteTables: this.privateRouteTables,
|
|
773
|
+
/**
|
|
774
|
+
* The Amazon EC2 bastion instance.
|
|
775
|
+
*/
|
|
776
|
+
bastionInstance: this.bastionInstance,
|
|
777
|
+
/**
|
|
778
|
+
* The AWS Cloudmap namespace.
|
|
779
|
+
*/
|
|
780
|
+
cloudmapNamespace: this.cloudmapNamespace,
|
|
781
|
+
};
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* Reference an existing VPC with the given ID. This is useful when you
|
|
785
|
+
* create a VPC in one stage and want to share it in another stage. It avoids having to
|
|
786
|
+
* create a new VPC in the other stage.
|
|
787
|
+
*
|
|
788
|
+
* :::tip
|
|
789
|
+
* You can use the `static get` method to share VPCs across stages.
|
|
790
|
+
* :::
|
|
791
|
+
*
|
|
792
|
+
* @param name The name of the component.
|
|
793
|
+
* @param vpcId The ID of the existing VPC.
|
|
794
|
+
* @param opts? Resource options.
|
|
795
|
+
*
|
|
796
|
+
* @example
|
|
797
|
+
* Imagine you create a VPC in the `dev` stage. And in your personal stage `frank`,
|
|
798
|
+
* instead of creating a new VPC, you want to share the VPC from `dev`.
|
|
799
|
+
*
|
|
800
|
+
* ```ts title="sst.config.ts"
|
|
801
|
+
* const vpc = $app.stage === "frank"
|
|
802
|
+
* ? sst.aws.Vpc.get("MyVPC", "vpc-0be8fa4de860618bb")
|
|
803
|
+
* : new sst.aws.Vpc("MyVPC");
|
|
804
|
+
* ```
|
|
805
|
+
*
|
|
806
|
+
* Here `vpc-0be8fa4de860618bb` is the ID of the VPC created in the `dev` stage.
|
|
807
|
+
* You can find this by outputting the VPC ID in the `dev` stage.
|
|
808
|
+
*
|
|
809
|
+
* ```ts title="sst.config.ts"
|
|
810
|
+
* return {
|
|
811
|
+
* vpc: vpc.id
|
|
812
|
+
* };
|
|
813
|
+
* ```
|
|
814
|
+
*/
|
|
815
|
+
static get(name, vpcId, opts) {
|
|
816
|
+
return new Vpc(name, {
|
|
817
|
+
ref: true,
|
|
818
|
+
vpcId,
|
|
819
|
+
}, opts);
|
|
820
|
+
}
|
|
821
|
+
/** @internal */
|
|
822
|
+
getSSTLink() {
|
|
823
|
+
return {
|
|
824
|
+
properties: {
|
|
825
|
+
bastion: this.bastionInstance.apply((v) => v === null || v === void 0 ? void 0 : v.id),
|
|
826
|
+
},
|
|
827
|
+
};
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
Vpc.v1 = VpcV1;
|
|
831
|
+
const __pulumiType = "sst:aws:Vpc";
|
|
832
|
+
// @ts-expect-error
|
|
833
|
+
Vpc.__pulumiType = __pulumiType;
|
|
834
|
+
//# sourceMappingURL=vpc.js.map
|