@webiny/project-aws 6.6.0-alpha.10 → 6.6.0-alpha.11

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 (355) hide show
  1. package/AwsProjectSdk.d.ts +38 -0
  2. package/AwsProjectSdk.js +61 -0
  3. package/AwsProjectSdk.js.map +1 -0
  4. package/abstractions/features/DestroyApp.d.ts +18 -0
  5. package/abstractions/features/DestroyApp.js +5 -0
  6. package/abstractions/features/DestroyApp.js.map +1 -0
  7. package/abstractions/features/ExportStack.d.ts +18 -0
  8. package/abstractions/features/ExportStack.js +5 -0
  9. package/abstractions/features/ExportStack.js.map +1 -0
  10. package/abstractions/features/GetAppOutput.d.ts +18 -0
  11. package/abstractions/features/GetAppOutput.js +5 -0
  12. package/abstractions/features/GetAppOutput.js.map +1 -0
  13. package/abstractions/features/GetAppStackOutput.d.ts +18 -0
  14. package/abstractions/features/GetAppStackOutput.js +5 -0
  15. package/abstractions/features/GetAppStackOutput.js.map +1 -0
  16. package/abstractions/features/GetPulumiResourceNamePrefix.d.ts +7 -0
  17. package/abstractions/features/GetPulumiResourceNamePrefix.js +5 -0
  18. package/abstractions/features/GetPulumiResourceNamePrefix.js.map +1 -0
  19. package/abstractions/features/RefreshApp.d.ts +18 -0
  20. package/abstractions/features/RefreshApp.js +5 -0
  21. package/abstractions/features/RefreshApp.js.map +1 -0
  22. package/abstractions/features/RunPulumiCommand.d.ts +19 -0
  23. package/abstractions/features/RunPulumiCommand.js +5 -0
  24. package/abstractions/features/RunPulumiCommand.js.map +1 -0
  25. package/abstractions/index.d.ts +21 -0
  26. package/abstractions/index.js +21 -0
  27. package/abstractions/pulumiTypes.d.ts +3 -0
  28. package/abstractions/services/GetPulumiService.d.ts +20 -0
  29. package/abstractions/services/GetPulumiService.js +5 -0
  30. package/abstractions/services/GetPulumiService.js.map +1 -0
  31. package/abstractions/services/GetPulumiVersionService.d.ts +12 -0
  32. package/abstractions/services/GetPulumiVersionService.js +5 -0
  33. package/abstractions/services/GetPulumiVersionService.js.map +1 -0
  34. package/abstractions/services/IsRemotePulumiBackendService.d.ts +7 -0
  35. package/abstractions/services/IsRemotePulumiBackendService.js +5 -0
  36. package/abstractions/services/IsRemotePulumiBackendService.js.map +1 -0
  37. package/abstractions/services/ListAppLambdaFunctionsService.d.ts +23 -0
  38. package/abstractions/services/ListAppLambdaFunctionsService.js +5 -0
  39. package/abstractions/services/ListAppLambdaFunctionsService.js.map +1 -0
  40. package/abstractions/services/ListDeployedEnvironmentsService.d.ts +12 -0
  41. package/abstractions/services/ListDeployedEnvironmentsService.js +5 -0
  42. package/abstractions/services/ListDeployedEnvironmentsService.js.map +1 -0
  43. package/abstractions/services/PulumiExportService.d.ts +13 -0
  44. package/abstractions/services/PulumiExportService.js +6 -0
  45. package/abstractions/services/PulumiExportService.js.map +1 -0
  46. package/abstractions/services/PulumiGetConfigPassphraseService.d.ts +7 -0
  47. package/abstractions/services/PulumiGetConfigPassphraseService.js +5 -0
  48. package/abstractions/services/PulumiGetConfigPassphraseService.js.map +1 -0
  49. package/abstractions/services/PulumiGetSecretsProviderService.d.ts +7 -0
  50. package/abstractions/services/PulumiGetSecretsProviderService.js +5 -0
  51. package/abstractions/services/PulumiGetSecretsProviderService.js.map +1 -0
  52. package/abstractions/services/PulumiGetStackOutputService.d.ts +13 -0
  53. package/abstractions/services/PulumiGetStackOutputService.js +5 -0
  54. package/abstractions/services/PulumiGetStackOutputService.js.map +1 -0
  55. package/abstractions/services/PulumiImportService.d.ts +8 -0
  56. package/abstractions/services/PulumiImportService.js +5 -0
  57. package/abstractions/services/PulumiImportService.js.map +1 -0
  58. package/abstractions/services/PulumiLoginService.d.ts +19 -0
  59. package/abstractions/services/PulumiLoginService.js +5 -0
  60. package/abstractions/services/PulumiLoginService.js.map +1 -0
  61. package/abstractions/services/PulumiSelectStackService.d.ts +10 -0
  62. package/abstractions/services/PulumiSelectStackService.js +5 -0
  63. package/abstractions/services/PulumiSelectStackService.js.map +1 -0
  64. package/abstractions/services/StackOutputCacheService.d.ts +10 -0
  65. package/abstractions/services/StackOutputCacheService.js +5 -0
  66. package/abstractions/services/StackOutputCacheService.js.map +1 -0
  67. package/abstractions/services/WatchedLambdaFunctionsService.d.ts +28 -0
  68. package/abstractions/services/WatchedLambdaFunctionsService.js +5 -0
  69. package/abstractions/services/WatchedLambdaFunctionsService.js.map +1 -0
  70. package/api.d.ts +1 -15
  71. package/decorators/DeployAppClearWatchedLambdaFunctions.d.ts +20 -0
  72. package/decorators/DeployAppClearWatchedLambdaFunctions.js +35 -0
  73. package/decorators/DeployAppClearWatchedLambdaFunctions.js.map +1 -0
  74. package/decorators/DeployAppRefreshStackOutputCache.d.ts +20 -0
  75. package/decorators/DeployAppRefreshStackOutputCache.js +34 -0
  76. package/decorators/DeployAppRefreshStackOutputCache.js.map +1 -0
  77. package/decorators/DeployAppWithHooks.d.ts +25 -0
  78. package/decorators/DeployAppWithHooks.js +58 -0
  79. package/decorators/DeployAppWithHooks.js.map +1 -0
  80. package/decorators/DeployAppWithWatchedLambdaReplacement.d.ts +20 -0
  81. package/decorators/DeployAppWithWatchedLambdaReplacement.js +42 -0
  82. package/decorators/DeployAppWithWatchedLambdaReplacement.js.map +1 -0
  83. package/decorators/DestroyAppClearStackOutputCache.d.ts +28 -0
  84. package/decorators/DestroyAppClearStackOutputCache.js +31 -0
  85. package/decorators/DestroyAppClearStackOutputCache.js.map +1 -0
  86. package/decorators/GetPulumiServiceWithDownloadInfo.d.ts +13 -0
  87. package/decorators/GetPulumiServiceWithDownloadInfo.js +28 -0
  88. package/decorators/GetPulumiServiceWithDownloadInfo.js.map +1 -0
  89. package/decorators/ProjectInfoWithPulumi.d.ts +34 -0
  90. package/decorators/ProjectInfoWithPulumi.js +36 -0
  91. package/decorators/ProjectInfoWithPulumi.js.map +1 -0
  92. package/extensions/ApiRoute.d.ts +7 -16
  93. package/extensions/ApiRoute.js +4 -66
  94. package/extensions/ApiRoute.js.map +1 -1
  95. package/extensions/OpenSearch/EnsureOsServiceRoleBeforeCoreDeploy.d.ts +3 -2
  96. package/extensions/OpenSearch/EnsureOsServiceRoleBeforeCoreDeploy.js +2 -1
  97. package/extensions/OpenSearch/EnsureOsServiceRoleBeforeCoreDeploy.js.map +1 -1
  98. package/extensions/OpenSearch/EnsureOsWasDeployed.d.ts +2 -2
  99. package/extensions/OpenSearch/EnsureOsWasDeployed.js +1 -2
  100. package/extensions/OpenSearch/EnsureOsWasDeployed.js.map +1 -1
  101. package/extensions/OpenSearch.js +2 -2
  102. package/extensions/OpenSearch.js.map +1 -1
  103. package/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.d.ts +2 -2
  104. package/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.js +2 -1
  105. package/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.js.map +1 -1
  106. package/extensions/ProjectAws/BlueGreenDeployments/EnsureVariantBeforeDeploy.d.ts +3 -2
  107. package/extensions/ProjectAws/BlueGreenDeployments/EnsureVariantBeforeDeploy.js +2 -1
  108. package/extensions/ProjectAws/BlueGreenDeployments/EnsureVariantBeforeDeploy.js.map +1 -1
  109. package/extensions/ProjectAws/BlueGreenDeployments/PrintDeploymentInfoAfterDeploy.d.ts +5 -2
  110. package/extensions/ProjectAws/BlueGreenDeployments/PrintDeploymentInfoAfterDeploy.js +3 -1
  111. package/extensions/ProjectAws/BlueGreenDeployments/PrintDeploymentInfoAfterDeploy.js.map +1 -1
  112. package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminBuild.d.ts +3 -1
  113. package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminBuild.js +2 -1
  114. package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminBuild.js.map +1 -1
  115. package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminWatch.d.ts +3 -1
  116. package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminWatch.js +2 -1
  117. package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminWatch.js.map +1 -1
  118. package/extensions/ProjectAws/EnsureApiDeployedBeforeWatch.d.ts +3 -1
  119. package/extensions/ProjectAws/EnsureApiDeployedBeforeWatch.js +2 -1
  120. package/extensions/ProjectAws/EnsureApiDeployedBeforeWatch.js.map +1 -1
  121. package/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.d.ts +3 -2
  122. package/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.js +2 -1
  123. package/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.js.map +1 -1
  124. package/extensions/ProjectAws/EnsureCoreDeployedBeforeApiDeploy.d.ts +4 -2
  125. package/extensions/ProjectAws/EnsureCoreDeployedBeforeApiDeploy.js +3 -1
  126. package/extensions/ProjectAws/EnsureCoreDeployedBeforeApiDeploy.js.map +1 -1
  127. package/extensions/ProjectAws/EnsureTelemetryEnabledForOss.d.ts +6 -2
  128. package/extensions/ProjectAws/EnsureTelemetryEnabledForOss.js +2 -1
  129. package/extensions/ProjectAws/EnsureTelemetryEnabledForOss.js.map +1 -1
  130. package/extensions/ProjectAws/TelemetryNoLongerNewUser.d.ts +2 -2
  131. package/extensions/ProjectAws/TelemetryNoLongerNewUser.js +1 -1
  132. package/extensions/ProjectAws/TelemetryNoLongerNewUser.js.map +1 -1
  133. package/extensions/ProjectAws/UploadAdminAppToS3.d.ts +4 -2
  134. package/extensions/ProjectAws/UploadAdminAppToS3.js +2 -2
  135. package/extensions/ProjectAws/UploadAdminAppToS3.js.map +1 -1
  136. package/extensions/ProjectAws/ValidateEncryptionBeforeDeploy.d.ts +5 -2
  137. package/extensions/ProjectAws/ValidateEncryptionBeforeDeploy.js +2 -1
  138. package/extensions/ProjectAws/ValidateEncryptionBeforeDeploy.js.map +1 -1
  139. package/extensions/ProjectAws/ValidateProductionPulumiState.d.ts +5 -2
  140. package/extensions/ProjectAws/ValidateProductionPulumiState.js +3 -1
  141. package/extensions/ProjectAws/ValidateProductionPulumiState.js.map +1 -1
  142. package/extensions/ProjectAws/definitions.js +5 -1
  143. package/extensions/ProjectAws/definitions.js.map +1 -1
  144. package/extensions/ProjectAws.js +2 -1
  145. package/extensions/ProjectAws.js.map +1 -1
  146. package/extensions/RegisterRoutesPulumi.js +2 -2
  147. package/extensions/RegisterRoutesPulumi.js.map +1 -1
  148. package/extensions/definitions.js +0 -2
  149. package/extensions/definitions.js.map +1 -1
  150. package/extensions/registerExtensionImplementations.js +2 -1
  151. package/extensions/registerExtensionImplementations.js.map +1 -1
  152. package/extensions/toApiGatewayPath.d.ts +2 -0
  153. package/extensions/toApiGatewayPath.js +6 -0
  154. package/extensions/toApiGatewayPath.js.map +1 -0
  155. package/features/DeployApp/DeployApp.d.ts +22 -0
  156. package/features/DeployApp/DeployApp.js +91 -0
  157. package/features/DeployApp/DeployApp.js.map +1 -0
  158. package/features/DeployApp/index.d.ts +1 -0
  159. package/features/DeployApp/index.js +1 -0
  160. package/features/DestroyApp/DestroyApp.d.ts +20 -0
  161. package/features/DestroyApp/DestroyApp.js +70 -0
  162. package/features/DestroyApp/DestroyApp.js.map +1 -0
  163. package/features/DestroyApp/index.d.ts +1 -0
  164. package/features/DestroyApp/index.js +1 -0
  165. package/features/ExportStack/ExportStack.d.ts +12 -0
  166. package/features/ExportStack/ExportStack.js +28 -0
  167. package/features/ExportStack/ExportStack.js.map +1 -0
  168. package/features/ExportStack/index.d.ts +1 -0
  169. package/features/ExportStack/index.js +1 -0
  170. package/features/GetAppOutput/GetAppOutput.d.ts +16 -0
  171. package/features/GetAppOutput/GetAppOutput.js +55 -0
  172. package/features/GetAppOutput/GetAppOutput.js.map +1 -0
  173. package/features/GetAppOutput/index.d.ts +1 -0
  174. package/features/GetAppOutput/index.js +1 -0
  175. package/features/GetAppStackOutput/GetAppStackOutput.d.ts +13 -0
  176. package/features/GetAppStackOutput/GetAppStackOutput.js +28 -0
  177. package/features/GetAppStackOutput/GetAppStackOutput.js.map +1 -0
  178. package/features/GetAppStackOutput/index.d.ts +1 -0
  179. package/features/GetAppStackOutput/index.js +1 -0
  180. package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.d.ts +8 -0
  181. package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js +26 -0
  182. package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js.map +1 -0
  183. package/features/GetPulumiResourceNamePrefix/index.d.ts +1 -0
  184. package/features/GetPulumiResourceNamePrefix/index.js +1 -0
  185. package/features/InvokeLambdaFunction.d.ts +1 -1
  186. package/features/InvokeLambdaFunction.js +1 -1
  187. package/features/InvokeLambdaFunction.js.map +1 -1
  188. package/features/RefreshApp/RefreshApp.d.ts +18 -0
  189. package/features/RefreshApp/RefreshApp.js +68 -0
  190. package/features/RefreshApp/RefreshApp.js.map +1 -0
  191. package/features/RefreshApp/index.d.ts +1 -0
  192. package/features/RefreshApp/index.js +1 -0
  193. package/features/RunPulumiCommand/RunPulumiCommand.d.ts +18 -0
  194. package/features/RunPulumiCommand/RunPulumiCommand.js +65 -0
  195. package/features/RunPulumiCommand/RunPulumiCommand.js.map +1 -0
  196. package/features/RunPulumiCommand/index.d.ts +1 -0
  197. package/features/RunPulumiCommand/index.js +1 -0
  198. package/features/Watch/AwsWatch.d.ts +9 -1
  199. package/features/Watch/AwsWatch.js +6 -2
  200. package/features/Watch/AwsWatch.js.map +1 -1
  201. package/features/Watch/getIotEndpoint.d.ts +2 -2
  202. package/features/Watch/getIotEndpoint.js.map +1 -1
  203. package/features/Watch/initInvocationForwarding.d.ts +9 -0
  204. package/features/Watch/initInvocationForwarding.js +91 -0
  205. package/features/Watch/initInvocationForwarding.js.map +1 -0
  206. package/features/Watch/localInvocationWorker.d.ts +1 -0
  207. package/features/Watch/localInvocationWorker.js +31 -0
  208. package/features/Watch/localInvocationWorker.js.map +1 -0
  209. package/features/Watch/replaceLambdaFunctions.d.ts +7 -3
  210. package/features/Watch/replaceLambdaFunctions.js.map +1 -1
  211. package/features/hooks/AdminAfterDeploy/AdminAfterDeploy.d.ts +7 -0
  212. package/features/hooks/AdminAfterDeploy/AdminAfterDeploy.js +25 -0
  213. package/features/hooks/AdminAfterDeploy/AdminAfterDeploy.js.map +1 -0
  214. package/features/hooks/AdminAfterDeploy/index.d.ts +1 -0
  215. package/features/hooks/AdminAfterDeploy/index.js +1 -0
  216. package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.d.ts +7 -0
  217. package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.js +25 -0
  218. package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.js.map +1 -0
  219. package/features/hooks/AdminBeforeDeploy/index.d.ts +1 -0
  220. package/features/hooks/AdminBeforeDeploy/index.js +1 -0
  221. package/features/hooks/AfterDeploy/AfterDeploy.d.ts +7 -0
  222. package/features/hooks/AfterDeploy/AfterDeploy.js +25 -0
  223. package/features/hooks/AfterDeploy/AfterDeploy.js.map +1 -0
  224. package/features/hooks/AfterDeploy/index.d.ts +1 -0
  225. package/features/hooks/AfterDeploy/index.js +1 -0
  226. package/features/hooks/ApiAfterDeploy/ApiAfterDeploy.d.ts +7 -0
  227. package/features/hooks/ApiAfterDeploy/ApiAfterDeploy.js +25 -0
  228. package/features/hooks/ApiAfterDeploy/ApiAfterDeploy.js.map +1 -0
  229. package/features/hooks/ApiAfterDeploy/index.d.ts +1 -0
  230. package/features/hooks/ApiAfterDeploy/index.js +1 -0
  231. package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.d.ts +7 -0
  232. package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.js +25 -0
  233. package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.js.map +1 -0
  234. package/features/hooks/ApiBeforeDeploy/index.d.ts +1 -0
  235. package/features/hooks/ApiBeforeDeploy/index.js +1 -0
  236. package/features/hooks/BeforeDeploy/BeforeDeploy.d.ts +7 -0
  237. package/features/hooks/BeforeDeploy/BeforeDeploy.js +25 -0
  238. package/features/hooks/BeforeDeploy/BeforeDeploy.js.map +1 -0
  239. package/features/hooks/BeforeDeploy/index.d.ts +1 -0
  240. package/features/hooks/BeforeDeploy/index.js +1 -0
  241. package/features/hooks/CoreAfterDeploy/CoreAfterDeploy.d.ts +7 -0
  242. package/features/hooks/CoreAfterDeploy/CoreAfterDeploy.js +25 -0
  243. package/features/hooks/CoreAfterDeploy/CoreAfterDeploy.js.map +1 -0
  244. package/features/hooks/CoreAfterDeploy/index.d.ts +1 -0
  245. package/features/hooks/CoreAfterDeploy/index.js +1 -0
  246. package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.d.ts +7 -0
  247. package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.js +25 -0
  248. package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.js.map +1 -0
  249. package/features/hooks/CoreBeforeDeploy/index.d.ts +1 -0
  250. package/features/hooks/CoreBeforeDeploy/index.js +1 -0
  251. package/index.d.ts +2 -0
  252. package/index.js +2 -0
  253. package/infra.js +2 -2
  254. package/infra.js.map +1 -1
  255. package/package.json +15 -12
  256. package/pulumi/apps/blueGreen/types.d.ts +2 -2
  257. package/pulumi/apps/syncSystem/types.d.ts +2 -2
  258. package/pulumi/getAwsProjectSdk.d.ts +2 -12
  259. package/pulumi/getAwsProjectSdk.js +2 -3
  260. package/pulumi/getAwsProjectSdk.js.map +1 -1
  261. package/pulumi/getStackOutput.d.ts +4 -5
  262. package/pulumi/getStackOutput.js.map +1 -1
  263. package/pulumi/types.d.ts +2 -2
  264. package/registerAwsProjectFeatures.js +38 -9
  265. package/registerAwsProjectFeatures.js.map +1 -1
  266. package/services/AdminStackOutputService.d.ts +1 -1
  267. package/services/AdminStackOutputService.js +1 -1
  268. package/services/AdminStackOutputService.js.map +1 -1
  269. package/services/ApiStackOutputService.d.ts +1 -1
  270. package/services/ApiStackOutputService.js +1 -1
  271. package/services/ApiStackOutputService.js.map +1 -1
  272. package/services/AwsDeployInitHostingSdkService/AwsDeployInitHostingSdkService.d.ts +10 -0
  273. package/services/AwsDeployInitHostingSdkService/AwsDeployInitHostingSdkService.js +30 -0
  274. package/services/AwsDeployInitHostingSdkService/AwsDeployInitHostingSdkService.js.map +1 -0
  275. package/services/AwsPulumiInitHostingSdkService/AwsPulumiInitHostingSdkService.d.ts +9 -0
  276. package/services/AwsPulumiInitHostingSdkService/AwsPulumiInitHostingSdkService.js +24 -0
  277. package/services/AwsPulumiInitHostingSdkService/AwsPulumiInitHostingSdkService.js.map +1 -0
  278. package/services/CoreStackOutputService.d.ts +1 -1
  279. package/services/CoreStackOutputService.js +1 -1
  280. package/services/CoreStackOutputService.js.map +1 -1
  281. package/services/GetPulumiService/GetPulumiService.d.ts +3 -1
  282. package/services/GetPulumiService/GetPulumiService.js +2 -1
  283. package/services/GetPulumiService/GetPulumiService.js.map +1 -1
  284. package/services/GetPulumiVersionService/GetPulumiVersionService.d.ts +5 -0
  285. package/services/GetPulumiVersionService/GetPulumiVersionService.js +46 -0
  286. package/services/GetPulumiVersionService/GetPulumiVersionService.js.map +1 -0
  287. package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.d.ts +14 -0
  288. package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.js +15 -0
  289. package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.js.map +1 -0
  290. package/services/IsRemotePulumiBackendService/index.d.ts +1 -0
  291. package/services/IsRemotePulumiBackendService/index.js +1 -0
  292. package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.d.ts +20 -0
  293. package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.js +63 -0
  294. package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.js.map +1 -0
  295. package/services/ListAppLambdaFunctionsService/index.d.ts +1 -0
  296. package/services/ListAppLambdaFunctionsService/index.js +1 -0
  297. package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.d.ts +8 -0
  298. package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.js +31 -0
  299. package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.js.map +1 -0
  300. package/services/ListDeployedEnvironmentsService/index.d.ts +1 -0
  301. package/services/ListDeployedEnvironmentsService/index.js +1 -0
  302. package/services/PulumiExportService/PulumiExportService.d.ts +16 -0
  303. package/services/PulumiExportService/PulumiExportService.js +54 -0
  304. package/services/PulumiExportService/PulumiExportService.js.map +1 -0
  305. package/services/PulumiExportService/index.d.ts +1 -0
  306. package/services/PulumiExportService/index.js +1 -0
  307. package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.d.ts +5 -0
  308. package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.js +15 -0
  309. package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.js.map +1 -0
  310. package/services/PulumiGetConfigPassphraseService/index.d.ts +1 -0
  311. package/services/PulumiGetConfigPassphraseService/index.js +1 -0
  312. package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.d.ts +5 -0
  313. package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.js +15 -0
  314. package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.js.map +1 -0
  315. package/services/PulumiGetSecretsProviderService/index.d.ts +1 -0
  316. package/services/PulumiGetSecretsProviderService/index.js +1 -0
  317. package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.d.ts +16 -0
  318. package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js +69 -0
  319. package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js.map +1 -0
  320. package/services/PulumiGetStackOutputService/index.d.ts +1 -0
  321. package/services/PulumiGetStackOutputService/index.js +1 -0
  322. package/services/PulumiGetStackOutputService/mapStackOutput.d.ts +1 -0
  323. package/services/PulumiGetStackOutputService/mapStackOutput.js +22 -0
  324. package/services/PulumiGetStackOutputService/mapStackOutput.js.map +1 -0
  325. package/services/PulumiImportService/PulumiImportService.d.ts +13 -0
  326. package/services/PulumiImportService/PulumiImportService.js +64 -0
  327. package/services/PulumiImportService/PulumiImportService.js.map +1 -0
  328. package/services/PulumiImportService/index.d.ts +1 -0
  329. package/services/PulumiImportService/index.js +1 -0
  330. package/services/PulumiLoginService/PulumiLoginService.d.ts +13 -0
  331. package/services/PulumiLoginService/PulumiLoginService.js +59 -0
  332. package/services/PulumiLoginService/PulumiLoginService.js.map +1 -0
  333. package/services/PulumiLoginService/index.d.ts +1 -0
  334. package/services/PulumiLoginService/index.js +1 -0
  335. package/services/PulumiSelectStackService/PulumiSelectStackService.d.ts +20 -0
  336. package/services/PulumiSelectStackService/PulumiSelectStackService.js +106 -0
  337. package/services/PulumiSelectStackService/PulumiSelectStackService.js.map +1 -0
  338. package/services/PulumiSelectStackService/index.d.ts +1 -0
  339. package/services/PulumiSelectStackService/index.js +1 -0
  340. package/services/StackOutputCacheService/StackOutputCacheService.d.ts +21 -0
  341. package/services/StackOutputCacheService/StackOutputCacheService.js +90 -0
  342. package/services/StackOutputCacheService/StackOutputCacheService.js.map +1 -0
  343. package/services/StackOutputCacheService/index.d.ts +1 -0
  344. package/services/StackOutputCacheService/index.js +1 -0
  345. package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.d.ts +14 -0
  346. package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js +55 -0
  347. package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js.map +1 -0
  348. package/services/WatchedLambdaFunctionsService/index.d.ts +1 -0
  349. package/services/WatchedLambdaFunctionsService/index.js +1 -0
  350. package/utils/withPulumiConfigPassphrase.d.ts +1 -0
  351. package/utils/withPulumiConfigPassphrase.js +7 -0
  352. package/utils/withPulumiConfigPassphrase.js.map +1 -0
  353. package/extensions/routePath.d.ts +0 -20
  354. package/extensions/routePath.js +0 -13
  355. package/extensions/routePath.js.map +0 -1
@@ -0,0 +1,91 @@
1
+ import { createImplementation } from "@webiny/di";
2
+ import { DeployApp } from "@webiny/project-extensions-aws/abstractions/index.js";
3
+ import { BuildAppWorkspaceService, GetApp, GetProject, LoggerService, ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
4
+ import { GetPulumiService } from "../../abstractions/services/GetPulumiService.js";
5
+ import { PulumiGetSecretsProviderService } from "../../abstractions/services/PulumiGetSecretsProviderService.js";
6
+ import { PulumiSelectStackService } from "../../abstractions/services/PulumiSelectStackService.js";
7
+ import { createEnvConfiguration, withEnv, withEnvVariant, withProjectName, withRegion } from "@webiny/project/utils/env/index.js";
8
+ import { withPulumiConfigPassphrase } from "../../utils/withPulumiConfigPassphrase.js";
9
+ class DefaultDeployApp {
10
+ constructor(getApp, buildAppWorkspaceService, getProject, pulumiSelectStackService, getPulumiService, pulumiGetSecretsProviderService, logger, projectSdkParamsService){
11
+ this.getApp = getApp;
12
+ this.buildAppWorkspaceService = buildAppWorkspaceService;
13
+ this.getProject = getProject;
14
+ this.pulumiSelectStackService = pulumiSelectStackService;
15
+ this.getPulumiService = getPulumiService;
16
+ this.pulumiGetSecretsProviderService = pulumiGetSecretsProviderService;
17
+ this.logger = logger;
18
+ this.projectSdkParamsService = projectSdkParamsService;
19
+ }
20
+ async execute(params) {
21
+ await this.buildAppWorkspaceService.execute(params.app);
22
+ const app = this.getApp.execute(params.app);
23
+ await this.pulumiSelectStackService.execute(app);
24
+ const pulumi = await this.getPulumiService.execute({
25
+ app
26
+ });
27
+ const project = await this.getProject.execute();
28
+ const sdkParams = this.projectSdkParamsService.get();
29
+ const env = createEnvConfiguration({
30
+ configurations: [
31
+ withRegion({
32
+ region: sdkParams.region
33
+ }),
34
+ withEnv({
35
+ env: sdkParams.env
36
+ }),
37
+ withEnvVariant({
38
+ variant: sdkParams.variant
39
+ }),
40
+ withProjectName({
41
+ project
42
+ }),
43
+ withPulumiConfigPassphrase()
44
+ ]
45
+ });
46
+ const secretsProvider = this.pulumiGetSecretsProviderService.execute();
47
+ const pulumiProcess = params.preview ? pulumi.run({
48
+ command: "preview",
49
+ args: {
50
+ diff: true,
51
+ ...params.pulumiArgs
52
+ },
53
+ execa: {
54
+ env
55
+ }
56
+ }) : pulumi.run({
57
+ command: "up",
58
+ args: {
59
+ yes: true,
60
+ skipPreview: true,
61
+ secretsProvider,
62
+ ...params.pulumiArgs
63
+ },
64
+ execa: {
65
+ env
66
+ }
67
+ });
68
+ let output = Promise.resolve();
69
+ if (params.output) output = params.output(pulumiProcess);
70
+ else this.logger.info("No output function provided, skipping output.");
71
+ await pulumiProcess;
72
+ await output;
73
+ }
74
+ }
75
+ const deployApp = createImplementation({
76
+ abstraction: DeployApp,
77
+ implementation: DefaultDeployApp,
78
+ dependencies: [
79
+ GetApp,
80
+ BuildAppWorkspaceService,
81
+ GetProject,
82
+ PulumiSelectStackService,
83
+ GetPulumiService,
84
+ PulumiGetSecretsProviderService,
85
+ LoggerService,
86
+ ProjectSdkParamsService
87
+ ]
88
+ });
89
+ export { DefaultDeployApp, deployApp };
90
+
91
+ //# sourceMappingURL=DeployApp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/DeployApp/DeployApp.js","sources":["../../../src/features/DeployApp/DeployApp.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { DeployApp } from \"@webiny/project-extensions-aws/abstractions/index.js\";\nimport { BuildAppWorkspaceService } from \"@webiny/project/abstractions/index.js\";\nimport { GetApp } from \"@webiny/project/abstractions/index.js\";\nimport { GetProject } from \"@webiny/project/abstractions/index.js\";\nimport { LoggerService } from \"@webiny/project/abstractions/index.js\";\nimport { ProjectSdkParamsService } from \"@webiny/project/abstractions/index.js\";\nimport { GetPulumiService } from \"~/abstractions/services/GetPulumiService.js\";\nimport { PulumiGetSecretsProviderService } from \"~/abstractions/services/PulumiGetSecretsProviderService.js\";\nimport { PulumiSelectStackService } from \"~/abstractions/services/PulumiSelectStackService.js\";\nimport { createEnvConfiguration } from \"@webiny/project/utils/env/index.js\";\nimport { withEnv } from \"@webiny/project/utils/env/index.js\";\nimport { withEnvVariant } from \"@webiny/project/utils/env/index.js\";\nimport { withProjectName } from \"@webiny/project/utils/env/index.js\";\nimport { withRegion } from \"@webiny/project/utils/env/index.js\";\nimport { withPulumiConfigPassphrase } from \"~/utils/withPulumiConfigPassphrase.js\";\n\nexport class DefaultDeployApp implements DeployApp.Interface {\n constructor(\n private getApp: GetApp.Interface,\n private buildAppWorkspaceService: BuildAppWorkspaceService.Interface,\n private getProject: GetProject.Interface,\n private pulumiSelectStackService: PulumiSelectStackService.Interface,\n private getPulumiService: GetPulumiService.Interface,\n private pulumiGetSecretsProviderService: PulumiGetSecretsProviderService.Interface,\n private logger: LoggerService.Interface,\n private projectSdkParamsService: ProjectSdkParamsService.Interface\n ) {}\n\n async execute(params: DeployApp.Params) {\n await this.buildAppWorkspaceService.execute(params.app);\n\n const app = this.getApp.execute(params.app);\n\n await this.pulumiSelectStackService.execute(app);\n\n // A Pulumi refresh might be executed before the deploy. For example,\n // this is needed if the user run the watch command prior to the deploy.\n // await executeRefresh(commandParams);\n\n const pulumi = await this.getPulumiService.execute({ app });\n const project = await this.getProject.execute();\n const sdkParams = this.projectSdkParamsService.get();\n\n const env = createEnvConfiguration({\n configurations: [\n withRegion({ region: sdkParams.region }),\n withEnv({ env: sdkParams.env }),\n withEnvVariant({ variant: sdkParams.variant }),\n withProjectName({ project }),\n withPulumiConfigPassphrase()\n ]\n });\n\n const secretsProvider = this.pulumiGetSecretsProviderService.execute();\n\n const pulumiProcess = params.preview\n ? pulumi.run({\n command: \"preview\",\n args: {\n diff: true,\n\n // Preview command does not accept \"--secrets-provider\" argument.\n // secretsProvider: PULUMI_SECRETS_PROVIDER,\n\n ...params.pulumiArgs\n },\n execa: { env }\n })\n : pulumi.run({\n command: \"up\",\n args: {\n yes: true,\n skipPreview: true,\n secretsProvider,\n ...params.pulumiArgs\n },\n execa: { env }\n });\n\n // If custom output function is provided, use it. While doing so, we must wait\n // for it to resolve before finishing the build process.\n let output = Promise.resolve();\n if (params.output) {\n output = params.output(pulumiProcess);\n } else {\n this.logger.info(`No output function provided, skipping output.`);\n }\n\n // Promise is returned so that the caller can await it if needed.\n await pulumiProcess;\n await output;\n }\n}\n\nexport const deployApp = createImplementation({\n abstraction: DeployApp,\n implementation: DefaultDeployApp,\n dependencies: [\n GetApp,\n BuildAppWorkspaceService,\n GetProject,\n PulumiSelectStackService,\n GetPulumiService,\n PulumiGetSecretsProviderService,\n LoggerService,\n ProjectSdkParamsService\n ]\n});\n"],"names":["DefaultDeployApp","getApp","buildAppWorkspaceService","getProject","pulumiSelectStackService","getPulumiService","pulumiGetSecretsProviderService","logger","projectSdkParamsService","params","app","pulumi","project","sdkParams","env","createEnvConfiguration","withRegion","withEnv","withEnvVariant","withProjectName","withPulumiConfigPassphrase","secretsProvider","pulumiProcess","output","Promise","deployApp","createImplementation","DeployApp","GetApp","BuildAppWorkspaceService","GetProject","PulumiSelectStackService","GetPulumiService","PulumiGetSecretsProviderService","LoggerService","ProjectSdkParamsService"],"mappings":";;;;;;;;AAiBO,MAAMA;IACT,YACYC,MAAwB,EACxBC,wBAA4D,EAC5DC,UAAgC,EAChCC,wBAA4D,EAC5DC,gBAA4C,EAC5CC,+BAA0E,EAC1EC,MAA+B,EAC/BC,uBAA0D,CACpE;aARUP,MAAM,GAANA;aACAC,wBAAwB,GAAxBA;aACAC,UAAU,GAAVA;aACAC,wBAAwB,GAAxBA;aACAC,gBAAgB,GAAhBA;aACAC,+BAA+B,GAA/BA;aACAC,MAAM,GAANA;aACAC,uBAAuB,GAAvBA;IACT;IAEH,MAAM,QAAQC,MAAwB,EAAE;QACpC,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACA,OAAO,GAAG;QAEtD,MAAMC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAACD,OAAO,GAAG;QAE1C,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACC;QAM5C,MAAMC,SAAS,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;YAAED;QAAI;QACzD,MAAME,UAAU,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO;QAC7C,MAAMC,YAAY,IAAI,CAAC,uBAAuB,CAAC,GAAG;QAElD,MAAMC,MAAMC,uBAAuB;YAC/B,gBAAgB;gBACZC,WAAW;oBAAE,QAAQH,UAAU,MAAM;gBAAC;gBACtCI,QAAQ;oBAAE,KAAKJ,UAAU,GAAG;gBAAC;gBAC7BK,eAAe;oBAAE,SAASL,UAAU,OAAO;gBAAC;gBAC5CM,gBAAgB;oBAAEP;gBAAQ;gBAC1BQ;aACH;QACL;QAEA,MAAMC,kBAAkB,IAAI,CAAC,+BAA+B,CAAC,OAAO;QAEpE,MAAMC,gBAAgBb,OAAO,OAAO,GAC9BE,OAAO,GAAG,CAAC;YACP,SAAS;YACT,MAAM;gBACF,MAAM;gBAKN,GAAGF,OAAO,UAAU;YACxB;YACA,OAAO;gBAAEK;YAAI;QACjB,KACAH,OAAO,GAAG,CAAC;YACP,SAAS;YACT,MAAM;gBACF,KAAK;gBACL,aAAa;gBACbU;gBACA,GAAGZ,OAAO,UAAU;YACxB;YACA,OAAO;gBAAEK;YAAI;QACjB;QAIN,IAAIS,SAASC,QAAQ,OAAO;QAC5B,IAAIf,OAAO,MAAM,EACbc,SAASd,OAAO,MAAM,CAACa;aAEvB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;QAIrB,MAAMA;QACN,MAAMC;IACV;AACJ;AAEO,MAAME,YAAYC,qBAAqB;IAC1C,aAAaC;IACb,gBAAgB3B;IAChB,cAAc;QACV4B;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;KACH;AACL"}
@@ -0,0 +1 @@
1
+ export * from "./DeployApp.js";
@@ -0,0 +1 @@
1
+ export * from "./DeployApp.js";
@@ -0,0 +1,20 @@
1
+ import { DestroyApp } from "../../abstractions/features/DestroyApp.js";
2
+ import { BuildAppWorkspaceService } from "@webiny/project/abstractions/index.js";
3
+ import { GetApp } from "@webiny/project/abstractions/index.js";
4
+ import { GetProject } from "@webiny/project/abstractions/index.js";
5
+ import { ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
6
+ import { GetPulumiService } from "../../abstractions/services/GetPulumiService.js";
7
+ import { PulumiSelectStackService } from "../../abstractions/services/PulumiSelectStackService.js";
8
+ export declare class DefaultDestroyApp implements DestroyApp.Interface {
9
+ private getApp;
10
+ private buildAppWorkspaceService;
11
+ private getProject;
12
+ private pulumiSelectStackService;
13
+ private getPulumiService;
14
+ private projectSdkParamsService;
15
+ constructor(getApp: GetApp.Interface, buildAppWorkspaceService: BuildAppWorkspaceService.Interface, getProject: GetProject.Interface, pulumiSelectStackService: PulumiSelectStackService.Interface, getPulumiService: GetPulumiService.Interface, projectSdkParamsService: ProjectSdkParamsService.Interface);
16
+ execute(params: DestroyApp.Params): Promise<{
17
+ pulumiProcess: import("@webiny/pulumi-sdk/Pulumi").PulumiProcess;
18
+ }>;
19
+ }
20
+ export declare const destroyApp: import("@webiny/di").Implementation<typeof DefaultDestroyApp>;
@@ -0,0 +1,70 @@
1
+ import { createImplementation } from "@webiny/di";
2
+ import { DestroyApp } from "../../abstractions/features/DestroyApp.js";
3
+ import { BuildAppWorkspaceService, GetApp, GetProject, ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
4
+ import { GetPulumiService } from "../../abstractions/services/GetPulumiService.js";
5
+ import { PulumiSelectStackService } from "../../abstractions/services/PulumiSelectStackService.js";
6
+ import { createEnvConfiguration, withEnv, withEnvVariant, withProjectName, withRegion } from "@webiny/project/utils/env/index.js";
7
+ import { withPulumiConfigPassphrase } from "../../utils/withPulumiConfigPassphrase.js";
8
+ class DefaultDestroyApp {
9
+ constructor(getApp, buildAppWorkspaceService, getProject, pulumiSelectStackService, getPulumiService, projectSdkParamsService){
10
+ this.getApp = getApp;
11
+ this.buildAppWorkspaceService = buildAppWorkspaceService;
12
+ this.getProject = getProject;
13
+ this.pulumiSelectStackService = pulumiSelectStackService;
14
+ this.getPulumiService = getPulumiService;
15
+ this.projectSdkParamsService = projectSdkParamsService;
16
+ }
17
+ async execute(params) {
18
+ await this.buildAppWorkspaceService.execute(params.app);
19
+ const app = this.getApp.execute(params.app);
20
+ await this.pulumiSelectStackService.execute(app);
21
+ const pulumi = await this.getPulumiService.execute({
22
+ app
23
+ });
24
+ const project = await this.getProject.execute();
25
+ const sdkParams = this.projectSdkParamsService.get();
26
+ const env = createEnvConfiguration({
27
+ configurations: [
28
+ withRegion({
29
+ region: sdkParams.region
30
+ }),
31
+ withEnv({
32
+ env: sdkParams.env
33
+ }),
34
+ withEnvVariant({
35
+ variant: sdkParams.variant
36
+ }),
37
+ withPulumiConfigPassphrase(),
38
+ withProjectName({
39
+ project
40
+ })
41
+ ]
42
+ });
43
+ return {
44
+ pulumiProcess: pulumi.run({
45
+ command: "destroy",
46
+ args: {
47
+ yes: true
48
+ },
49
+ execa: {
50
+ env
51
+ }
52
+ })
53
+ };
54
+ }
55
+ }
56
+ const destroyApp = createImplementation({
57
+ abstraction: DestroyApp,
58
+ implementation: DefaultDestroyApp,
59
+ dependencies: [
60
+ GetApp,
61
+ BuildAppWorkspaceService,
62
+ GetProject,
63
+ PulumiSelectStackService,
64
+ GetPulumiService,
65
+ ProjectSdkParamsService
66
+ ]
67
+ });
68
+ export { DefaultDestroyApp, destroyApp };
69
+
70
+ //# sourceMappingURL=DestroyApp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/DestroyApp/DestroyApp.js","sources":["../../../src/features/DestroyApp/DestroyApp.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { DestroyApp } from \"~/abstractions/features/DestroyApp.js\";\nimport { BuildAppWorkspaceService } from \"@webiny/project/abstractions/index.js\";\nimport { GetApp } from \"@webiny/project/abstractions/index.js\";\nimport { GetProject } from \"@webiny/project/abstractions/index.js\";\nimport { ProjectSdkParamsService } from \"@webiny/project/abstractions/index.js\";\nimport { GetPulumiService } from \"~/abstractions/services/GetPulumiService.js\";\nimport { PulumiSelectStackService } from \"~/abstractions/services/PulumiSelectStackService.js\";\nimport { createEnvConfiguration } from \"@webiny/project/utils/env/index.js\";\nimport { withEnv } from \"@webiny/project/utils/env/index.js\";\nimport { withEnvVariant } from \"@webiny/project/utils/env/index.js\";\nimport { withProjectName } from \"@webiny/project/utils/env/index.js\";\nimport { withRegion } from \"@webiny/project/utils/env/index.js\";\nimport { withPulumiConfigPassphrase } from \"~/utils/withPulumiConfigPassphrase.js\";\n\nexport class DefaultDestroyApp implements DestroyApp.Interface {\n constructor(\n private getApp: GetApp.Interface,\n private buildAppWorkspaceService: BuildAppWorkspaceService.Interface,\n private getProject: GetProject.Interface,\n private pulumiSelectStackService: PulumiSelectStackService.Interface,\n private getPulumiService: GetPulumiService.Interface,\n private projectSdkParamsService: ProjectSdkParamsService.Interface\n ) {}\n\n async execute(params: DestroyApp.Params) {\n await this.buildAppWorkspaceService.execute(params.app);\n\n const app = this.getApp.execute(params.app);\n\n await this.pulumiSelectStackService.execute(app);\n\n const pulumi = await this.getPulumiService.execute({ app });\n const project = await this.getProject.execute();\n const sdkParams = this.projectSdkParamsService.get();\n\n const env = createEnvConfiguration({\n configurations: [\n withRegion({ region: sdkParams.region }),\n withEnv({ env: sdkParams.env }),\n withEnvVariant({ variant: sdkParams.variant }),\n withPulumiConfigPassphrase(),\n withProjectName({ project })\n ]\n });\n\n return {\n pulumiProcess: pulumi.run({\n command: \"destroy\",\n args: {\n yes: true\n },\n execa: { env }\n })\n };\n }\n}\n\nexport const destroyApp = createImplementation({\n abstraction: DestroyApp,\n implementation: DefaultDestroyApp,\n dependencies: [\n GetApp,\n BuildAppWorkspaceService,\n GetProject,\n PulumiSelectStackService,\n GetPulumiService,\n ProjectSdkParamsService\n ]\n});\n"],"names":["DefaultDestroyApp","getApp","buildAppWorkspaceService","getProject","pulumiSelectStackService","getPulumiService","projectSdkParamsService","params","app","pulumi","project","sdkParams","env","createEnvConfiguration","withRegion","withEnv","withEnvVariant","withPulumiConfigPassphrase","withProjectName","destroyApp","createImplementation","DestroyApp","GetApp","BuildAppWorkspaceService","GetProject","PulumiSelectStackService","GetPulumiService","ProjectSdkParamsService"],"mappings":";;;;;;;AAeO,MAAMA;IACT,YACYC,MAAwB,EACxBC,wBAA4D,EAC5DC,UAAgC,EAChCC,wBAA4D,EAC5DC,gBAA4C,EAC5CC,uBAA0D,CACpE;aANUL,MAAM,GAANA;aACAC,wBAAwB,GAAxBA;aACAC,UAAU,GAAVA;aACAC,wBAAwB,GAAxBA;aACAC,gBAAgB,GAAhBA;aACAC,uBAAuB,GAAvBA;IACT;IAEH,MAAM,QAAQC,MAAyB,EAAE;QACrC,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACA,OAAO,GAAG;QAEtD,MAAMC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAACD,OAAO,GAAG;QAE1C,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACC;QAE5C,MAAMC,SAAS,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;YAAED;QAAI;QACzD,MAAME,UAAU,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO;QAC7C,MAAMC,YAAY,IAAI,CAAC,uBAAuB,CAAC,GAAG;QAElD,MAAMC,MAAMC,uBAAuB;YAC/B,gBAAgB;gBACZC,WAAW;oBAAE,QAAQH,UAAU,MAAM;gBAAC;gBACtCI,QAAQ;oBAAE,KAAKJ,UAAU,GAAG;gBAAC;gBAC7BK,eAAe;oBAAE,SAASL,UAAU,OAAO;gBAAC;gBAC5CM;gBACAC,gBAAgB;oBAAER;gBAAQ;aAC7B;QACL;QAEA,OAAO;YACH,eAAeD,OAAO,GAAG,CAAC;gBACtB,SAAS;gBACT,MAAM;oBACF,KAAK;gBACT;gBACA,OAAO;oBAAEG;gBAAI;YACjB;QACJ;IACJ;AACJ;AAEO,MAAMO,aAAaC,qBAAqB;IAC3C,aAAaC;IACb,gBAAgBrB;IAChB,cAAc;QACVsB;QACAC;QACAC;QACAC;QACAC;QACAC;KACH;AACL"}
@@ -0,0 +1 @@
1
+ export * from "./DestroyApp.js";
@@ -0,0 +1 @@
1
+ export * from "./DestroyApp.js";
@@ -0,0 +1,12 @@
1
+ import { BuildAppWorkspaceService } from "@webiny/project/abstractions/index.js";
2
+ import { GetApp } from "@webiny/project/abstractions/index.js";
3
+ import { ExportStack } from "../../abstractions/features/ExportStack.js";
4
+ import { PulumiExportService } from "../../abstractions/services/PulumiExportService.js";
5
+ export declare class DefaultExportStack implements ExportStack.Interface {
6
+ private getApp;
7
+ private buildAppWorkspaceService;
8
+ private pulumiExportService;
9
+ constructor(getApp: GetApp.Interface, buildAppWorkspaceService: BuildAppWorkspaceService.Interface, pulumiExportService: PulumiExportService.Interface);
10
+ execute<TExport extends Record<string, any> = Record<string, string>>(params: ExportStack.Params): Promise<TExport | null>;
11
+ }
12
+ export declare const exportStack: import("@webiny/di").Implementation<typeof DefaultExportStack>;
@@ -0,0 +1,28 @@
1
+ import { createImplementation } from "@webiny/di";
2
+ import { BuildAppWorkspaceService, GetApp } from "@webiny/project/abstractions/index.js";
3
+ import { ExportStack } from "../../abstractions/features/ExportStack.js";
4
+ import { PulumiExportService } from "../../abstractions/services/PulumiExportService.js";
5
+ class DefaultExportStack {
6
+ constructor(getApp, buildAppWorkspaceService, pulumiExportService){
7
+ this.getApp = getApp;
8
+ this.buildAppWorkspaceService = buildAppWorkspaceService;
9
+ this.pulumiExportService = pulumiExportService;
10
+ }
11
+ async execute(params) {
12
+ await this.buildAppWorkspaceService.execute(params.app);
13
+ const app = this.getApp.execute(params.app);
14
+ return this.pulumiExportService.execute(app);
15
+ }
16
+ }
17
+ const exportStack = createImplementation({
18
+ abstraction: ExportStack,
19
+ implementation: DefaultExportStack,
20
+ dependencies: [
21
+ GetApp,
22
+ BuildAppWorkspaceService,
23
+ PulumiExportService
24
+ ]
25
+ });
26
+ export { DefaultExportStack, exportStack };
27
+
28
+ //# sourceMappingURL=ExportStack.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/ExportStack/ExportStack.js","sources":["../../../src/features/ExportStack/ExportStack.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { BuildAppWorkspaceService } from \"@webiny/project/abstractions/index.js\";\nimport { GetApp } from \"@webiny/project/abstractions/index.js\";\nimport { ExportStack } from \"~/abstractions/features/ExportStack.js\";\nimport { PulumiExportService } from \"~/abstractions/services/PulumiExportService.js\";\n\nexport class DefaultExportStack implements ExportStack.Interface {\n constructor(\n private getApp: GetApp.Interface,\n private buildAppWorkspaceService: BuildAppWorkspaceService.Interface,\n private pulumiExportService: PulumiExportService.Interface\n ) {}\n\n async execute<TExport extends Record<string, any> = Record<string, string>>(\n params: ExportStack.Params\n ) {\n await this.buildAppWorkspaceService.execute(params.app);\n\n const app = this.getApp.execute(params.app);\n return this.pulumiExportService.execute<TExport>(app);\n }\n}\n\nexport const exportStack = createImplementation({\n abstraction: ExportStack,\n implementation: DefaultExportStack,\n dependencies: [GetApp, BuildAppWorkspaceService, PulumiExportService]\n});\n"],"names":["DefaultExportStack","getApp","buildAppWorkspaceService","pulumiExportService","params","app","exportStack","createImplementation","ExportStack","GetApp","BuildAppWorkspaceService","PulumiExportService"],"mappings":";;;;AAMO,MAAMA;IACT,YACYC,MAAwB,EACxBC,wBAA4D,EAC5DC,mBAAkD,CAC5D;aAHUF,MAAM,GAANA;aACAC,wBAAwB,GAAxBA;aACAC,mBAAmB,GAAnBA;IACT;IAEH,MAAM,QACFC,MAA0B,EAC5B;QACE,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACA,OAAO,GAAG;QAEtD,MAAMC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAACD,OAAO,GAAG;QAC1C,OAAO,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAUC;IACrD;AACJ;AAEO,MAAMC,cAAcC,qBAAqB;IAC5C,aAAaC;IACb,gBAAgBR;IAChB,cAAc;QAACS;QAAQC;QAA0BC;KAAoB;AACzE"}
@@ -0,0 +1 @@
1
+ export * from "./ExportStack.js";
@@ -0,0 +1 @@
1
+ export * from "./ExportStack.js";
@@ -0,0 +1,16 @@
1
+ import { BuildAppWorkspaceService } from "@webiny/project/abstractions/index.js";
2
+ import { GetApp } from "@webiny/project/abstractions/index.js";
3
+ import { GetAppOutput } from "../../abstractions/features/GetAppOutput.js";
4
+ import { GetPulumiService } from "../../abstractions/services/GetPulumiService.js";
5
+ import { PulumiSelectStackService } from "../../abstractions/services/PulumiSelectStackService.js";
6
+ export declare class DefaultGetAppOutput implements GetAppOutput.Interface {
7
+ private getApp;
8
+ private buildAppWorkspaceService;
9
+ private pulumiSelectStackService;
10
+ private getPulumiService;
11
+ constructor(getApp: GetApp.Interface, buildAppWorkspaceService: BuildAppWorkspaceService.Interface, pulumiSelectStackService: PulumiSelectStackService.Interface, getPulumiService: GetPulumiService.Interface);
12
+ execute(params: GetAppOutput.Params): Promise<{
13
+ pulumiProcess: import("@webiny/pulumi-sdk/Pulumi").PulumiProcess;
14
+ }>;
15
+ }
16
+ export declare const getAppOutput: import("@webiny/di").Implementation<typeof DefaultGetAppOutput>;
@@ -0,0 +1,55 @@
1
+ import { createImplementation } from "@webiny/di";
2
+ import { BuildAppWorkspaceService, GetApp } from "@webiny/project/abstractions/index.js";
3
+ import { GetAppOutput } from "../../abstractions/features/GetAppOutput.js";
4
+ import { GetPulumiService } from "../../abstractions/services/GetPulumiService.js";
5
+ import { PulumiSelectStackService } from "../../abstractions/services/PulumiSelectStackService.js";
6
+ import { createEnvConfiguration } from "@webiny/project/utils/env/index.js";
7
+ import { withPulumiConfigPassphrase } from "../../utils/withPulumiConfigPassphrase.js";
8
+ class DefaultGetAppOutput {
9
+ constructor(getApp, buildAppWorkspaceService, pulumiSelectStackService, getPulumiService){
10
+ this.getApp = getApp;
11
+ this.buildAppWorkspaceService = buildAppWorkspaceService;
12
+ this.pulumiSelectStackService = pulumiSelectStackService;
13
+ this.getPulumiService = getPulumiService;
14
+ }
15
+ async execute(params) {
16
+ await this.buildAppWorkspaceService.execute(params.app);
17
+ const app = this.getApp.execute(params.app);
18
+ await this.pulumiSelectStackService.execute(app);
19
+ const pulumi = await this.getPulumiService.execute({
20
+ app
21
+ });
22
+ const env = createEnvConfiguration({
23
+ configurations: [
24
+ withPulumiConfigPassphrase()
25
+ ]
26
+ });
27
+ return {
28
+ pulumiProcess: pulumi.run({
29
+ command: [
30
+ "stack",
31
+ "output"
32
+ ],
33
+ args: {
34
+ json: params.json || false
35
+ },
36
+ execa: {
37
+ env
38
+ }
39
+ })
40
+ };
41
+ }
42
+ }
43
+ const getAppOutput = createImplementation({
44
+ abstraction: GetAppOutput,
45
+ implementation: DefaultGetAppOutput,
46
+ dependencies: [
47
+ GetApp,
48
+ BuildAppWorkspaceService,
49
+ PulumiSelectStackService,
50
+ GetPulumiService
51
+ ]
52
+ });
53
+ export { DefaultGetAppOutput, getAppOutput };
54
+
55
+ //# sourceMappingURL=GetAppOutput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/GetAppOutput/GetAppOutput.js","sources":["../../../src/features/GetAppOutput/GetAppOutput.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { BuildAppWorkspaceService } from \"@webiny/project/abstractions/index.js\";\nimport { GetApp } from \"@webiny/project/abstractions/index.js\";\nimport { GetAppOutput } from \"~/abstractions/features/GetAppOutput.js\";\nimport { GetPulumiService } from \"~/abstractions/services/GetPulumiService.js\";\nimport { PulumiSelectStackService } from \"~/abstractions/services/PulumiSelectStackService.js\";\nimport { createEnvConfiguration } from \"@webiny/project/utils/env/index.js\";\nimport { withPulumiConfigPassphrase } from \"~/utils/withPulumiConfigPassphrase.js\";\n\nexport class DefaultGetAppOutput implements GetAppOutput.Interface {\n constructor(\n private getApp: GetApp.Interface,\n private buildAppWorkspaceService: BuildAppWorkspaceService.Interface,\n private pulumiSelectStackService: PulumiSelectStackService.Interface,\n private getPulumiService: GetPulumiService.Interface\n ) {}\n\n async execute(params: GetAppOutput.Params) {\n await this.buildAppWorkspaceService.execute(params.app);\n\n const app = this.getApp.execute(params.app);\n\n await this.pulumiSelectStackService.execute(app);\n\n const pulumi = await this.getPulumiService.execute({ app });\n\n const env = createEnvConfiguration({\n configurations: [withPulumiConfigPassphrase()]\n });\n\n return {\n pulumiProcess: pulumi.run({\n command: [\"stack\", \"output\"],\n args: {\n json: params.json || false\n },\n execa: { env }\n })\n };\n }\n}\n\nexport const getAppOutput = createImplementation({\n abstraction: GetAppOutput,\n implementation: DefaultGetAppOutput,\n dependencies: [GetApp, BuildAppWorkspaceService, PulumiSelectStackService, GetPulumiService]\n});\n"],"names":["DefaultGetAppOutput","getApp","buildAppWorkspaceService","pulumiSelectStackService","getPulumiService","params","app","pulumi","env","createEnvConfiguration","withPulumiConfigPassphrase","getAppOutput","createImplementation","GetAppOutput","GetApp","BuildAppWorkspaceService","PulumiSelectStackService","GetPulumiService"],"mappings":";;;;;;;AASO,MAAMA;IACT,YACYC,MAAwB,EACxBC,wBAA4D,EAC5DC,wBAA4D,EAC5DC,gBAA4C,CACtD;aAJUH,MAAM,GAANA;aACAC,wBAAwB,GAAxBA;aACAC,wBAAwB,GAAxBA;aACAC,gBAAgB,GAAhBA;IACT;IAEH,MAAM,QAAQC,MAA2B,EAAE;QACvC,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACA,OAAO,GAAG;QAEtD,MAAMC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAACD,OAAO,GAAG;QAE1C,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACC;QAE5C,MAAMC,SAAS,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;YAAED;QAAI;QAEzD,MAAME,MAAMC,uBAAuB;YAC/B,gBAAgB;gBAACC;aAA6B;QAClD;QAEA,OAAO;YACH,eAAeH,OAAO,GAAG,CAAC;gBACtB,SAAS;oBAAC;oBAAS;iBAAS;gBAC5B,MAAM;oBACF,MAAMF,OAAO,IAAI,IAAI;gBACzB;gBACA,OAAO;oBAAEG;gBAAI;YACjB;QACJ;IACJ;AACJ;AAEO,MAAMG,eAAeC,qBAAqB;IAC7C,aAAaC;IACb,gBAAgBb;IAChB,cAAc;QAACc;QAAQC;QAA0BC;QAA0BC;KAAiB;AAChG"}
@@ -0,0 +1 @@
1
+ export * from "./GetAppOutput.js";
@@ -0,0 +1 @@
1
+ export * from "./GetAppOutput.js";
@@ -0,0 +1,13 @@
1
+ import { BuildAppWorkspaceService } from "@webiny/project/abstractions/index.js";
2
+ import { GetApp } from "@webiny/project/abstractions/index.js";
3
+ import { GetAppStackOutput } from "../../abstractions/features/GetAppStackOutput.js";
4
+ import { PulumiGetStackOutputService } from "../../abstractions/services/PulumiGetStackOutputService.js";
5
+ import { type AppName } from "@webiny/project/abstractions/types.js";
6
+ export declare class DefaultGetAppStackOutput implements GetAppStackOutput.Interface {
7
+ private getAppService;
8
+ private buildAppWorkspaceService;
9
+ private pulumiGetStackOutputService;
10
+ constructor(getAppService: GetApp.Interface, buildAppWorkspaceService: BuildAppWorkspaceService.Interface, pulumiGetStackOutputService: PulumiGetStackOutputService.Interface);
11
+ execute<TOutput extends GetAppStackOutput.StackOutput = GetAppStackOutput.StackOutput>(appName: AppName): Promise<TOutput | null>;
12
+ }
13
+ export declare const getAppStackOutput: import("@webiny/di").Implementation<typeof DefaultGetAppStackOutput>;
@@ -0,0 +1,28 @@
1
+ import { createImplementation } from "@webiny/di";
2
+ import { BuildAppWorkspaceService, GetAppService } from "@webiny/project/abstractions/index.js";
3
+ import { GetAppStackOutput } from "../../abstractions/features/GetAppStackOutput.js";
4
+ import { PulumiGetStackOutputService } from "../../abstractions/services/PulumiGetStackOutputService.js";
5
+ class DefaultGetAppStackOutput {
6
+ constructor(getAppService, buildAppWorkspaceService, pulumiGetStackOutputService){
7
+ this.getAppService = getAppService;
8
+ this.buildAppWorkspaceService = buildAppWorkspaceService;
9
+ this.pulumiGetStackOutputService = pulumiGetStackOutputService;
10
+ }
11
+ async execute(appName) {
12
+ await this.buildAppWorkspaceService.execute(appName);
13
+ const app = this.getAppService.execute(appName);
14
+ return this.pulumiGetStackOutputService.execute(app);
15
+ }
16
+ }
17
+ const getAppStackOutput = createImplementation({
18
+ abstraction: GetAppStackOutput,
19
+ implementation: DefaultGetAppStackOutput,
20
+ dependencies: [
21
+ GetAppService,
22
+ BuildAppWorkspaceService,
23
+ PulumiGetStackOutputService
24
+ ]
25
+ });
26
+ export { DefaultGetAppStackOutput, getAppStackOutput };
27
+
28
+ //# sourceMappingURL=GetAppStackOutput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/GetAppStackOutput/GetAppStackOutput.js","sources":["../../../src/features/GetAppStackOutput/GetAppStackOutput.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { BuildAppWorkspaceService } from \"@webiny/project/abstractions/index.js\";\nimport { GetApp } from \"@webiny/project/abstractions/index.js\";\nimport { GetAppService } from \"@webiny/project/abstractions/index.js\";\nimport { GetAppStackOutput } from \"~/abstractions/features/GetAppStackOutput.js\";\nimport { PulumiGetStackOutputService } from \"~/abstractions/services/PulumiGetStackOutputService.js\";\nimport { type AppName } from \"@webiny/project/abstractions/types.js\";\n\nexport class DefaultGetAppStackOutput implements GetAppStackOutput.Interface {\n constructor(\n private getAppService: GetApp.Interface,\n private buildAppWorkspaceService: BuildAppWorkspaceService.Interface,\n private pulumiGetStackOutputService: PulumiGetStackOutputService.Interface\n ) {}\n\n async execute<TOutput extends GetAppStackOutput.StackOutput = GetAppStackOutput.StackOutput>(\n appName: AppName\n ) {\n await this.buildAppWorkspaceService.execute(appName);\n\n const app = this.getAppService.execute(appName);\n return this.pulumiGetStackOutputService.execute<TOutput>(app);\n }\n}\n\nexport const getAppStackOutput = createImplementation({\n abstraction: GetAppStackOutput,\n implementation: DefaultGetAppStackOutput,\n dependencies: [GetAppService, BuildAppWorkspaceService, PulumiGetStackOutputService]\n});\n"],"names":["DefaultGetAppStackOutput","getAppService","buildAppWorkspaceService","pulumiGetStackOutputService","appName","app","getAppStackOutput","createImplementation","GetAppStackOutput","GetAppService","BuildAppWorkspaceService","PulumiGetStackOutputService"],"mappings":";;;;AAQO,MAAMA;IACT,YACYC,aAA+B,EAC/BC,wBAA4D,EAC5DC,2BAAkE,CAC5E;aAHUF,aAAa,GAAbA;aACAC,wBAAwB,GAAxBA;aACAC,2BAA2B,GAA3BA;IACT;IAEH,MAAM,QACFC,OAAgB,EAClB;QACE,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACA;QAE5C,MAAMC,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,CAACD;QACvC,OAAO,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAUC;IAC7D;AACJ;AAEO,MAAMC,oBAAoBC,qBAAqB;IAClD,aAAaC;IACb,gBAAgBR;IAChB,cAAc;QAACS;QAAeC;QAA0BC;KAA4B;AACxF"}
@@ -0,0 +1 @@
1
+ export * from "./GetAppStackOutput.js";
@@ -0,0 +1 @@
1
+ export * from "./GetAppStackOutput.js";
@@ -0,0 +1,8 @@
1
+ import { GetProjectConfigService } from "@webiny/project/abstractions/index.js";
2
+ import { GetPulumiResourceNamePrefix } from "../../abstractions/features/GetPulumiResourceNamePrefix.js";
3
+ export declare class DefaultGetPulumiResourceNamePrefix implements GetPulumiResourceNamePrefix.Interface {
4
+ private getProjectConfigService;
5
+ constructor(getProjectConfigService: GetProjectConfigService.Interface);
6
+ execute(): Promise<string>;
7
+ }
8
+ export declare const getPulumiResourceNamePrefix: import("@webiny/di").Implementation<typeof DefaultGetPulumiResourceNamePrefix>;
@@ -0,0 +1,26 @@
1
+ import { createImplementation } from "@webiny/di";
2
+ import { GetProjectConfigService } from "@webiny/project/abstractions/index.js";
3
+ import { GetPulumiResourceNamePrefix } from "../../abstractions/features/GetPulumiResourceNamePrefix.js";
4
+ import { PulumiResourceNamePrefix } from "@webiny/project-extensions-aws/extensions/PulumiResourceNamePrefix.js";
5
+ class DefaultGetPulumiResourceNamePrefix {
6
+ constructor(getProjectConfigService){
7
+ this.getProjectConfigService = getProjectConfigService;
8
+ }
9
+ async execute() {
10
+ const projectConfig = await this.getProjectConfigService.execute();
11
+ let pulumiResourceNamePrefix = "wby-";
12
+ const [pulumiResourceNamePrefixExt] = projectConfig.extensionsByType(PulumiResourceNamePrefix);
13
+ if (pulumiResourceNamePrefixExt) pulumiResourceNamePrefix = pulumiResourceNamePrefixExt.params.prefix;
14
+ return pulumiResourceNamePrefix;
15
+ }
16
+ }
17
+ const getPulumiResourceNamePrefix = createImplementation({
18
+ abstraction: GetPulumiResourceNamePrefix,
19
+ implementation: DefaultGetPulumiResourceNamePrefix,
20
+ dependencies: [
21
+ GetProjectConfigService
22
+ ]
23
+ });
24
+ export { DefaultGetPulumiResourceNamePrefix, getPulumiResourceNamePrefix };
25
+
26
+ //# sourceMappingURL=GetPulumiResourceNamePrefix.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js","sources":["../../../src/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { GetProjectConfigService } from \"@webiny/project/abstractions/index.js\";\nimport { GetPulumiResourceNamePrefix } from \"~/abstractions/features/GetPulumiResourceNamePrefix.js\";\nimport { PulumiResourceNamePrefix as PulumiResourceNamePrefixExt } from \"@webiny/project-extensions-aws/extensions/PulumiResourceNamePrefix.js\";\n\nexport class DefaultGetPulumiResourceNamePrefix implements GetPulumiResourceNamePrefix.Interface {\n constructor(private getProjectConfigService: GetProjectConfigService.Interface) {}\n async execute() {\n const projectConfig = await this.getProjectConfigService.execute();\n\n let pulumiResourceNamePrefix = \"wby-\";\n const [pulumiResourceNamePrefixExt] = projectConfig.extensionsByType(\n PulumiResourceNamePrefixExt\n );\n\n if (pulumiResourceNamePrefixExt) {\n pulumiResourceNamePrefix = pulumiResourceNamePrefixExt.params.prefix;\n }\n\n return pulumiResourceNamePrefix;\n }\n}\n\nexport const getPulumiResourceNamePrefix = createImplementation({\n abstraction: GetPulumiResourceNamePrefix,\n implementation: DefaultGetPulumiResourceNamePrefix,\n dependencies: [GetProjectConfigService]\n});\n"],"names":["DefaultGetPulumiResourceNamePrefix","getProjectConfigService","projectConfig","pulumiResourceNamePrefix","pulumiResourceNamePrefixExt","PulumiResourceNamePrefixExt","getPulumiResourceNamePrefix","createImplementation","GetPulumiResourceNamePrefix","GetProjectConfigService"],"mappings":";;;;AAKO,MAAMA;IACT,YAAoBC,uBAA0D,CAAE;aAA5DA,uBAAuB,GAAvBA;IAA6D;IACjF,MAAM,UAAU;QACZ,MAAMC,gBAAgB,MAAM,IAAI,CAAC,uBAAuB,CAAC,OAAO;QAEhE,IAAIC,2BAA2B;QAC/B,MAAM,CAACC,4BAA4B,GAAGF,cAAc,gBAAgB,CAChEG;QAGJ,IAAID,6BACAD,2BAA2BC,4BAA4B,MAAM,CAAC,MAAM;QAGxE,OAAOD;IACX;AACJ;AAEO,MAAMG,8BAA8BC,qBAAqB;IAC5D,aAAaC;IACb,gBAAgBR;IAChB,cAAc;QAACS;KAAwB;AAC3C"}
@@ -0,0 +1 @@
1
+ export * from "./GetPulumiResourceNamePrefix.js";
@@ -0,0 +1 @@
1
+ export * from "./GetPulumiResourceNamePrefix.js";
@@ -1,4 +1,4 @@
1
- import { GetAppStackOutput } from "@webiny/project/abstractions/index.js";
1
+ import { GetAppStackOutput } from "../abstractions/features/GetAppStackOutput.js";
2
2
  import { InvokeLambdaFunction as InvokeLambdaFunctionAbstraction } from "@webiny/project-extensions-aws/abstractions/InvokeLambdaFunction.js";
3
3
  export declare class InvokeLambdaFunctionImpl implements InvokeLambdaFunctionAbstraction.Interface {
4
4
  private getAppStackOutput;
@@ -1,4 +1,4 @@
1
- import { GetAppStackOutput } from "@webiny/project/abstractions/index.js";
1
+ import { GetAppStackOutput } from "../abstractions/features/GetAppStackOutput.js";
2
2
  import { InvokeLambdaFunction } from "@webiny/project-extensions-aws/abstractions/InvokeLambdaFunction.js";
3
3
  class InvokeLambdaFunctionImpl {
4
4
  constructor(getAppStackOutput){
@@ -1 +1 @@
1
- {"version":3,"file":"features/InvokeLambdaFunction.js","sources":["../../src/features/InvokeLambdaFunction.ts"],"sourcesContent":["import { GetAppStackOutput } from \"@webiny/project/abstractions/index.js\";\nimport { InvokeLambdaFunction as InvokeLambdaFunctionAbstraction } from \"@webiny/project-extensions-aws/abstractions/InvokeLambdaFunction.js\";\nimport { IDefaultStackOutput } from \"~/pulumi/types.js\";\n\nexport class InvokeLambdaFunctionImpl implements InvokeLambdaFunctionAbstraction.Interface {\n constructor(private getAppStackOutput: GetAppStackOutput.Interface) {}\n\n async execute<T = any>(\n params: InvokeLambdaFunctionAbstraction.Params\n ): Promise<InvokeLambdaFunctionAbstraction.Result<T>> {\n // Get region from stack output\n const stackOutput = await this.getAppStackOutput.execute<IDefaultStackOutput>(\"api\");\n\n if (!stackOutput) {\n throw new Error(\"Could not retrieve API stack output for Lambda invocation.\");\n }\n\n // Loaded here rather than at the top of the file. Validating the project config imports this\n // file on every command, and only an actual invocation needs the Lambda client.\n const { LambdaClient, InvokeCommand } =\n await import(\"@webiny/aws-sdk/client-lambda/index.js\");\n\n const { region } = stackOutput;\n const lambdaClient = new LambdaClient({ region });\n\n const response = await lambdaClient.send(\n new InvokeCommand({\n FunctionName: params.functionName,\n InvocationType: params.invocationType || \"RequestResponse\",\n Payload: JSON.stringify(params.payload)\n })\n );\n\n const decoder = new TextDecoder(\"utf-8\");\n const payload = JSON.parse(decoder.decode(response.Payload));\n\n return {\n statusCode: response.StatusCode,\n payload\n };\n }\n}\n\nexport const InvokeLambdaFunction = InvokeLambdaFunctionAbstraction.createImplementation({\n implementation: InvokeLambdaFunctionImpl,\n dependencies: [GetAppStackOutput]\n});\n"],"names":["InvokeLambdaFunctionImpl","getAppStackOutput","params","stackOutput","Error","LambdaClient","InvokeCommand","region","lambdaClient","response","JSON","decoder","TextDecoder","payload","InvokeLambdaFunction","InvokeLambdaFunctionAbstraction","GetAppStackOutput"],"mappings":";;AAIO,MAAMA;IACT,YAAoBC,iBAA8C,CAAE;aAAhDA,iBAAiB,GAAjBA;IAAiD;IAErE,MAAM,QACFC,MAA8C,EACI;QAElD,MAAMC,cAAc,MAAM,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAsB;QAE9E,IAAI,CAACA,aACD,MAAM,IAAIC,MAAM;QAKpB,MAAM,EAAEC,YAAY,EAAEC,aAAa,EAAE,GACjC,MAAM,MAAM,CAAC;QAEjB,MAAM,EAAEC,MAAM,EAAE,GAAGJ;QACnB,MAAMK,eAAe,IAAIH,aAAa;YAAEE;QAAO;QAE/C,MAAME,WAAW,MAAMD,aAAa,IAAI,CACpC,IAAIF,cAAc;YACd,cAAcJ,OAAO,YAAY;YACjC,gBAAgBA,OAAO,cAAc,IAAI;YACzC,SAASQ,KAAK,SAAS,CAACR,OAAO,OAAO;QAC1C;QAGJ,MAAMS,UAAU,IAAIC,YAAY;QAChC,MAAMC,UAAUH,KAAK,KAAK,CAACC,QAAQ,MAAM,CAACF,SAAS,OAAO;QAE1D,OAAO;YACH,YAAYA,SAAS,UAAU;YAC/BI;QACJ;IACJ;AACJ;AAEO,MAAMC,4CAAuBC,qBAAAA,oBAAoD,CAAC;IACrF,gBAAgBf;IAChB,cAAc;QAACgB;KAAkB;AACrC"}
1
+ {"version":3,"file":"features/InvokeLambdaFunction.js","sources":["../../src/features/InvokeLambdaFunction.ts"],"sourcesContent":["import { GetAppStackOutput } from \"~/abstractions/features/GetAppStackOutput.js\";\nimport { InvokeLambdaFunction as InvokeLambdaFunctionAbstraction } from \"@webiny/project-extensions-aws/abstractions/InvokeLambdaFunction.js\";\nimport { IDefaultStackOutput } from \"~/pulumi/types.js\";\n\nexport class InvokeLambdaFunctionImpl implements InvokeLambdaFunctionAbstraction.Interface {\n constructor(private getAppStackOutput: GetAppStackOutput.Interface) {}\n\n async execute<T = any>(\n params: InvokeLambdaFunctionAbstraction.Params\n ): Promise<InvokeLambdaFunctionAbstraction.Result<T>> {\n // Get region from stack output\n const stackOutput = await this.getAppStackOutput.execute<IDefaultStackOutput>(\"api\");\n\n if (!stackOutput) {\n throw new Error(\"Could not retrieve API stack output for Lambda invocation.\");\n }\n\n // Loaded here rather than at the top of the file. Validating the project config imports this\n // file on every command, and only an actual invocation needs the Lambda client.\n const { LambdaClient, InvokeCommand } =\n await import(\"@webiny/aws-sdk/client-lambda/index.js\");\n\n const { region } = stackOutput;\n const lambdaClient = new LambdaClient({ region });\n\n const response = await lambdaClient.send(\n new InvokeCommand({\n FunctionName: params.functionName,\n InvocationType: params.invocationType || \"RequestResponse\",\n Payload: JSON.stringify(params.payload)\n })\n );\n\n const decoder = new TextDecoder(\"utf-8\");\n const payload = JSON.parse(decoder.decode(response.Payload));\n\n return {\n statusCode: response.StatusCode,\n payload\n };\n }\n}\n\nexport const InvokeLambdaFunction = InvokeLambdaFunctionAbstraction.createImplementation({\n implementation: InvokeLambdaFunctionImpl,\n dependencies: [GetAppStackOutput]\n});\n"],"names":["InvokeLambdaFunctionImpl","getAppStackOutput","params","stackOutput","Error","LambdaClient","InvokeCommand","region","lambdaClient","response","JSON","decoder","TextDecoder","payload","InvokeLambdaFunction","InvokeLambdaFunctionAbstraction","GetAppStackOutput"],"mappings":";;AAIO,MAAMA;IACT,YAAoBC,iBAA8C,CAAE;aAAhDA,iBAAiB,GAAjBA;IAAiD;IAErE,MAAM,QACFC,MAA8C,EACI;QAElD,MAAMC,cAAc,MAAM,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAsB;QAE9E,IAAI,CAACA,aACD,MAAM,IAAIC,MAAM;QAKpB,MAAM,EAAEC,YAAY,EAAEC,aAAa,EAAE,GACjC,MAAM,MAAM,CAAC;QAEjB,MAAM,EAAEC,MAAM,EAAE,GAAGJ;QACnB,MAAMK,eAAe,IAAIH,aAAa;YAAEE;QAAO;QAE/C,MAAME,WAAW,MAAMD,aAAa,IAAI,CACpC,IAAIF,cAAc;YACd,cAAcJ,OAAO,YAAY;YACjC,gBAAgBA,OAAO,cAAc,IAAI;YACzC,SAASQ,KAAK,SAAS,CAACR,OAAO,OAAO;QAC1C;QAGJ,MAAMS,UAAU,IAAIC,YAAY;QAChC,MAAMC,UAAUH,KAAK,KAAK,CAACC,QAAQ,MAAM,CAACF,SAAS,OAAO;QAE1D,OAAO;YACH,YAAYA,SAAS,UAAU;YAC/BI;QACJ;IACJ;AACJ;AAEO,MAAMC,4CAAuBC,qBAAAA,oBAAoD,CAAC;IACrF,gBAAgBf;IAChB,cAAc;QAACgB;KAAkB;AACrC"}
@@ -0,0 +1,18 @@
1
+ import { RefreshApp } from "../../abstractions/features/RefreshApp.js";
2
+ import { GetApp } from "@webiny/project/abstractions/index.js";
3
+ import { GetProject } from "@webiny/project/abstractions/index.js";
4
+ import { ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
5
+ import { GetPulumiService } from "../../abstractions/services/GetPulumiService.js";
6
+ import { PulumiSelectStackService } from "../../abstractions/services/PulumiSelectStackService.js";
7
+ export declare class DefaultRefreshApp implements RefreshApp.Interface {
8
+ private getApp;
9
+ private getProject;
10
+ private pulumiSelectStackService;
11
+ private getPulumiService;
12
+ private projectSdkParamsService;
13
+ constructor(getApp: GetApp.Interface, getProject: GetProject.Interface, pulumiSelectStackService: PulumiSelectStackService.Interface, getPulumiService: GetPulumiService.Interface, projectSdkParamsService: ProjectSdkParamsService.Interface);
14
+ execute(params: RefreshApp.Params): Promise<{
15
+ pulumiProcess: import("@webiny/pulumi-sdk/Pulumi").PulumiProcess;
16
+ }>;
17
+ }
18
+ export declare const refreshApp: import("@webiny/di").Implementation<typeof DefaultRefreshApp>;
@@ -0,0 +1,68 @@
1
+ import { createImplementation } from "@webiny/di";
2
+ import { RefreshApp } from "../../abstractions/features/RefreshApp.js";
3
+ import { GetApp, GetProject, ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
4
+ import { GetPulumiService } from "../../abstractions/services/GetPulumiService.js";
5
+ import { PulumiSelectStackService } from "../../abstractions/services/PulumiSelectStackService.js";
6
+ import { createEnvConfiguration, withEnv, withEnvVariant, withProjectName, withRegion } from "@webiny/project/utils/env/index.js";
7
+ import { withPulumiConfigPassphrase } from "../../utils/withPulumiConfigPassphrase.js";
8
+ class DefaultRefreshApp {
9
+ constructor(getApp, getProject, pulumiSelectStackService, getPulumiService, projectSdkParamsService){
10
+ this.getApp = getApp;
11
+ this.getProject = getProject;
12
+ this.pulumiSelectStackService = pulumiSelectStackService;
13
+ this.getPulumiService = getPulumiService;
14
+ this.projectSdkParamsService = projectSdkParamsService;
15
+ }
16
+ async execute(params) {
17
+ const app = this.getApp.execute(params.app);
18
+ const sdkParams = this.projectSdkParamsService.get();
19
+ if (!sdkParams.env) throw new Error('Please specify environment, for example "dev".');
20
+ await this.pulumiSelectStackService.execute(app);
21
+ const pulumi = await this.getPulumiService.execute({
22
+ app
23
+ });
24
+ const project = await this.getProject.execute();
25
+ const env = createEnvConfiguration({
26
+ configurations: [
27
+ withRegion({
28
+ region: sdkParams.region
29
+ }),
30
+ withEnv({
31
+ env: sdkParams.env
32
+ }),
33
+ withEnvVariant({
34
+ variant: sdkParams.variant
35
+ }),
36
+ withPulumiConfigPassphrase(),
37
+ withProjectName({
38
+ project
39
+ })
40
+ ]
41
+ });
42
+ return {
43
+ pulumiProcess: pulumi.run({
44
+ command: "refresh",
45
+ args: {
46
+ yes: true
47
+ },
48
+ execa: {
49
+ env
50
+ }
51
+ })
52
+ };
53
+ }
54
+ }
55
+ const refreshApp = createImplementation({
56
+ abstraction: RefreshApp,
57
+ implementation: DefaultRefreshApp,
58
+ dependencies: [
59
+ GetApp,
60
+ GetProject,
61
+ PulumiSelectStackService,
62
+ GetPulumiService,
63
+ ProjectSdkParamsService
64
+ ]
65
+ });
66
+ export { DefaultRefreshApp, refreshApp };
67
+
68
+ //# sourceMappingURL=RefreshApp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/RefreshApp/RefreshApp.js","sources":["../../../src/features/RefreshApp/RefreshApp.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { RefreshApp } from \"~/abstractions/features/RefreshApp.js\";\nimport { GetApp } from \"@webiny/project/abstractions/index.js\";\nimport { GetProject } from \"@webiny/project/abstractions/index.js\";\nimport { ProjectSdkParamsService } from \"@webiny/project/abstractions/index.js\";\nimport { GetPulumiService } from \"~/abstractions/services/GetPulumiService.js\";\nimport { PulumiSelectStackService } from \"~/abstractions/services/PulumiSelectStackService.js\";\nimport { createEnvConfiguration } from \"@webiny/project/utils/env/index.js\";\nimport { withEnv } from \"@webiny/project/utils/env/index.js\";\nimport { withEnvVariant } from \"@webiny/project/utils/env/index.js\";\nimport { withProjectName } from \"@webiny/project/utils/env/index.js\";\nimport { withRegion } from \"@webiny/project/utils/env/index.js\";\nimport { withPulumiConfigPassphrase } from \"~/utils/withPulumiConfigPassphrase.js\";\n\nexport class DefaultRefreshApp implements RefreshApp.Interface {\n constructor(\n private getApp: GetApp.Interface,\n private getProject: GetProject.Interface,\n private pulumiSelectStackService: PulumiSelectStackService.Interface,\n private getPulumiService: GetPulumiService.Interface,\n private projectSdkParamsService: ProjectSdkParamsService.Interface\n ) {}\n\n async execute(params: RefreshApp.Params) {\n const app = this.getApp.execute(params.app);\n const sdkParams = this.projectSdkParamsService.get();\n\n if (!sdkParams.env) {\n throw new Error(`Please specify environment, for example \"dev\".`);\n }\n\n await this.pulumiSelectStackService.execute(app);\n\n const pulumi = await this.getPulumiService.execute({ app });\n const project = await this.getProject.execute();\n\n const env = createEnvConfiguration({\n configurations: [\n withRegion({ region: sdkParams.region }),\n withEnv({ env: sdkParams.env }),\n withEnvVariant({ variant: sdkParams.variant }),\n withPulumiConfigPassphrase(),\n withProjectName({ project })\n ]\n });\n\n return {\n pulumiProcess: pulumi.run({\n command: \"refresh\",\n args: {\n yes: true\n },\n execa: { env }\n })\n };\n }\n}\n\nexport const refreshApp = createImplementation({\n abstraction: RefreshApp,\n implementation: DefaultRefreshApp,\n dependencies: [\n GetApp,\n GetProject,\n PulumiSelectStackService,\n GetPulumiService,\n ProjectSdkParamsService\n ]\n});\n"],"names":["DefaultRefreshApp","getApp","getProject","pulumiSelectStackService","getPulumiService","projectSdkParamsService","params","app","sdkParams","Error","pulumi","project","env","createEnvConfiguration","withRegion","withEnv","withEnvVariant","withPulumiConfigPassphrase","withProjectName","refreshApp","createImplementation","RefreshApp","GetApp","GetProject","PulumiSelectStackService","GetPulumiService","ProjectSdkParamsService"],"mappings":";;;;;;;AAcO,MAAMA;IACT,YACYC,MAAwB,EACxBC,UAAgC,EAChCC,wBAA4D,EAC5DC,gBAA4C,EAC5CC,uBAA0D,CACpE;aALUJ,MAAM,GAANA;aACAC,UAAU,GAAVA;aACAC,wBAAwB,GAAxBA;aACAC,gBAAgB,GAAhBA;aACAC,uBAAuB,GAAvBA;IACT;IAEH,MAAM,QAAQC,MAAyB,EAAE;QACrC,MAAMC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAACD,OAAO,GAAG;QAC1C,MAAME,YAAY,IAAI,CAAC,uBAAuB,CAAC,GAAG;QAElD,IAAI,CAACA,UAAU,GAAG,EACd,MAAM,IAAIC,MAAM;QAGpB,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACF;QAE5C,MAAMG,SAAS,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;YAAEH;QAAI;QACzD,MAAMI,UAAU,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO;QAE7C,MAAMC,MAAMC,uBAAuB;YAC/B,gBAAgB;gBACZC,WAAW;oBAAE,QAAQN,UAAU,MAAM;gBAAC;gBACtCO,QAAQ;oBAAE,KAAKP,UAAU,GAAG;gBAAC;gBAC7BQ,eAAe;oBAAE,SAASR,UAAU,OAAO;gBAAC;gBAC5CS;gBACAC,gBAAgB;oBAAEP;gBAAQ;aAC7B;QACL;QAEA,OAAO;YACH,eAAeD,OAAO,GAAG,CAAC;gBACtB,SAAS;gBACT,MAAM;oBACF,KAAK;gBACT;gBACA,OAAO;oBAAEE;gBAAI;YACjB;QACJ;IACJ;AACJ;AAEO,MAAMO,aAAaC,qBAAqB;IAC3C,aAAaC;IACb,gBAAgBrB;IAChB,cAAc;QACVsB;QACAC;QACAC;QACAC;QACAC;KACH;AACL"}
@@ -0,0 +1 @@
1
+ export * from "./RefreshApp.js";