@monorise/sst 1.0.0-dev.2 → 3.1.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.
Files changed (462) hide show
  1. package/dist/.sst/platform/src/components/aws/apigatewayv2.d.ts +1 -3
  2. package/dist/.sst/platform/src/components/aws/apigatewayv2.d.ts.map +1 -1
  3. package/dist/.sst/platform/src/components/aws/aurora.d.ts +4 -4
  4. package/dist/.sst/platform/src/components/aws/aurora.d.ts.map +1 -1
  5. package/dist/.sst/platform/src/components/aws/auth.d.ts +38 -3
  6. package/dist/.sst/platform/src/components/aws/auth.d.ts.map +1 -1
  7. package/dist/.sst/platform/src/components/aws/bucket.d.ts +102 -1
  8. package/dist/.sst/platform/src/components/aws/bucket.d.ts.map +1 -1
  9. package/dist/.sst/platform/src/components/aws/cluster.d.ts +1 -3
  10. package/dist/.sst/platform/src/components/aws/cluster.d.ts.map +1 -1
  11. package/dist/.sst/platform/src/components/aws/cognito-user-pool-client.d.ts.map +1 -1
  12. package/dist/.sst/platform/src/components/aws/cognito-user-pool.d.ts +4 -0
  13. package/dist/.sst/platform/src/components/aws/cognito-user-pool.d.ts.map +1 -1
  14. package/dist/.sst/platform/src/components/aws/dynamo.d.ts +0 -1
  15. package/dist/.sst/platform/src/components/aws/dynamo.d.ts.map +1 -1
  16. package/dist/.sst/platform/src/components/aws/email.d.ts +1 -1
  17. package/dist/.sst/platform/src/components/aws/fargate.d.ts +34 -0
  18. package/dist/.sst/platform/src/components/aws/fargate.d.ts.map +1 -1
  19. package/dist/.sst/platform/src/components/aws/function.d.ts +1 -3
  20. package/dist/.sst/platform/src/components/aws/function.d.ts.map +1 -1
  21. package/dist/.sst/platform/src/components/aws/helpers/arn.d.ts +5 -0
  22. package/dist/.sst/platform/src/components/aws/helpers/arn.d.ts.map +1 -1
  23. package/dist/.sst/platform/src/components/aws/open-search.d.ts +4 -4
  24. package/dist/.sst/platform/src/components/aws/open-search.d.ts.map +1 -1
  25. package/dist/.sst/platform/src/components/aws/opencontrol.d.ts.map +1 -1
  26. package/dist/.sst/platform/src/components/aws/permission.d.ts +13 -0
  27. package/dist/.sst/platform/src/components/aws/permission.d.ts.map +1 -1
  28. package/dist/.sst/platform/src/components/aws/postgres.d.ts +3 -3
  29. package/dist/.sst/platform/src/components/aws/postgres.d.ts.map +1 -1
  30. package/dist/.sst/platform/src/components/aws/realtime.d.ts +6 -0
  31. package/dist/.sst/platform/src/components/aws/realtime.d.ts.map +1 -1
  32. package/dist/.sst/platform/src/components/aws/redis.d.ts.map +1 -1
  33. package/dist/.sst/platform/src/components/aws/remix.d.ts.map +1 -1
  34. package/dist/.sst/platform/src/components/aws/router.d.ts +20 -14
  35. package/dist/.sst/platform/src/components/aws/router.d.ts.map +1 -1
  36. package/dist/.sst/platform/src/components/aws/service.d.ts +26 -0
  37. package/dist/.sst/platform/src/components/aws/service.d.ts.map +1 -1
  38. package/dist/.sst/platform/src/components/aws/solid-start.d.ts.map +1 -1
  39. package/dist/.sst/platform/src/components/aws/ssr-site.d.ts +197 -6
  40. package/dist/.sst/platform/src/components/aws/ssr-site.d.ts.map +1 -1
  41. package/dist/.sst/platform/src/components/aws/static-site.d.ts +5 -5
  42. package/dist/.sst/platform/src/components/aws/static-site.d.ts.map +1 -1
  43. package/dist/.sst/platform/src/components/aws/step-functions/state.d.ts +34 -0
  44. package/dist/.sst/platform/src/components/aws/step-functions/state.d.ts.map +1 -1
  45. package/dist/.sst/platform/src/components/aws/step-functions.d.ts.map +1 -1
  46. package/dist/.sst/platform/src/components/aws/svelte-kit.d.ts.map +1 -1
  47. package/dist/.sst/platform/src/components/aws/tan-stack-start.d.ts +1 -1
  48. package/dist/.sst/platform/src/components/aws/task.d.ts.map +1 -1
  49. package/dist/.sst/platform/src/components/aws/vpc.d.ts.map +1 -1
  50. package/dist/.sst/platform/src/components/base/base-ssr-site.d.ts +1 -99
  51. package/dist/.sst/platform/src/components/base/base-ssr-site.d.ts.map +1 -1
  52. package/dist/.sst/platform/src/components/base/base-static-site.d.ts.map +1 -1
  53. package/dist/.sst/platform/src/components/cloudflare/binding.d.ts +1 -1
  54. package/dist/.sst/platform/src/components/cloudflare/binding.d.ts.map +1 -1
  55. package/dist/.sst/platform/src/components/cloudflare/bucket.d.ts +4 -2
  56. package/dist/.sst/platform/src/components/cloudflare/bucket.d.ts.map +1 -1
  57. package/dist/.sst/platform/src/components/cloudflare/cron.d.ts.map +1 -1
  58. package/dist/.sst/platform/src/components/cloudflare/d1.d.ts +1 -1
  59. package/dist/.sst/platform/src/components/cloudflare/experimental/astro.d.ts +186 -0
  60. package/dist/.sst/platform/src/components/cloudflare/experimental/astro.d.ts.map +1 -0
  61. package/dist/.sst/platform/src/components/cloudflare/experimental/index.d.ts +4 -0
  62. package/dist/.sst/platform/src/components/cloudflare/experimental/index.d.ts.map +1 -0
  63. package/dist/.sst/platform/src/components/cloudflare/experimental/solid-start.d.ts +171 -0
  64. package/dist/.sst/platform/src/components/cloudflare/experimental/solid-start.d.ts.map +1 -0
  65. package/dist/.sst/platform/src/components/cloudflare/experimental/static-site.d.ts +222 -0
  66. package/dist/.sst/platform/src/components/cloudflare/experimental/static-site.d.ts.map +1 -0
  67. package/dist/.sst/platform/src/components/cloudflare/helpers/fetch.d.ts.map +1 -1
  68. package/dist/.sst/platform/src/components/cloudflare/helpers/worker-builder.d.ts +1 -1
  69. package/dist/.sst/platform/src/components/cloudflare/helpers/worker-builder.d.ts.map +1 -1
  70. package/dist/.sst/platform/src/components/cloudflare/index.d.ts +4 -1
  71. package/dist/.sst/platform/src/components/cloudflare/index.d.ts.map +1 -1
  72. package/dist/.sst/platform/src/components/cloudflare/kv.d.ts +8 -2
  73. package/dist/.sst/platform/src/components/cloudflare/kv.d.ts.map +1 -1
  74. package/dist/.sst/platform/src/components/cloudflare/providers/kv-data.d.ts.map +1 -1
  75. package/dist/.sst/platform/src/components/cloudflare/providers/worker-assets.d.ts +18 -0
  76. package/dist/.sst/platform/src/components/cloudflare/providers/worker-assets.d.ts.map +1 -0
  77. package/dist/.sst/platform/src/components/cloudflare/queue.d.ts +1 -1
  78. package/dist/.sst/platform/src/components/cloudflare/ssr-site.d.ts +34 -42
  79. package/dist/.sst/platform/src/components/cloudflare/ssr-site.d.ts.map +1 -1
  80. package/dist/.sst/platform/src/components/cloudflare/worker.d.ts +28 -6
  81. package/dist/.sst/platform/src/components/cloudflare/worker.d.ts.map +1 -1
  82. package/dist/.sst/platform/src/components/component.d.ts.map +1 -1
  83. package/dist/.sst/platform/src/components/duration.d.ts +2 -1
  84. package/dist/.sst/platform/src/components/duration.d.ts.map +1 -1
  85. package/dist/.sst/platform/src/components/rpc/rpc.d.ts +1 -0
  86. package/dist/.sst/platform/src/components/rpc/rpc.d.ts.map +1 -1
  87. package/dist/.sst/platform/src/components/secret.d.ts +1 -1
  88. package/dist/.sst/platform/src/config.d.ts +15 -0
  89. package/dist/.sst/platform/src/config.d.ts.map +1 -1
  90. package/dist/.sst/platform/src/util/fs.d.ts +5 -0
  91. package/dist/.sst/platform/src/util/fs.d.ts.map +1 -0
  92. package/dist/components/dashboard.d.ts +2 -0
  93. package/dist/components/dashboard.d.ts.map +1 -0
  94. package/dist/components/monorise-core.d.ts.map +1 -1
  95. package/dist/components/q-function.d.ts +1 -1
  96. package/dist/components/q-function.d.ts.map +1 -1
  97. package/dist/components/single-table.d.ts +2 -1
  98. package/dist/components/single-table.d.ts.map +1 -1
  99. package/dist/index.js +605 -7
  100. package/dist/index.js.map +1 -1
  101. package/dist/tsup.config.d.ts +3 -0
  102. package/dist/tsup.config.d.ts.map +1 -0
  103. package/package.json +3 -3
  104. package/dist/.sst/platform/src/components/aws/analog.js +0 -118
  105. package/dist/.sst/platform/src/components/aws/analog.js.map +0 -1
  106. package/dist/.sst/platform/src/components/aws/apigateway-websocket-route.js +0 -110
  107. package/dist/.sst/platform/src/components/aws/apigateway-websocket-route.js.map +0 -1
  108. package/dist/.sst/platform/src/components/aws/apigateway-websocket.js +0 -409
  109. package/dist/.sst/platform/src/components/aws/apigateway-websocket.js.map +0 -1
  110. package/dist/.sst/platform/src/components/aws/apigatewayv1-api-key.js +0 -55
  111. package/dist/.sst/platform/src/components/aws/apigatewayv1-api-key.js.map +0 -1
  112. package/dist/.sst/platform/src/components/aws/apigatewayv1-authorizer.js +0 -110
  113. package/dist/.sst/platform/src/components/aws/apigatewayv1-authorizer.js.map +0 -1
  114. package/dist/.sst/platform/src/components/aws/apigatewayv1-base-route.js +0 -34
  115. package/dist/.sst/platform/src/components/aws/apigatewayv1-base-route.js.map +0 -1
  116. package/dist/.sst/platform/src/components/aws/apigatewayv1-integration-route.js +0 -49
  117. package/dist/.sst/platform/src/components/aws/apigatewayv1-integration-route.js.map +0 -1
  118. package/dist/.sst/platform/src/components/aws/apigatewayv1-lambda-route.js +0 -85
  119. package/dist/.sst/platform/src/components/aws/apigatewayv1-lambda-route.js.map +0 -1
  120. package/dist/.sst/platform/src/components/aws/apigatewayv1-usage-plan.js +0 -66
  121. package/dist/.sst/platform/src/components/aws/apigatewayv1-usage-plan.js.map +0 -1
  122. package/dist/.sst/platform/src/components/aws/apigatewayv1.js +0 -749
  123. package/dist/.sst/platform/src/components/aws/apigatewayv1.js.map +0 -1
  124. package/dist/.sst/platform/src/components/aws/apigatewayv2-authorizer.js +0 -98
  125. package/dist/.sst/platform/src/components/aws/apigatewayv2-authorizer.js.map +0 -1
  126. package/dist/.sst/platform/src/components/aws/apigatewayv2-base-route.js +0 -28
  127. package/dist/.sst/platform/src/components/aws/apigatewayv2-base-route.js.map +0 -1
  128. package/dist/.sst/platform/src/components/aws/apigatewayv2-lambda-route.js +0 -84
  129. package/dist/.sst/platform/src/components/aws/apigatewayv2-lambda-route.js.map +0 -1
  130. package/dist/.sst/platform/src/components/aws/apigatewayv2-private-route.js +0 -55
  131. package/dist/.sst/platform/src/components/aws/apigatewayv2-private-route.js.map +0 -1
  132. package/dist/.sst/platform/src/components/aws/apigatewayv2-url-route.js +0 -53
  133. package/dist/.sst/platform/src/components/aws/apigatewayv2-url-route.js.map +0 -1
  134. package/dist/.sst/platform/src/components/aws/apigatewayv2.js +0 -648
  135. package/dist/.sst/platform/src/components/aws/apigatewayv2.js.map +0 -1
  136. package/dist/.sst/platform/src/components/aws/app-sync-data-source.js +0 -208
  137. package/dist/.sst/platform/src/components/aws/app-sync-data-source.js.map +0 -1
  138. package/dist/.sst/platform/src/components/aws/app-sync-function.js +0 -52
  139. package/dist/.sst/platform/src/components/aws/app-sync-function.js.map +0 -1
  140. package/dist/.sst/platform/src/components/aws/app-sync-resolver.js +0 -70
  141. package/dist/.sst/platform/src/components/aws/app-sync-resolver.js.map +0 -1
  142. package/dist/.sst/platform/src/components/aws/app-sync.js +0 -330
  143. package/dist/.sst/platform/src/components/aws/app-sync.js.map +0 -1
  144. package/dist/.sst/platform/src/components/aws/astro.js +0 -156
  145. package/dist/.sst/platform/src/components/aws/astro.js.map +0 -1
  146. package/dist/.sst/platform/src/components/aws/aurora.js +0 -678
  147. package/dist/.sst/platform/src/components/aws/aurora.js.map +0 -1
  148. package/dist/.sst/platform/src/components/aws/auth-v1.js +0 -36
  149. package/dist/.sst/platform/src/components/aws/auth-v1.js.map +0 -1
  150. package/dist/.sst/platform/src/components/aws/auth.js +0 -209
  151. package/dist/.sst/platform/src/components/aws/auth.js.map +0 -1
  152. package/dist/.sst/platform/src/components/aws/bucket-lambda-subscriber.js +0 -99
  153. package/dist/.sst/platform/src/components/aws/bucket-lambda-subscriber.js.map +0 -1
  154. package/dist/.sst/platform/src/components/aws/bucket-notification.js +0 -170
  155. package/dist/.sst/platform/src/components/aws/bucket-notification.js.map +0 -1
  156. package/dist/.sst/platform/src/components/aws/bucket-queue-subscriber.js +0 -77
  157. package/dist/.sst/platform/src/components/aws/bucket-queue-subscriber.js.map +0 -1
  158. package/dist/.sst/platform/src/components/aws/bucket-topic-subscriber.js +0 -99
  159. package/dist/.sst/platform/src/components/aws/bucket-topic-subscriber.js.map +0 -1
  160. package/dist/.sst/platform/src/components/aws/bucket.js +0 -754
  161. package/dist/.sst/platform/src/components/aws/bucket.js.map +0 -1
  162. package/dist/.sst/platform/src/components/aws/bus-base-subscriber.js +0 -19
  163. package/dist/.sst/platform/src/components/aws/bus-base-subscriber.js.map +0 -1
  164. package/dist/.sst/platform/src/components/aws/bus-lambda-subscriber.js +0 -81
  165. package/dist/.sst/platform/src/components/aws/bus-lambda-subscriber.js.map +0 -1
  166. package/dist/.sst/platform/src/components/aws/bus-queue-subscriber.js +0 -63
  167. package/dist/.sst/platform/src/components/aws/bus-queue-subscriber.js.map +0 -1
  168. package/dist/.sst/platform/src/components/aws/bus.js +0 -350
  169. package/dist/.sst/platform/src/components/aws/bus.js.map +0 -1
  170. package/dist/.sst/platform/src/components/aws/cdn.js +0 -234
  171. package/dist/.sst/platform/src/components/aws/cdn.js.map +0 -1
  172. package/dist/.sst/platform/src/components/aws/cluster-v1.js +0 -245
  173. package/dist/.sst/platform/src/components/aws/cluster-v1.js.map +0 -1
  174. package/dist/.sst/platform/src/components/aws/cluster.js +0 -321
  175. package/dist/.sst/platform/src/components/aws/cluster.js.map +0 -1
  176. package/dist/.sst/platform/src/components/aws/cognito-identity-pool.js +0 -263
  177. package/dist/.sst/platform/src/components/aws/cognito-identity-pool.js.map +0 -1
  178. package/dist/.sst/platform/src/components/aws/cognito-identity-provider.js +0 -67
  179. package/dist/.sst/platform/src/components/aws/cognito-identity-provider.js.map +0 -1
  180. package/dist/.sst/platform/src/components/aws/cognito-user-pool-client.js +0 -81
  181. package/dist/.sst/platform/src/components/aws/cognito-user-pool-client.js.map +0 -1
  182. package/dist/.sst/platform/src/components/aws/cognito-user-pool.js +0 -368
  183. package/dist/.sst/platform/src/components/aws/cognito-user-pool.js.map +0 -1
  184. package/dist/.sst/platform/src/components/aws/cron.js +0 -200
  185. package/dist/.sst/platform/src/components/aws/cron.js.map +0 -1
  186. package/dist/.sst/platform/src/components/aws/dns-validated-certificate.js +0 -55
  187. package/dist/.sst/platform/src/components/aws/dns-validated-certificate.js.map +0 -1
  188. package/dist/.sst/platform/src/components/aws/dns.js +0 -121
  189. package/dist/.sst/platform/src/components/aws/dns.js.map +0 -1
  190. package/dist/.sst/platform/src/components/aws/dynamo-lambda-subscriber.js +0 -79
  191. package/dist/.sst/platform/src/components/aws/dynamo-lambda-subscriber.js.map +0 -1
  192. package/dist/.sst/platform/src/components/aws/dynamo.js +0 -291
  193. package/dist/.sst/platform/src/components/aws/dynamo.js.map +0 -1
  194. package/dist/.sst/platform/src/components/aws/efs.js +0 -241
  195. package/dist/.sst/platform/src/components/aws/efs.js.map +0 -1
  196. package/dist/.sst/platform/src/components/aws/email.js +0 -276
  197. package/dist/.sst/platform/src/components/aws/email.js.map +0 -1
  198. package/dist/.sst/platform/src/components/aws/fargate.js +0 -434
  199. package/dist/.sst/platform/src/components/aws/fargate.js.map +0 -1
  200. package/dist/.sst/platform/src/components/aws/function.js +0 -1041
  201. package/dist/.sst/platform/src/components/aws/function.js.map +0 -1
  202. package/dist/.sst/platform/src/components/aws/helpers/apigateway-account.js +0 -31
  203. package/dist/.sst/platform/src/components/aws/helpers/apigateway-account.js.map +0 -1
  204. package/dist/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.js +0 -2
  205. package/dist/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.js.map +0 -1
  206. package/dist/.sst/platform/src/components/aws/helpers/arn.js +0 -86
  207. package/dist/.sst/platform/src/components/aws/helpers/arn.js.map +0 -1
  208. package/dist/.sst/platform/src/components/aws/helpers/bootstrap.js +0 -7
  209. package/dist/.sst/platform/src/components/aws/helpers/bootstrap.js.map +0 -1
  210. package/dist/.sst/platform/src/components/aws/helpers/container-builder.js +0 -27
  211. package/dist/.sst/platform/src/components/aws/helpers/container-builder.js.map +0 -1
  212. package/dist/.sst/platform/src/components/aws/helpers/function-builder.js +0 -51
  213. package/dist/.sst/platform/src/components/aws/helpers/function-builder.js.map +0 -1
  214. package/dist/.sst/platform/src/components/aws/helpers/provider.js +0 -34
  215. package/dist/.sst/platform/src/components/aws/helpers/provider.js.map +0 -1
  216. package/dist/.sst/platform/src/components/aws/helpers/quota.js +0 -20
  217. package/dist/.sst/platform/src/components/aws/helpers/quota.js.map +0 -1
  218. package/dist/.sst/platform/src/components/aws/helpers/site-builder.js +0 -36
  219. package/dist/.sst/platform/src/components/aws/helpers/site-builder.js.map +0 -1
  220. package/dist/.sst/platform/src/components/aws/helpers/subscriber.js +0 -13
  221. package/dist/.sst/platform/src/components/aws/helpers/subscriber.js.map +0 -1
  222. package/dist/.sst/platform/src/components/aws/https-redirect.js +0 -124
  223. package/dist/.sst/platform/src/components/aws/https-redirect.js.map +0 -1
  224. package/dist/.sst/platform/src/components/aws/iam-edit.js +0 -40
  225. package/dist/.sst/platform/src/components/aws/iam-edit.js.map +0 -1
  226. package/dist/.sst/platform/src/components/aws/index.js +0 -49
  227. package/dist/.sst/platform/src/components/aws/index.js.map +0 -1
  228. package/dist/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.js +0 -82
  229. package/dist/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.js.map +0 -1
  230. package/dist/.sst/platform/src/components/aws/kinesis-stream.js +0 -134
  231. package/dist/.sst/platform/src/components/aws/kinesis-stream.js.map +0 -1
  232. package/dist/.sst/platform/src/components/aws/linkable.js +0 -25
  233. package/dist/.sst/platform/src/components/aws/linkable.js.map +0 -1
  234. package/dist/.sst/platform/src/components/aws/logging.js +0 -26
  235. package/dist/.sst/platform/src/components/aws/logging.js.map +0 -1
  236. package/dist/.sst/platform/src/components/aws/mysql.js +0 -514
  237. package/dist/.sst/platform/src/components/aws/mysql.js.map +0 -1
  238. package/dist/.sst/platform/src/components/aws/nextjs.js +0 -444
  239. package/dist/.sst/platform/src/components/aws/nextjs.js.map +0 -1
  240. package/dist/.sst/platform/src/components/aws/nuxt.js +0 -113
  241. package/dist/.sst/platform/src/components/aws/nuxt.js.map +0 -1
  242. package/dist/.sst/platform/src/components/aws/open-search.js +0 -365
  243. package/dist/.sst/platform/src/components/aws/open-search.js.map +0 -1
  244. package/dist/.sst/platform/src/components/aws/opencontrol.js +0 -164
  245. package/dist/.sst/platform/src/components/aws/opencontrol.js.map +0 -1
  246. package/dist/.sst/platform/src/components/aws/permission.js +0 -19
  247. package/dist/.sst/platform/src/components/aws/permission.js.map +0 -1
  248. package/dist/.sst/platform/src/components/aws/postgres-v1.js +0 -304
  249. package/dist/.sst/platform/src/components/aws/postgres-v1.js.map +0 -1
  250. package/dist/.sst/platform/src/components/aws/postgres.js +0 -532
  251. package/dist/.sst/platform/src/components/aws/postgres.js.map +0 -1
  252. package/dist/.sst/platform/src/components/aws/providers/bucket-files.js +0 -8
  253. package/dist/.sst/platform/src/components/aws/providers/bucket-files.js.map +0 -1
  254. package/dist/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.js +0 -8
  255. package/dist/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.js.map +0 -1
  256. package/dist/.sst/platform/src/components/aws/providers/distribution-invalidation.js +0 -8
  257. package/dist/.sst/platform/src/components/aws/providers/distribution-invalidation.js.map +0 -1
  258. package/dist/.sst/platform/src/components/aws/providers/function-environment-update.js +0 -18
  259. package/dist/.sst/platform/src/components/aws/providers/function-environment-update.js.map +0 -1
  260. package/dist/.sst/platform/src/components/aws/providers/hosted-zone-lookup.js +0 -8
  261. package/dist/.sst/platform/src/components/aws/providers/hosted-zone-lookup.js.map +0 -1
  262. package/dist/.sst/platform/src/components/aws/providers/kv-keys.js +0 -8
  263. package/dist/.sst/platform/src/components/aws/providers/kv-keys.js.map +0 -1
  264. package/dist/.sst/platform/src/components/aws/providers/kv-routes-update.js +0 -8
  265. package/dist/.sst/platform/src/components/aws/providers/kv-routes-update.js.map +0 -1
  266. package/dist/.sst/platform/src/components/aws/providers/origin-access-control.js +0 -8
  267. package/dist/.sst/platform/src/components/aws/providers/origin-access-control.js.map +0 -1
  268. package/dist/.sst/platform/src/components/aws/providers/rds-role-lookup.js +0 -8
  269. package/dist/.sst/platform/src/components/aws/providers/rds-role-lookup.js.map +0 -1
  270. package/dist/.sst/platform/src/components/aws/providers/vector-table.js +0 -8
  271. package/dist/.sst/platform/src/components/aws/providers/vector-table.js.map +0 -1
  272. package/dist/.sst/platform/src/components/aws/queue-lambda-subscriber.js +0 -81
  273. package/dist/.sst/platform/src/components/aws/queue-lambda-subscriber.js.map +0 -1
  274. package/dist/.sst/platform/src/components/aws/queue.js +0 -322
  275. package/dist/.sst/platform/src/components/aws/queue.js.map +0 -1
  276. package/dist/.sst/platform/src/components/aws/react.js +0 -157
  277. package/dist/.sst/platform/src/components/aws/react.js.map +0 -1
  278. package/dist/.sst/platform/src/components/aws/realtime-lambda-subscriber.js +0 -78
  279. package/dist/.sst/platform/src/components/aws/realtime-lambda-subscriber.js.map +0 -1
  280. package/dist/.sst/platform/src/components/aws/realtime.js +0 -221
  281. package/dist/.sst/platform/src/components/aws/realtime.js.map +0 -1
  282. package/dist/.sst/platform/src/components/aws/redis-v1.js +0 -335
  283. package/dist/.sst/platform/src/components/aws/redis-v1.js.map +0 -1
  284. package/dist/.sst/platform/src/components/aws/redis.js +0 -382
  285. package/dist/.sst/platform/src/components/aws/redis.js.map +0 -1
  286. package/dist/.sst/platform/src/components/aws/remix.js +0 -212
  287. package/dist/.sst/platform/src/components/aws/remix.js.map +0 -1
  288. package/dist/.sst/platform/src/components/aws/router-base-route.js +0 -40
  289. package/dist/.sst/platform/src/components/aws/router-base-route.js.map +0 -1
  290. package/dist/.sst/platform/src/components/aws/router-bucket-route.js +0 -40
  291. package/dist/.sst/platform/src/components/aws/router-bucket-route.js.map +0 -1
  292. package/dist/.sst/platform/src/components/aws/router-url-route.js +0 -51
  293. package/dist/.sst/platform/src/components/aws/router-url-route.js.map +0 -1
  294. package/dist/.sst/platform/src/components/aws/router.js +0 -1156
  295. package/dist/.sst/platform/src/components/aws/router.js.map +0 -1
  296. package/dist/.sst/platform/src/components/aws/service-v1.js +0 -606
  297. package/dist/.sst/platform/src/components/aws/service-v1.js.map +0 -1
  298. package/dist/.sst/platform/src/components/aws/service.js +0 -924
  299. package/dist/.sst/platform/src/components/aws/service.js.map +0 -1
  300. package/dist/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.js +0 -75
  301. package/dist/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.js.map +0 -1
  302. package/dist/.sst/platform/src/components/aws/sns-topic-queue-subscriber.js +0 -59
  303. package/dist/.sst/platform/src/components/aws/sns-topic-queue-subscriber.js.map +0 -1
  304. package/dist/.sst/platform/src/components/aws/sns-topic.js +0 -233
  305. package/dist/.sst/platform/src/components/aws/sns-topic.js.map +0 -1
  306. package/dist/.sst/platform/src/components/aws/solid-start.js +0 -120
  307. package/dist/.sst/platform/src/components/aws/solid-start.js.map +0 -1
  308. package/dist/.sst/platform/src/components/aws/ssr-site.js +0 -792
  309. package/dist/.sst/platform/src/components/aws/ssr-site.js.map +0 -1
  310. package/dist/.sst/platform/src/components/aws/static-site.js +0 -583
  311. package/dist/.sst/platform/src/components/aws/static-site.js.map +0 -1
  312. package/dist/.sst/platform/src/components/aws/step-functions/choice.js +0 -98
  313. package/dist/.sst/platform/src/components/aws/step-functions/choice.js.map +0 -1
  314. package/dist/.sst/platform/src/components/aws/step-functions/fail.js +0 -25
  315. package/dist/.sst/platform/src/components/aws/step-functions/fail.js.map +0 -1
  316. package/dist/.sst/platform/src/components/aws/step-functions/map.js +0 -108
  317. package/dist/.sst/platform/src/components/aws/step-functions/map.js.map +0 -1
  318. package/dist/.sst/platform/src/components/aws/step-functions/parallel.js +0 -129
  319. package/dist/.sst/platform/src/components/aws/step-functions/parallel.js.map +0 -1
  320. package/dist/.sst/platform/src/components/aws/step-functions/pass.js +0 -41
  321. package/dist/.sst/platform/src/components/aws/step-functions/pass.js.map +0 -1
  322. package/dist/.sst/platform/src/components/aws/step-functions/state.js +0 -134
  323. package/dist/.sst/platform/src/components/aws/step-functions/state.js.map +0 -1
  324. package/dist/.sst/platform/src/components/aws/step-functions/succeed.js +0 -25
  325. package/dist/.sst/platform/src/components/aws/step-functions/succeed.js.map +0 -1
  326. package/dist/.sst/platform/src/components/aws/step-functions/task.js +0 -116
  327. package/dist/.sst/platform/src/components/aws/step-functions/task.js.map +0 -1
  328. package/dist/.sst/platform/src/components/aws/step-functions/wait.js +0 -46
  329. package/dist/.sst/platform/src/components/aws/step-functions/wait.js.map +0 -1
  330. package/dist/.sst/platform/src/components/aws/step-functions.js +0 -576
  331. package/dist/.sst/platform/src/components/aws/step-functions.js.map +0 -1
  332. package/dist/.sst/platform/src/components/aws/svelte-kit.js +0 -144
  333. package/dist/.sst/platform/src/components/aws/svelte-kit.js.map +0 -1
  334. package/dist/.sst/platform/src/components/aws/tan-stack-start.js +0 -143
  335. package/dist/.sst/platform/src/components/aws/tan-stack-start.js.map +0 -1
  336. package/dist/.sst/platform/src/components/aws/task.js +0 -311
  337. package/dist/.sst/platform/src/components/aws/task.js.map +0 -1
  338. package/dist/.sst/platform/src/components/aws/vector.js +0 -224
  339. package/dist/.sst/platform/src/components/aws/vector.js.map +0 -1
  340. package/dist/.sst/platform/src/components/aws/vpc-v1.js +0 -355
  341. package/dist/.sst/platform/src/components/aws/vpc-v1.js.map +0 -1
  342. package/dist/.sst/platform/src/components/aws/vpc.js +0 -834
  343. package/dist/.sst/platform/src/components/aws/vpc.js.map +0 -1
  344. package/dist/.sst/platform/src/components/base/base-site.js +0 -47
  345. package/dist/.sst/platform/src/components/base/base-site.js.map +0 -1
  346. package/dist/.sst/platform/src/components/base/base-ssr-site.js +0 -72
  347. package/dist/.sst/platform/src/components/base/base-ssr-site.js.map +0 -1
  348. package/dist/.sst/platform/src/components/base/base-static-site.js +0 -87
  349. package/dist/.sst/platform/src/components/base/base-static-site.js.map +0 -1
  350. package/dist/.sst/platform/src/components/cloudflare/account-id.js +0 -2
  351. package/dist/.sst/platform/src/components/cloudflare/account-id.js.map +0 -1
  352. package/dist/.sst/platform/src/components/cloudflare/auth.js +0 -37
  353. package/dist/.sst/platform/src/components/cloudflare/auth.js.map +0 -1
  354. package/dist/.sst/platform/src/components/cloudflare/binding.js +0 -25
  355. package/dist/.sst/platform/src/components/cloudflare/binding.js.map +0 -1
  356. package/dist/.sst/platform/src/components/cloudflare/bucket.js +0 -98
  357. package/dist/.sst/platform/src/components/cloudflare/bucket.js.map +0 -1
  358. package/dist/.sst/platform/src/components/cloudflare/cron.js +0 -86
  359. package/dist/.sst/platform/src/components/cloudflare/cron.js.map +0 -1
  360. package/dist/.sst/platform/src/components/cloudflare/d1.js +0 -104
  361. package/dist/.sst/platform/src/components/cloudflare/d1.js.map +0 -1
  362. package/dist/.sst/platform/src/components/cloudflare/dns.js +0 -138
  363. package/dist/.sst/platform/src/components/cloudflare/dns.js.map +0 -1
  364. package/dist/.sst/platform/src/components/cloudflare/helpers/fetch.js +0 -39
  365. package/dist/.sst/platform/src/components/cloudflare/helpers/fetch.js.map +0 -1
  366. package/dist/.sst/platform/src/components/cloudflare/helpers/worker-builder.js +0 -25
  367. package/dist/.sst/platform/src/components/cloudflare/helpers/worker-builder.js.map +0 -1
  368. package/dist/.sst/platform/src/components/cloudflare/index.js +0 -13
  369. package/dist/.sst/platform/src/components/cloudflare/index.js.map +0 -1
  370. package/dist/.sst/platform/src/components/cloudflare/kv.js +0 -98
  371. package/dist/.sst/platform/src/components/cloudflare/kv.js.map +0 -1
  372. package/dist/.sst/platform/src/components/cloudflare/providers/dns-record.js +0 -11
  373. package/dist/.sst/platform/src/components/cloudflare/providers/dns-record.js.map +0 -1
  374. package/dist/.sst/platform/src/components/cloudflare/providers/kv-data.js +0 -63
  375. package/dist/.sst/platform/src/components/cloudflare/providers/kv-data.js.map +0 -1
  376. package/dist/.sst/platform/src/components/cloudflare/providers/worker-url.js +0 -83
  377. package/dist/.sst/platform/src/components/cloudflare/providers/worker-url.js.map +0 -1
  378. package/dist/.sst/platform/src/components/cloudflare/providers/zone-lookup.js +0 -54
  379. package/dist/.sst/platform/src/components/cloudflare/providers/zone-lookup.js.map +0 -1
  380. package/dist/.sst/platform/src/components/cloudflare/queue.js +0 -57
  381. package/dist/.sst/platform/src/components/cloudflare/queue.js.map +0 -1
  382. package/dist/.sst/platform/src/components/cloudflare/remix.d.ts +0 -223
  383. package/dist/.sst/platform/src/components/cloudflare/remix.d.ts.map +0 -1
  384. package/dist/.sst/platform/src/components/cloudflare/remix.js +0 -291
  385. package/dist/.sst/platform/src/components/cloudflare/remix.js.map +0 -1
  386. package/dist/.sst/platform/src/components/cloudflare/ssr-site.js +0 -177
  387. package/dist/.sst/platform/src/components/cloudflare/ssr-site.js.map +0 -1
  388. package/dist/.sst/platform/src/components/cloudflare/static-site.js +0 -315
  389. package/dist/.sst/platform/src/components/cloudflare/static-site.js.map +0 -1
  390. package/dist/.sst/platform/src/components/cloudflare/worker.js +0 -326
  391. package/dist/.sst/platform/src/components/cloudflare/worker.js.map +0 -1
  392. package/dist/.sst/platform/src/components/component.js +0 -395
  393. package/dist/.sst/platform/src/components/component.js.map +0 -1
  394. package/dist/.sst/platform/src/components/cpu.js +0 -9
  395. package/dist/.sst/platform/src/components/cpu.js.map +0 -1
  396. package/dist/.sst/platform/src/components/dns.js +0 -7
  397. package/dist/.sst/platform/src/components/dns.js.map +0 -1
  398. package/dist/.sst/platform/src/components/duration.js +0 -19
  399. package/dist/.sst/platform/src/components/duration.js.map +0 -1
  400. package/dist/.sst/platform/src/components/error.js +0 -6
  401. package/dist/.sst/platform/src/components/error.js.map +0 -1
  402. package/dist/.sst/platform/src/components/experimental/dev-command.js +0 -59
  403. package/dist/.sst/platform/src/components/experimental/dev-command.js.map +0 -1
  404. package/dist/.sst/platform/src/components/experimental/index.js +0 -2
  405. package/dist/.sst/platform/src/components/experimental/index.js.map +0 -1
  406. package/dist/.sst/platform/src/components/hint.d.ts +0 -7
  407. package/dist/.sst/platform/src/components/hint.d.ts.map +0 -1
  408. package/dist/.sst/platform/src/components/hint.js +0 -20
  409. package/dist/.sst/platform/src/components/hint.js.map +0 -1
  410. package/dist/.sst/platform/src/components/index.js +0 -16
  411. package/dist/.sst/platform/src/components/index.js.map +0 -1
  412. package/dist/.sst/platform/src/components/input.js +0 -2
  413. package/dist/.sst/platform/src/components/input.js.map +0 -1
  414. package/dist/.sst/platform/src/components/link.js +0 -138
  415. package/dist/.sst/platform/src/components/link.js.map +0 -1
  416. package/dist/.sst/platform/src/components/linkable.js +0 -244
  417. package/dist/.sst/platform/src/components/linkable.js.map +0 -1
  418. package/dist/.sst/platform/src/components/naming.js +0 -58
  419. package/dist/.sst/platform/src/components/naming.js.map +0 -1
  420. package/dist/.sst/platform/src/components/path.js +0 -5
  421. package/dist/.sst/platform/src/components/path.js.map +0 -1
  422. package/dist/.sst/platform/src/components/rpc/rpc.js +0 -120
  423. package/dist/.sst/platform/src/components/rpc/rpc.js.map +0 -1
  424. package/dist/.sst/platform/src/components/secret.js +0 -143
  425. package/dist/.sst/platform/src/components/secret.js.map +0 -1
  426. package/dist/.sst/platform/src/components/size.js +0 -29
  427. package/dist/.sst/platform/src/components/size.js.map +0 -1
  428. package/dist/.sst/platform/src/components/vercel/account-id.js +0 -2
  429. package/dist/.sst/platform/src/components/vercel/account-id.js.map +0 -1
  430. package/dist/.sst/platform/src/components/vercel/dns.js +0 -104
  431. package/dist/.sst/platform/src/components/vercel/dns.js.map +0 -1
  432. package/dist/.sst/platform/src/components/vercel/index.js +0 -3
  433. package/dist/.sst/platform/src/components/vercel/index.js.map +0 -1
  434. package/dist/.sst/platform/src/components/vercel/providers/dns-record.js +0 -8
  435. package/dist/.sst/platform/src/components/vercel/providers/dns-record.js.map +0 -1
  436. package/dist/.sst/platform/src/config.js +0 -5
  437. package/dist/.sst/platform/src/config.js.map +0 -1
  438. package/dist/.sst/platform/src/util/compare-semver.js +0 -24
  439. package/dist/.sst/platform/src/util/compare-semver.js.map +0 -1
  440. package/dist/.sst/platform/src/util/lazy.js +0 -12
  441. package/dist/.sst/platform/src/util/lazy.js.map +0 -1
  442. package/dist/.sst/platform/src/util/path-to-regex.d.ts +0 -128
  443. package/dist/.sst/platform/src/util/path-to-regex.d.ts.map +0 -1
  444. package/dist/.sst/platform/src/util/path-to-regex.js +0 -392
  445. package/dist/.sst/platform/src/util/path-to-regex.js.map +0 -1
  446. package/dist/.sst/platform/src/util/semaphore.js +0 -36
  447. package/dist/.sst/platform/src/util/semaphore.js.map +0 -1
  448. package/dist/.sst/platform/src/util/warn.js +0 -8
  449. package/dist/.sst/platform/src/util/warn.js.map +0 -1
  450. package/dist/components/monorise-core.js +0 -147
  451. package/dist/components/monorise-core.js.map +0 -1
  452. package/dist/components/q-function.js +0 -53
  453. package/dist/components/q-function.js.map +0 -1
  454. package/dist/components/single-table.js +0 -73
  455. package/dist/components/single-table.js.map +0 -1
  456. package/dist/constants/event.js +0 -74
  457. package/dist/constants/event.js.map +0 -1
  458. package/dist/constants/table.js +0 -3
  459. package/dist/constants/table.js.map +0 -1
  460. package/dist/sst.config.js +0 -24
  461. package/dist/sst.config.js.map +0 -1
  462. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -1,382 +0,0 @@
1
- import { all, interpolate, jsonStringify, output, } from "@pulumi/pulumi";
2
- import { RandomPassword } from "@pulumi/random";
3
- import { Component, transform } from "../component.js";
4
- import { elasticache, secretsmanager } from "@pulumi/aws";
5
- import { Vpc } from "./vpc.js";
6
- import { VisibleError } from "../error.js";
7
- import { DevCommand } from "../experimental/dev-command.js";
8
- import { Redis as RedisV1 } from "./redis-v1";
9
- /**
10
- * The `Redis` component lets you add a Redis cluster to your app using
11
- * [Amazon ElastiCache](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/WhatIs.html).
12
- *
13
- * @example
14
- *
15
- * #### Create the cluster
16
- *
17
- * ```js title="sst.config.ts"
18
- * const vpc = new sst.aws.Vpc("MyVpc");
19
- * const redis = new sst.aws.Redis("MyRedis", { vpc });
20
- * ```
21
- *
22
- * #### Link to a resource
23
- *
24
- * You can link your cluster to other resources, like a function or your Next.js app.
25
- *
26
- * ```ts title="sst.config.ts"
27
- * new sst.aws.Nextjs("MyWeb", {
28
- * link: [redis],
29
- * vpc
30
- * });
31
- * ```
32
- *
33
- * Once linked, you can connect to it from your function code.
34
- *
35
- * ```ts title="app/page.tsx" {1,6,7,12,13}
36
- * import { Resource } from "sst";
37
- * import { Cluster } from "ioredis";
38
- *
39
- * const client = new Cluster(
40
- * [{
41
- * host: Resource.MyRedis.host,
42
- * port: Resource.MyRedis.port
43
- * }],
44
- * {
45
- * redisOptions: {
46
- * tls: { checkServerIdentity: () => undefined },
47
- * username: Resource.MyRedis.username,
48
- * password: Resource.MyRedis.password
49
- * }
50
- * }
51
- * );
52
- * ```
53
- *
54
- * #### Running locally
55
- *
56
- * By default, your Redis cluster is deployed in `sst dev`. But let's say you are running Redis
57
- * locally.
58
- *
59
- * ```bash
60
- * docker run \
61
- * --rm \
62
- * -p 6379:6379 \
63
- * -v $(pwd)/.sst/storage/redis:/data \
64
- * redis:latest
65
- * ```
66
- *
67
- * You can connect to it in `sst dev` by configuring the `dev` prop.
68
- *
69
- * ```ts title="sst.config.ts" {3-6}
70
- * const redis = new sst.aws.Redis("MyRedis", {
71
- * vpc,
72
- * dev: {
73
- * host: "localhost",
74
- * port: 6379
75
- * }
76
- * });
77
- * ```
78
- *
79
- * This will skip deploying a Redis ElastiCache cluster and link to the locally running Redis
80
- * server instead. [Check out the full example](/docs/examples/#aws-redis-local).
81
- *
82
- * ---
83
- *
84
- * ### Cost
85
- *
86
- * By default this component uses _On-demand nodes_ with a single `cache.t4g.micro` instance.
87
- *
88
- * The default `redis` engine costs $0.016 per hour. That works out to $0.016 x 24 x 30 or **$12 per month**.
89
- *
90
- * If the `valkey` engine is used, the cost is $0.0128 per hour. That works out to $0.0128 x 24 x 30 or **$9 per month**.
91
- *
92
- * Adjust this for the `instance` type and number of `nodes` you are using.
93
- *
94
- * The above are rough estimates for _us-east-1_, check out the
95
- * [ElastiCache pricing](https://aws.amazon.com/elasticache/pricing/) for more details.
96
- */
97
- export class Redis extends Component {
98
- constructor(name, args, opts) {
99
- super(__pulumiType, name, args, opts);
100
- const _version = 2;
101
- const self = this;
102
- if (args && "ref" in args) {
103
- const ref = reference();
104
- this.cluster = output(ref.cluster);
105
- this._authToken = ref.authToken;
106
- return;
107
- }
108
- registerVersion();
109
- const engine = output(args.engine).apply((v) => v !== null && v !== void 0 ? v : "redis");
110
- const version = all([engine, args.version]).apply(([engine, v]) => v !== null && v !== void 0 ? v : (engine === "redis" ? "7.1" : "7.2"));
111
- const instance = output(args.instance).apply((v) => v !== null && v !== void 0 ? v : "t4g.micro");
112
- const argsCluster = normalizeCluster();
113
- const vpc = normalizeVpc();
114
- const dev = registerDev();
115
- if (dev === null || dev === void 0 ? void 0 : dev.enabled) {
116
- this.dev = dev;
117
- return;
118
- }
119
- const { authToken, secret } = createAuthToken();
120
- const subnetGroup = createSubnetGroup();
121
- const parameterGroup = createParameterGroup();
122
- const cluster = createCluster();
123
- this.cluster = cluster;
124
- this._authToken = authToken;
125
- function reference() {
126
- const ref = args;
127
- const cluster = elasticache.ReplicationGroup.get(`${name}Cluster`, ref.clusterId, undefined, { parent: self });
128
- const input = cluster.tags.apply((tags) => {
129
- registerVersion((tags === null || tags === void 0 ? void 0 : tags["sst:component-version"])
130
- ? parseInt(tags["sst:component-version"])
131
- : undefined);
132
- if (!(tags === null || tags === void 0 ? void 0 : tags["sst:ref:secret"]))
133
- throw new VisibleError(`Failed to lookup secret for Redis cluster "${name}".`);
134
- return {
135
- secretRef: tags === null || tags === void 0 ? void 0 : tags["sst:ref:secret"],
136
- };
137
- });
138
- const secret = secretsmanager.getSecretVersionOutput({ secretId: input.secretRef }, { parent: self });
139
- const authToken = secret.secretString.apply((v) => {
140
- return JSON.parse(v).authToken;
141
- });
142
- return { cluster, authToken };
143
- }
144
- function registerVersion(overrideVersion) {
145
- const oldVersion = overrideVersion !== null && overrideVersion !== void 0 ? overrideVersion : $cli.state.version[name];
146
- self.registerVersion({
147
- new: _version,
148
- old: oldVersion,
149
- message: [
150
- `There is a new version of "Redis" that has breaking changes.`,
151
- ``,
152
- `To continue using the previous version, rename "Redis" to "Redis.v${oldVersion}".`,
153
- `Or recreate this component to update - https://sst.dev/docs/components/#versioning`,
154
- ].join("\n"),
155
- });
156
- }
157
- function registerDev() {
158
- var _a, _b, _c;
159
- if (!args.dev)
160
- return undefined;
161
- const dev = {
162
- enabled: $dev,
163
- host: output((_a = args.dev.host) !== null && _a !== void 0 ? _a : "localhost"),
164
- port: output((_b = args.dev.port) !== null && _b !== void 0 ? _b : 6379),
165
- username: output((_c = args.dev.username) !== null && _c !== void 0 ? _c : "default"),
166
- password: args.dev.password ? output(args.dev.password) : undefined,
167
- };
168
- new DevCommand(`${name}Dev`, {
169
- dev: {
170
- title: name,
171
- autostart: true,
172
- command: `sst print-and-not-quit`,
173
- },
174
- environment: {
175
- SST_DEV_COMMAND_MESSAGE: interpolate `Make sure your local Redis server is using:
176
-
177
- username: "${dev.username}"
178
- password: ${dev.password ? `"${dev.password}"` : "\x1b[38;5;8m[no password]\x1b[0m"}
179
-
180
- Listening on "${dev.host}:${dev.port}"...`,
181
- },
182
- });
183
- return dev;
184
- }
185
- function normalizeVpc() {
186
- // "vpc" is a Vpc component
187
- if (args.vpc instanceof Vpc) {
188
- return output({
189
- subnets: args.vpc.privateSubnets,
190
- securityGroups: args.vpc.securityGroups,
191
- });
192
- }
193
- // "vpc" is object
194
- return output(args.vpc);
195
- }
196
- function normalizeCluster() {
197
- return all([args.cluster, args.nodes]).apply(([v, nodes]) => {
198
- if (v === false)
199
- return undefined;
200
- if (v === true)
201
- return { nodes: 1 };
202
- if (v === undefined) {
203
- if (nodes)
204
- return { nodes };
205
- return { nodes: 1 };
206
- }
207
- return v;
208
- });
209
- }
210
- function createAuthToken() {
211
- const authToken = new RandomPassword(`${name}AuthToken`, {
212
- length: 32,
213
- special: true,
214
- overrideSpecial: "!&#$^<>-",
215
- }, { parent: self }).result;
216
- const secret = new secretsmanager.Secret(`${name}ProxySecret`, {
217
- recoveryWindowInDays: 0,
218
- }, { parent: self });
219
- new secretsmanager.SecretVersion(`${name}ProxySecretVersion`, {
220
- secretId: secret.id,
221
- secretString: jsonStringify({ authToken }),
222
- }, { parent: self });
223
- return { secret, authToken };
224
- }
225
- function createSubnetGroup() {
226
- var _a;
227
- return new elasticache.SubnetGroup(...transform((_a = args.transform) === null || _a === void 0 ? void 0 : _a.subnetGroup, `${name}SubnetGroup`, {
228
- description: "Managed by SST",
229
- subnetIds: vpc.subnets,
230
- }, { parent: self }));
231
- }
232
- function createParameterGroup() {
233
- var _a, _b;
234
- return new elasticache.ParameterGroup(...transform((_a = args.transform) === null || _a === void 0 ? void 0 : _a.parameterGroup, `${name}ParameterGroup`, {
235
- description: "Managed by SST",
236
- family: all([engine, version]).apply(([engine, version]) => {
237
- var _a;
238
- const majorVersion = version.split(".")[0];
239
- const defaultFamily = `${engine}${majorVersion}`;
240
- return ((_a = {
241
- redis4: "redis4.0",
242
- redis5: "redis5.0",
243
- redis6: "redis6.x",
244
- }[defaultFamily]) !== null && _a !== void 0 ? _a : defaultFamily);
245
- }),
246
- parameters: all([(_b = args.parameters) !== null && _b !== void 0 ? _b : {}, argsCluster]).apply(([parameters, argsCluster]) => [
247
- {
248
- name: "cluster-enabled",
249
- value: argsCluster ? "yes" : "no",
250
- },
251
- ...Object.entries(parameters).map(([name, value]) => ({
252
- name,
253
- value,
254
- })),
255
- ]),
256
- }, { parent: self }));
257
- }
258
- function createCluster() {
259
- return argsCluster.apply((argsCluster) => {
260
- var _a;
261
- return new elasticache.ReplicationGroup(...transform((_a = args.transform) === null || _a === void 0 ? void 0 : _a.cluster, `${name}Cluster`, Object.assign(Object.assign({ description: "Managed by SST", engine, engineVersion: version, nodeType: interpolate `cache.${instance}`, dataTieringEnabled: instance.apply((v) => v.startsWith("r6gd.")), port: 6379 }, (argsCluster
262
- ? {
263
- clusterMode: "enabled",
264
- numNodeGroups: argsCluster.nodes,
265
- replicasPerNodeGroup: 0,
266
- automaticFailoverEnabled: true,
267
- }
268
- : {
269
- clusterMode: "disabled",
270
- })), { multiAzEnabled: false, atRestEncryptionEnabled: true, transitEncryptionEnabled: true, transitEncryptionMode: "required", authToken, subnetGroupName: subnetGroup.name, parameterGroupName: parameterGroup.name, securityGroupIds: vpc.securityGroups, tags: {
271
- "sst:component-version": _version.toString(),
272
- "sst:ref:secret": secret.id,
273
- } }), { parent: self }));
274
- });
275
- }
276
- }
277
- /**
278
- * The ID of the Redis cluster.
279
- */
280
- get clusterId() {
281
- return this.dev ? output("placeholder") : this.cluster.id;
282
- }
283
- /**
284
- * The username to connect to the Redis cluster.
285
- */
286
- get username() {
287
- return this.dev ? this.dev.username : output("default");
288
- }
289
- /**
290
- * The password to connect to the Redis cluster.
291
- */
292
- get password() {
293
- var _a;
294
- return this.dev ? (_a = this.dev.password) !== null && _a !== void 0 ? _a : output("") : this._authToken;
295
- }
296
- /**
297
- * The host to connect to the Redis cluster.
298
- */
299
- get host() {
300
- return this.dev
301
- ? this.dev.host
302
- : this.cluster.clusterEnabled.apply((enabled) => enabled
303
- ? this.cluster.configurationEndpointAddress
304
- : this.cluster.primaryEndpointAddress);
305
- }
306
- /**
307
- * The port to connect to the Redis cluster.
308
- */
309
- get port() {
310
- return this.dev ? this.dev.port : this.cluster.port.apply((v) => v);
311
- }
312
- /**
313
- * The underlying [resources](/docs/components/#nodes) this component creates.
314
- */
315
- get nodes() {
316
- const _this = this;
317
- return {
318
- /**
319
- * The ElastiCache Redis cluster.
320
- */
321
- get cluster() {
322
- if (_this.dev)
323
- throw new VisibleError("Cannot access `nodes.cluster` in dev mode.");
324
- return _this.cluster;
325
- },
326
- };
327
- }
328
- /** @internal */
329
- getSSTLink() {
330
- return {
331
- properties: {
332
- host: this.host,
333
- port: this.port,
334
- username: this.username,
335
- password: this.password,
336
- },
337
- };
338
- }
339
- /**
340
- * Reference an existing Redis cluster with the given cluster name. This is useful when you
341
- * create a Redis cluster in one stage and want to share it in another. It avoids having to
342
- * create a new Redis cluster in the other stage.
343
- *
344
- * :::tip
345
- * You can use the `static get` method to share Redis clusters across stages.
346
- * :::
347
- *
348
- * @param name The name of the component.
349
- * @param clusterId The id of the existing Redis cluster.
350
- * @param opts? Resource options.
351
- *
352
- * @example
353
- * Imagine you create a cluster in the `dev` stage. And in your personal stage `frank`,
354
- * instead of creating a new cluster, you want to share the same cluster from `dev`.
355
- *
356
- * ```ts title="sst.config.ts"
357
- * const redis = $app.stage === "frank"
358
- * ? sst.aws.Redis.get("MyRedis", "app-dev-myredis")
359
- * : new sst.aws.Redis("MyRedis");
360
- * ```
361
- *
362
- * Here `app-dev-myredis` is the ID of the cluster created in the `dev` stage.
363
- * You can find this by outputting the cluster ID in the `dev` stage.
364
- *
365
- * ```ts title="sst.config.ts"
366
- * return {
367
- * cluster: redis.clusterId
368
- * };
369
- * ```
370
- */
371
- static get(name, clusterId, opts) {
372
- return new Redis(name, {
373
- ref: true,
374
- clusterId,
375
- }, opts);
376
- }
377
- }
378
- Redis.v1 = RedisV1;
379
- const __pulumiType = "sst:aws:Redis";
380
- // @ts-expect-error
381
- Redis.__pulumiType = __pulumiType;
382
- //# sourceMappingURL=redis.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"redis.js","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/aws/redis.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,GAAG,EAEH,WAAW,EACX,aAAa,EAEb,MAAM,GACP,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAa,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAGlE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,KAAK,IAAI,OAAO,EAA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,IAAI;gBACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ;aACxB;SACF,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACI,MAAM,CAAC,GAAG,CACf,IAAY,EACZ,SAAwB,EACxB,IAA+B;QAE/B,OAAO,IAAI,KAAK,CACd,IAAI,EACJ;YACE,GAAG,EAAE,IAAI;YACT,SAAS;SACc,EACzB,IAAI,CACL,CAAC;IACJ,CAAC;;AAnYa,QAAE,GAAG,OAAO,CAAC;AAsY7B,MAAM,YAAY,GAAG,eAAe,CAAC;AACrC,mBAAmB;AACnB,KAAK,CAAC,YAAY,GAAG,YAAY,CAAC"}
@@ -1,212 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import fs from "fs";
11
- import path from "path";
12
- import { all } from "@pulumi/pulumi";
13
- import { VisibleError } from "../error.js";
14
- import { SsrSite } from "./ssr-site.js";
15
- /**
16
- * The `Remix` component lets you deploy a [Remix](https://remix.run) app to AWS.
17
- *
18
- * @example
19
- *
20
- * #### Minimal example
21
- *
22
- * Deploy a Remix app that's in the project root.
23
- *
24
- * ```js title="sst.config.ts"
25
- * new sst.aws.Remix("MyWeb");
26
- * ```
27
- *
28
- * #### Change the path
29
- *
30
- * Deploys the Remix app in the `my-remix-app/` directory.
31
- *
32
- * ```js {2} title="sst.config.ts"
33
- * new sst.aws.Remix("MyWeb", {
34
- * path: "my-remix-app/"
35
- * });
36
- * ```
37
- *
38
- * #### Add a custom domain
39
- *
40
- * Set a custom domain for your Remix app.
41
- *
42
- * ```js {2} title="sst.config.ts"
43
- * new sst.aws.Remix("MyWeb", {
44
- * domain: "my-app.com"
45
- * });
46
- * ```
47
- *
48
- * #### Redirect www to apex domain
49
- *
50
- * Redirect `www.my-app.com` to `my-app.com`.
51
- *
52
- * ```js {4} title="sst.config.ts"
53
- * new sst.aws.Remix("MyWeb", {
54
- * domain: {
55
- * name: "my-app.com",
56
- * redirects: ["www.my-app.com"]
57
- * }
58
- * });
59
- * ```
60
- *
61
- * #### Link resources
62
- *
63
- * [Link resources](/docs/linking/) to your Remix app. This will grant permissions
64
- * to the resources and allow you to access it in your app.
65
- *
66
- * ```ts {4} title="sst.config.ts"
67
- * const bucket = new sst.aws.Bucket("MyBucket");
68
- *
69
- * new sst.aws.Remix("MyWeb", {
70
- * link: [bucket]
71
- * });
72
- * ```
73
- *
74
- * You can use the [SDK](/docs/reference/sdk/) to access the linked resources
75
- * in your Remix app.
76
- *
77
- * ```ts title="app/root.tsx"
78
- * import { Resource } from "sst";
79
- *
80
- * console.log(Resource.MyBucket.name);
81
- * ```
82
- */
83
- export class Remix extends SsrSite {
84
- constructor(name, args = {}, opts = {}) {
85
- super(__pulumiType, name, args, opts);
86
- }
87
- normalizeBuildCommand() { }
88
- buildPlan(outputPath, _name, args) {
89
- return all([outputPath, args.buildDirectory]).apply((_a) => __awaiter(this, [_a], void 0, function* ([outputPath, buildDirectory]) {
90
- var _b;
91
- // The path for all files that need to be in the "/" directory (static assets)
92
- // is different when using Vite. These will be located in the "build/client"
93
- // path of the output by default. It will be the "public" folder when using remix config.
94
- let assetsPath = "public";
95
- let assetsVersionedSubDir = "build";
96
- let buildPath = path.join(outputPath, "build");
97
- const viteConfig = yield loadViteConfig();
98
- if (viteConfig) {
99
- assetsPath = path.join(viteConfig.__remixPluginContext.remixConfig.buildDirectory, "client");
100
- assetsVersionedSubDir = "assets";
101
- buildPath = path.join(outputPath, viteConfig.__remixPluginContext.remixConfig.buildDirectory);
102
- }
103
- const basepath = (_b = fs
104
- .readFileSync(path.join(outputPath, "vite.config.ts"), "utf-8")
105
- .match(/base: ['"](.*)['"]/)) === null || _b === void 0 ? void 0 : _b[1];
106
- return {
107
- base: basepath,
108
- server: createServerLambdaBundle(),
109
- assets: [
110
- {
111
- from: assetsPath,
112
- to: "",
113
- cached: true,
114
- versionedSubDir: assetsVersionedSubDir,
115
- },
116
- ],
117
- };
118
- function loadViteConfig() {
119
- return __awaiter(this, void 0, void 0, function* () {
120
- const file = [
121
- "vite.config.ts",
122
- "vite.config.js",
123
- "vite.config.mts",
124
- "vite.config.mjs",
125
- ].find((filename) => fs.existsSync(path.join(outputPath, filename)));
126
- if (!file)
127
- return;
128
- try {
129
- const vite = yield import("vite");
130
- const config = yield vite.loadConfigFromFile({ command: "build", mode: "production" }, path.join(outputPath, file));
131
- if (!config)
132
- throw new Error();
133
- return {
134
- __remixPluginContext: {
135
- remixConfig: {
136
- buildDirectory: buildDirectory !== null && buildDirectory !== void 0 ? buildDirectory : "build",
137
- },
138
- },
139
- };
140
- }
141
- catch (e) {
142
- throw new VisibleError(`Could not load Vite configuration from "${file}". Check that your Remix project uses Vite and the file exists.`);
143
- }
144
- });
145
- }
146
- function createServerLambdaBundle() {
147
- // Create a Lambda@Edge handler for the Remix server bundle.
148
- //
149
- // Note: Remix does perform their own internal ESBuild process, but it
150
- // doesn't bundle 3rd party dependencies by default. In the interest of
151
- // keeping deployments seamless for users we will create a server bundle
152
- // with all dependencies included. We will still need to consider how to
153
- // address any need for external dependencies, although I think we should
154
- // possibly consider this at a later date.
155
- // In this path we are assuming that the Remix build only outputs the
156
- // "core server build". We can safely assume this as we have guarded the
157
- // remix.config.js to ensure it matches our expectations for the build
158
- // configuration.
159
- // We need to ensure that the "core server build" is wrapped with an
160
- // appropriate Lambda@Edge handler. We will utilise an internal asset
161
- // template to create this wrapper within the "core server build" output
162
- // directory.
163
- // Ensure build directory exists
164
- fs.mkdirSync(buildPath, { recursive: true });
165
- // Copy the server lambda handler and pre-append the build injection based
166
- // on the config file used.
167
- const content = [
168
- // When using Vite config, the output build will be "server/index.js"
169
- // and when using Remix config it will be `server.js`.
170
- `// Import the server build that was produced by 'remix build'`,
171
- viteConfig
172
- ? `import * as remixServerBuild from "./server/index.js";`
173
- : `import * as remixServerBuild from "./index.js";`,
174
- ``,
175
- fs.readFileSync(path.join($cli.paths.platform, "functions", "remix-server", "regional-server.mjs")),
176
- ].join("\n");
177
- fs.writeFileSync(path.join(buildPath, "server.mjs"), content);
178
- // Copy the Remix polyfil to the server build directory
179
- //
180
- // Note: We need to ensure that the polyfills are injected above other code that
181
- // will depend on them when not using Vite. Importing them within the top of the
182
- // lambda code doesn't appear to guarantee this, we therefore leverage ESBUild's
183
- // `inject` option to ensure that the polyfills are injected at the top of
184
- // the bundle.
185
- const polyfillDest = path.join(buildPath, "polyfill.mjs");
186
- fs.copyFileSync(path.join($cli.paths.platform, "functions", "remix-server", "polyfill.mjs"), polyfillDest);
187
- return {
188
- handler: path.join(buildPath, "server.handler"),
189
- nodejs: {
190
- esbuild: {
191
- inject: [path.resolve(polyfillDest)],
192
- },
193
- },
194
- streaming: true,
195
- };
196
- }
197
- }));
198
- }
199
- /**
200
- * The URL of the Remix app.
201
- *
202
- * If the `domain` is set, this is the URL with the custom domain.
203
- * Otherwise, it's the auto-generated CloudFront URL.
204
- */
205
- get url() {
206
- return super.url;
207
- }
208
- }
209
- const __pulumiType = "sst:aws:Remix";
210
- // @ts-expect-error
211
- Remix.__pulumiType = __pulumiType;
212
- //# sourceMappingURL=remix.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remix.js","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/aws/remix.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAoC,GAAG,EAAE,MA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B,CAAC;oBAC/C,MAAM,EAAE;wBACN,OAAO,EAAE;4BACP,MAAM,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;yBACrC;qBACF;oBACD,SAAS,EAAE,IAAI;iBAChB,CAAC;YACJ,CAAC;QACH,CAAC,CAAA,CACF,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,IAAW,GAAG;QACZ,OAAO,KAAK,CAAC,GAAG,CAAC;IACnB,CAAC;CACF;AAED,MAAM,YAAY,GAAG,eAAe,CAAC;AACrC,mBAAmB;AACnB,KAAK,CAAC,YAAY,GAAG,YAAY,CAAC"}
@@ -1,40 +0,0 @@
1
- import crypto from "crypto";
2
- import { jsonStringify } from "@pulumi/pulumi";
3
- import { KvRoutesUpdate } from "./providers/kv-routes-update";
4
- import { KvKeys } from "./providers/kv-keys";
5
- export function parsePattern(pattern) {
6
- const [host, ...path] = pattern.split("/");
7
- return {
8
- host: host
9
- .replace(/[.+?^${}()|[\]\\]/g, "\\$&") // Escape special regex chars
10
- .replace(/\*/g, ".*"), // Replace * with .*
11
- path: "/" + path.join("/"),
12
- };
13
- }
14
- export function buildKvNamespace(name) {
15
- // In the case multiple sites use the same kv store, we need to namespace the keys
16
- return crypto
17
- .createHash("md5")
18
- .update(`${$app.name}-${$app.stage}-${name}`)
19
- .digest("hex")
20
- .substring(0, 4);
21
- }
22
- export function createKvRouteData(name, args, parent, routeNs, data) {
23
- new KvKeys(`${name}RouteKey`, {
24
- store: args.store,
25
- namespace: routeNs,
26
- entries: {
27
- metadata: jsonStringify(data),
28
- },
29
- purge: false,
30
- }, { parent });
31
- }
32
- export function updateKvRoutes(name, args, parent, routeType, routeNs, pattern) {
33
- return new KvRoutesUpdate(`${name}RoutesUpdate`, {
34
- store: args.store,
35
- namespace: args.routerNamespace,
36
- key: "routes",
37
- entry: [routeType, routeNs, pattern.host, pattern.path].join(","),
38
- }, { parent });
39
- }
40
- //# sourceMappingURL=router-base-route.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"router-base-route.js","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/aws/router-base-route.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAS,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEtD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAiB7C,MAAM,UAAU,YAAY,CAAC,OAAe;IAC1C,MAAM,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC3C,OAAO;QACL,IAAI,EAAE,IAAI;aACP,OAAO,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC,6BAA6B;aACnE,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE,oBAAoB;QAC7C,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAY;IAC3C,kFAAkF;IAClF,OAAO,MAAM;SACV,UAAU,CAAC,KAAK,CAAC;SACjB,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE,CAAC;SAC5C,MAAM,CAAC,KAAK,CAAC;SACb,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACrB,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC/B,IAAY,EACZ,IAAyB,EACzB,MAAiB,EACjB,OAAe,EACf,IAAS;IAET,IAAI,MAAM,CACR,GAAG,IAAI,UAAU,EACjB;QACE,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,SAAS,EAAE,OAAO;QAClB,OAAO,EAAE;YACP,QAAQ,EAAE,aAAa,CAAC,IAAI,CAAC;SAC9B;QACD,KAAK,EAAE,KAAK;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