@webiny/project-aws 6.6.0-alpha.1 → 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 (540) 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 -6
  26. package/abstractions/index.js +21 -6
  27. package/abstractions/pulumiTypes.d.ts +18 -0
  28. package/abstractions/pulumiTypes.js +0 -0
  29. package/abstractions/services/GetPulumiService.d.ts +20 -0
  30. package/abstractions/services/GetPulumiService.js +5 -0
  31. package/abstractions/services/GetPulumiService.js.map +1 -0
  32. package/abstractions/services/GetPulumiVersionService.d.ts +12 -0
  33. package/abstractions/services/GetPulumiVersionService.js +5 -0
  34. package/abstractions/services/GetPulumiVersionService.js.map +1 -0
  35. package/abstractions/services/IsRemotePulumiBackendService.d.ts +7 -0
  36. package/abstractions/services/IsRemotePulumiBackendService.js +5 -0
  37. package/abstractions/services/IsRemotePulumiBackendService.js.map +1 -0
  38. package/abstractions/services/ListAppLambdaFunctionsService.d.ts +23 -0
  39. package/abstractions/services/ListAppLambdaFunctionsService.js +5 -0
  40. package/abstractions/services/ListAppLambdaFunctionsService.js.map +1 -0
  41. package/abstractions/services/ListDeployedEnvironmentsService.d.ts +12 -0
  42. package/abstractions/services/ListDeployedEnvironmentsService.js +5 -0
  43. package/abstractions/services/ListDeployedEnvironmentsService.js.map +1 -0
  44. package/abstractions/services/PulumiExportService.d.ts +13 -0
  45. package/abstractions/services/PulumiExportService.js +6 -0
  46. package/abstractions/services/PulumiExportService.js.map +1 -0
  47. package/abstractions/services/PulumiGetConfigPassphraseService.d.ts +7 -0
  48. package/abstractions/services/PulumiGetConfigPassphraseService.js +5 -0
  49. package/abstractions/services/PulumiGetConfigPassphraseService.js.map +1 -0
  50. package/abstractions/services/PulumiGetSecretsProviderService.d.ts +7 -0
  51. package/abstractions/services/PulumiGetSecretsProviderService.js +5 -0
  52. package/abstractions/services/PulumiGetSecretsProviderService.js.map +1 -0
  53. package/abstractions/services/PulumiGetStackOutputService.d.ts +13 -0
  54. package/abstractions/services/PulumiGetStackOutputService.js +5 -0
  55. package/abstractions/services/PulumiGetStackOutputService.js.map +1 -0
  56. package/abstractions/services/PulumiImportService.d.ts +8 -0
  57. package/abstractions/services/PulumiImportService.js +5 -0
  58. package/abstractions/services/PulumiImportService.js.map +1 -0
  59. package/abstractions/services/PulumiLoginService.d.ts +19 -0
  60. package/abstractions/services/PulumiLoginService.js +5 -0
  61. package/abstractions/services/PulumiLoginService.js.map +1 -0
  62. package/abstractions/services/PulumiSelectStackService.d.ts +10 -0
  63. package/abstractions/services/PulumiSelectStackService.js +5 -0
  64. package/abstractions/services/PulumiSelectStackService.js.map +1 -0
  65. package/abstractions/services/StackOutputCacheService.d.ts +10 -0
  66. package/abstractions/services/StackOutputCacheService.js +5 -0
  67. package/abstractions/services/StackOutputCacheService.js.map +1 -0
  68. package/abstractions/services/WatchedLambdaFunctionsService.d.ts +28 -0
  69. package/abstractions/services/WatchedLambdaFunctionsService.js +5 -0
  70. package/abstractions/services/WatchedLambdaFunctionsService.js.map +1 -0
  71. package/api.d.ts +1 -15
  72. package/api.js +1 -3
  73. package/api.js.map +1 -1
  74. package/decorators/DeployAppClearWatchedLambdaFunctions.d.ts +20 -0
  75. package/decorators/DeployAppClearWatchedLambdaFunctions.js +35 -0
  76. package/decorators/DeployAppClearWatchedLambdaFunctions.js.map +1 -0
  77. package/decorators/DeployAppRefreshStackOutputCache.d.ts +20 -0
  78. package/decorators/DeployAppRefreshStackOutputCache.js +34 -0
  79. package/decorators/DeployAppRefreshStackOutputCache.js.map +1 -0
  80. package/decorators/DeployAppWithHooks.d.ts +25 -0
  81. package/decorators/DeployAppWithHooks.js +58 -0
  82. package/decorators/DeployAppWithHooks.js.map +1 -0
  83. package/decorators/DeployAppWithWatchedLambdaReplacement.d.ts +20 -0
  84. package/decorators/DeployAppWithWatchedLambdaReplacement.js +42 -0
  85. package/decorators/DeployAppWithWatchedLambdaReplacement.js.map +1 -0
  86. package/decorators/DestroyAppClearStackOutputCache.d.ts +28 -0
  87. package/decorators/DestroyAppClearStackOutputCache.js +31 -0
  88. package/decorators/DestroyAppClearStackOutputCache.js.map +1 -0
  89. package/decorators/GetPulumiServiceWithDownloadInfo.d.ts +13 -0
  90. package/decorators/GetPulumiServiceWithDownloadInfo.js +28 -0
  91. package/decorators/GetPulumiServiceWithDownloadInfo.js.map +1 -0
  92. package/decorators/ProjectInfoWithPulumi.d.ts +34 -0
  93. package/decorators/ProjectInfoWithPulumi.js +36 -0
  94. package/decorators/ProjectInfoWithPulumi.js.map +1 -0
  95. package/exports/infra/admin.d.ts +1 -3
  96. package/exports/infra/admin.js +0 -3
  97. package/exports/infra/api.d.ts +1 -3
  98. package/exports/infra/api.js +0 -3
  99. package/exports/infra/core.d.ts +1 -2
  100. package/exports/infra/core.js +0 -2
  101. package/extensions/ApiLambdaFunction.js +3 -2
  102. package/extensions/ApiLambdaFunction.js.map +1 -1
  103. package/extensions/ApiRoute.d.ts +7 -16
  104. package/extensions/ApiRoute.js +5 -73
  105. package/extensions/ApiRoute.js.map +1 -1
  106. package/extensions/OpenSearch/EnsureOsServiceRoleBeforeCoreDeploy.d.ts +3 -2
  107. package/extensions/OpenSearch/EnsureOsServiceRoleBeforeCoreDeploy.js +2 -1
  108. package/extensions/OpenSearch/EnsureOsServiceRoleBeforeCoreDeploy.js.map +1 -1
  109. package/extensions/OpenSearch/EnsureOsWasDeployed.d.ts +3 -3
  110. package/extensions/OpenSearch/EnsureOsWasDeployed.js +1 -2
  111. package/extensions/OpenSearch/EnsureOsWasDeployed.js.map +1 -1
  112. package/extensions/OpenSearch.d.ts +9 -10
  113. package/extensions/OpenSearch.js +8 -16
  114. package/extensions/OpenSearch.js.map +1 -1
  115. package/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.d.ts +3 -3
  116. package/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.js +3 -2
  117. package/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.js.map +1 -1
  118. package/extensions/ProjectAws/BlueGreenDeployments/EnsureVariantBeforeDeploy.d.ts +3 -2
  119. package/extensions/ProjectAws/BlueGreenDeployments/EnsureVariantBeforeDeploy.js +2 -1
  120. package/extensions/ProjectAws/BlueGreenDeployments/EnsureVariantBeforeDeploy.js.map +1 -1
  121. package/extensions/ProjectAws/BlueGreenDeployments/PrintDeploymentInfoAfterDeploy.d.ts +5 -2
  122. package/extensions/ProjectAws/BlueGreenDeployments/PrintDeploymentInfoAfterDeploy.js +3 -1
  123. package/extensions/ProjectAws/BlueGreenDeployments/PrintDeploymentInfoAfterDeploy.js.map +1 -1
  124. package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminBuild.d.ts +3 -1
  125. package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminBuild.js +2 -1
  126. package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminBuild.js.map +1 -1
  127. package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminWatch.d.ts +3 -1
  128. package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminWatch.js +2 -1
  129. package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminWatch.js.map +1 -1
  130. package/extensions/ProjectAws/EnsureApiDeployedBeforeWatch.d.ts +3 -1
  131. package/extensions/ProjectAws/EnsureApiDeployedBeforeWatch.js +2 -1
  132. package/extensions/ProjectAws/EnsureApiDeployedBeforeWatch.js.map +1 -1
  133. package/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.d.ts +3 -2
  134. package/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.js +3 -2
  135. package/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.js.map +1 -1
  136. package/extensions/ProjectAws/EnsureCoreDeployedBeforeApiDeploy.d.ts +4 -2
  137. package/extensions/ProjectAws/EnsureCoreDeployedBeforeApiDeploy.js +3 -1
  138. package/extensions/ProjectAws/EnsureCoreDeployedBeforeApiDeploy.js.map +1 -1
  139. package/extensions/ProjectAws/EnsureTelemetryEnabledForOss.d.ts +6 -2
  140. package/extensions/ProjectAws/EnsureTelemetryEnabledForOss.js +2 -1
  141. package/extensions/ProjectAws/EnsureTelemetryEnabledForOss.js.map +1 -1
  142. package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVars.d.ts +1 -1
  143. package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVars.js +1 -1
  144. package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVars.js.map +1 -1
  145. package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeBuild.d.ts +1 -1
  146. package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeBuild.js +1 -1
  147. package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeBuild.js.map +1 -1
  148. package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeWatch.d.ts +1 -1
  149. package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeWatch.js +1 -1
  150. package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeWatch.js.map +1 -1
  151. package/extensions/ProjectAws/SetDatabaseSetupOutput.d.ts +2 -2
  152. package/extensions/ProjectAws/SetDatabaseSetupOutput.js +1 -1
  153. package/extensions/ProjectAws/SetDatabaseSetupOutput.js.map +1 -1
  154. package/extensions/ProjectAws/TelemetryNoLongerNewUser.d.ts +2 -2
  155. package/extensions/ProjectAws/TelemetryNoLongerNewUser.js +1 -1
  156. package/extensions/ProjectAws/TelemetryNoLongerNewUser.js.map +1 -1
  157. package/extensions/ProjectAws/UploadAdminAppToS3.d.ts +5 -3
  158. package/extensions/ProjectAws/UploadAdminAppToS3.js +3 -3
  159. package/extensions/ProjectAws/UploadAdminAppToS3.js.map +1 -1
  160. package/extensions/ProjectAws/ValidateEncryptionBeforeDeploy.d.ts +5 -2
  161. package/extensions/ProjectAws/ValidateEncryptionBeforeDeploy.js +2 -1
  162. package/extensions/ProjectAws/ValidateEncryptionBeforeDeploy.js.map +1 -1
  163. package/extensions/ProjectAws/ValidateProductionPulumiState.d.ts +5 -2
  164. package/extensions/ProjectAws/ValidateProductionPulumiState.js +3 -1
  165. package/extensions/ProjectAws/ValidateProductionPulumiState.js.map +1 -1
  166. package/extensions/ProjectAws/definitions.js +6 -2
  167. package/extensions/ProjectAws/definitions.js.map +1 -1
  168. package/extensions/ProjectAws.d.ts +1 -0
  169. package/extensions/ProjectAws.js +3 -1
  170. package/extensions/ProjectAws.js.map +1 -1
  171. package/extensions/RegisterRoutesPulumi.d.ts +2 -2
  172. package/extensions/RegisterRoutesPulumi.js +4 -4
  173. package/extensions/RegisterRoutesPulumi.js.map +1 -1
  174. package/extensions/definitions.js +1 -5
  175. package/extensions/definitions.js.map +1 -1
  176. package/extensions/index.d.ts +2 -3
  177. package/extensions/index.js +2 -3
  178. package/extensions/registerExtensionImplementations.js +11 -0
  179. package/extensions/registerExtensionImplementations.js.map +1 -0
  180. package/extensions/toApiGatewayPath.d.ts +2 -0
  181. package/extensions/toApiGatewayPath.js +6 -0
  182. package/extensions/toApiGatewayPath.js.map +1 -0
  183. package/features/ApiGqlClient.d.ts +4 -4
  184. package/features/ApiGqlClient.js +3 -3
  185. package/features/ApiGqlClient.js.map +1 -1
  186. package/features/DeployApp/DeployApp.d.ts +22 -0
  187. package/features/DeployApp/DeployApp.js +91 -0
  188. package/features/DeployApp/DeployApp.js.map +1 -0
  189. package/features/DeployApp/index.d.ts +1 -0
  190. package/features/DeployApp/index.js +1 -0
  191. package/features/DestroyApp/DestroyApp.d.ts +20 -0
  192. package/features/DestroyApp/DestroyApp.js +70 -0
  193. package/features/DestroyApp/DestroyApp.js.map +1 -0
  194. package/features/DestroyApp/index.d.ts +1 -0
  195. package/features/DestroyApp/index.js +1 -0
  196. package/features/ExportStack/ExportStack.d.ts +12 -0
  197. package/features/ExportStack/ExportStack.js +28 -0
  198. package/features/ExportStack/ExportStack.js.map +1 -0
  199. package/features/ExportStack/index.d.ts +1 -0
  200. package/features/ExportStack/index.js +1 -0
  201. package/features/GetAppOutput/GetAppOutput.d.ts +16 -0
  202. package/features/GetAppOutput/GetAppOutput.js +55 -0
  203. package/features/GetAppOutput/GetAppOutput.js.map +1 -0
  204. package/features/GetAppOutput/index.d.ts +1 -0
  205. package/features/GetAppOutput/index.js +1 -0
  206. package/features/GetAppStackOutput/GetAppStackOutput.d.ts +13 -0
  207. package/features/GetAppStackOutput/GetAppStackOutput.js +28 -0
  208. package/features/GetAppStackOutput/GetAppStackOutput.js.map +1 -0
  209. package/features/GetAppStackOutput/index.d.ts +1 -0
  210. package/features/GetAppStackOutput/index.js +1 -0
  211. package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.d.ts +8 -0
  212. package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js +26 -0
  213. package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js.map +1 -0
  214. package/features/GetPulumiResourceNamePrefix/index.d.ts +1 -0
  215. package/features/GetPulumiResourceNamePrefix/index.js +1 -0
  216. package/features/InvokeLambdaFunction.d.ts +3 -3
  217. package/features/InvokeLambdaFunction.js +3 -3
  218. package/features/InvokeLambdaFunction.js.map +1 -1
  219. package/features/RefreshApp/RefreshApp.d.ts +18 -0
  220. package/features/RefreshApp/RefreshApp.js +68 -0
  221. package/features/RefreshApp/RefreshApp.js.map +1 -0
  222. package/features/RefreshApp/index.d.ts +1 -0
  223. package/features/RefreshApp/index.js +1 -0
  224. package/features/RunPulumiCommand/RunPulumiCommand.d.ts +18 -0
  225. package/features/RunPulumiCommand/RunPulumiCommand.js +65 -0
  226. package/features/RunPulumiCommand/RunPulumiCommand.js.map +1 -0
  227. package/features/RunPulumiCommand/index.d.ts +1 -0
  228. package/features/RunPulumiCommand/index.js +1 -0
  229. package/features/Watch/AwsWatch.d.ts +9 -1
  230. package/features/Watch/AwsWatch.js +8 -4
  231. package/features/Watch/AwsWatch.js.map +1 -1
  232. package/features/Watch/getIotEndpoint.d.ts +2 -2
  233. package/features/Watch/getIotEndpoint.js.map +1 -1
  234. package/features/Watch/initInvocationForwarding.d.ts +9 -0
  235. package/features/Watch/initInvocationForwarding.js +91 -0
  236. package/features/Watch/initInvocationForwarding.js.map +1 -0
  237. package/features/Watch/localInvocationWorker.d.ts +1 -0
  238. package/features/Watch/localInvocationWorker.js +31 -0
  239. package/features/Watch/localInvocationWorker.js.map +1 -0
  240. package/features/Watch/replaceLambdaFunctions.d.ts +7 -3
  241. package/features/Watch/replaceLambdaFunctions.js.map +1 -1
  242. package/features/hooks/AdminAfterDeploy/AdminAfterDeploy.d.ts +7 -0
  243. package/features/hooks/AdminAfterDeploy/AdminAfterDeploy.js +25 -0
  244. package/features/hooks/AdminAfterDeploy/AdminAfterDeploy.js.map +1 -0
  245. package/features/hooks/AdminAfterDeploy/index.d.ts +1 -0
  246. package/features/hooks/AdminAfterDeploy/index.js +1 -0
  247. package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.d.ts +7 -0
  248. package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.js +25 -0
  249. package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.js.map +1 -0
  250. package/features/hooks/AdminBeforeDeploy/index.d.ts +1 -0
  251. package/features/hooks/AdminBeforeDeploy/index.js +1 -0
  252. package/features/hooks/AfterDeploy/AfterDeploy.d.ts +7 -0
  253. package/features/hooks/AfterDeploy/AfterDeploy.js +25 -0
  254. package/features/hooks/AfterDeploy/AfterDeploy.js.map +1 -0
  255. package/features/hooks/AfterDeploy/index.d.ts +1 -0
  256. package/features/hooks/AfterDeploy/index.js +1 -0
  257. package/features/hooks/ApiAfterDeploy/ApiAfterDeploy.d.ts +7 -0
  258. package/features/hooks/ApiAfterDeploy/ApiAfterDeploy.js +25 -0
  259. package/features/hooks/ApiAfterDeploy/ApiAfterDeploy.js.map +1 -0
  260. package/features/hooks/ApiAfterDeploy/index.d.ts +1 -0
  261. package/features/hooks/ApiAfterDeploy/index.js +1 -0
  262. package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.d.ts +7 -0
  263. package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.js +25 -0
  264. package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.js.map +1 -0
  265. package/features/hooks/ApiBeforeDeploy/index.d.ts +1 -0
  266. package/features/hooks/ApiBeforeDeploy/index.js +1 -0
  267. package/features/hooks/BeforeDeploy/BeforeDeploy.d.ts +7 -0
  268. package/features/hooks/BeforeDeploy/BeforeDeploy.js +25 -0
  269. package/features/hooks/BeforeDeploy/BeforeDeploy.js.map +1 -0
  270. package/features/hooks/BeforeDeploy/index.d.ts +1 -0
  271. package/features/hooks/BeforeDeploy/index.js +1 -0
  272. package/features/hooks/CoreAfterDeploy/CoreAfterDeploy.d.ts +7 -0
  273. package/features/hooks/CoreAfterDeploy/CoreAfterDeploy.js +25 -0
  274. package/features/hooks/CoreAfterDeploy/CoreAfterDeploy.js.map +1 -0
  275. package/features/hooks/CoreAfterDeploy/index.d.ts +1 -0
  276. package/features/hooks/CoreAfterDeploy/index.js +1 -0
  277. package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.d.ts +7 -0
  278. package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.js +25 -0
  279. package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.js.map +1 -0
  280. package/features/hooks/CoreBeforeDeploy/index.d.ts +1 -0
  281. package/features/hooks/CoreBeforeDeploy/index.js +1 -0
  282. package/index.d.ts +3 -0
  283. package/index.js +3 -0
  284. package/infra.d.ts +49 -2
  285. package/infra.js +16 -4
  286. package/infra.js.map +1 -1
  287. package/package.json +26 -23
  288. package/project.d.ts +12 -1
  289. package/project.js +3 -2
  290. package/project.js.map +1 -1
  291. package/pulumi/apps/admin/createAdminPulumiApp.js +7 -4
  292. package/pulumi/apps/admin/createAdminPulumiApp.js.map +1 -1
  293. package/pulumi/apps/api/ApiCloudfront.js +2 -1
  294. package/pulumi/apps/api/ApiCloudfront.js.map +1 -1
  295. package/pulumi/apps/api/ApiOutput.d.ts +6 -6
  296. package/pulumi/apps/api/createApiPulumiApp.js +9 -7
  297. package/pulumi/apps/api/createApiPulumiApp.js.map +1 -1
  298. package/pulumi/apps/awsUtils.js +1 -1
  299. package/pulumi/apps/awsUtils.js.map +1 -1
  300. package/pulumi/apps/blueGreen/domains/resolveDomains.js +1 -1
  301. package/pulumi/apps/blueGreen/domains/resolveDomains.js.map +1 -1
  302. package/pulumi/apps/blueGreen/types.d.ts +2 -5
  303. package/pulumi/apps/common/CoreOutput.d.ts +2 -1
  304. package/pulumi/apps/common/CoreOutput.js.map +1 -1
  305. package/pulumi/apps/core/CoreAuditLogsDynamo.d.ts +1 -0
  306. package/pulumi/apps/core/CoreAuditLogsDynamo.js +3 -0
  307. package/pulumi/apps/core/CoreAuditLogsDynamo.js.map +1 -1
  308. package/pulumi/apps/core/CoreDynamo.d.ts +1 -0
  309. package/pulumi/apps/core/CoreDynamo.js +3 -0
  310. package/pulumi/apps/core/CoreDynamo.js.map +1 -1
  311. package/pulumi/apps/core/CoreFileManager.d.ts +2 -0
  312. package/pulumi/apps/core/CoreFileManager.js +11 -1
  313. package/pulumi/apps/core/CoreFileManager.js.map +1 -1
  314. package/pulumi/apps/core/CoreOpenSearch.d.ts +1 -0
  315. package/pulumi/apps/core/CoreOpenSearch.js +3 -0
  316. package/pulumi/apps/core/CoreOpenSearch.js.map +1 -1
  317. package/pulumi/apps/core/configureS3BucketMalwareProtection.js +12 -2
  318. package/pulumi/apps/core/configureS3BucketMalwareProtection.js.map +1 -1
  319. package/pulumi/apps/core/createCorePulumiApp.js +16 -7
  320. package/pulumi/apps/core/createCorePulumiApp.js.map +1 -1
  321. package/pulumi/apps/customDomain.d.ts +10 -0
  322. package/pulumi/apps/customDomain.js +5 -1
  323. package/pulumi/apps/customDomain.js.map +1 -1
  324. package/pulumi/apps/extensions/getAwsTagsFromExtension.js +1 -1
  325. package/pulumi/apps/extensions/getAwsTagsFromExtension.js.map +1 -1
  326. package/pulumi/apps/extensions/getBgDeploymentsConfigFromExtension.d.ts +2 -2
  327. package/pulumi/apps/extensions/getBgDeploymentsConfigFromExtension.js +1 -1
  328. package/pulumi/apps/extensions/getBgDeploymentsConfigFromExtension.js.map +1 -1
  329. package/pulumi/apps/extensions/getOsConfigFromExtension.js +2 -2
  330. package/pulumi/apps/extensions/getOsConfigFromExtension.js.map +1 -1
  331. package/pulumi/apps/extensions/getVpcConfigFromExtension.js +1 -1
  332. package/pulumi/apps/extensions/getVpcConfigFromExtension.js.map +1 -1
  333. package/pulumi/apps/extensions/isProductionDefaultEnabled.d.ts +16 -0
  334. package/pulumi/apps/extensions/isProductionDefaultEnabled.js +9 -0
  335. package/pulumi/apps/extensions/isProductionDefaultEnabled.js.map +1 -0
  336. package/pulumi/apps/extensions/isVpcEnabled.d.ts +14 -0
  337. package/pulumi/apps/extensions/isVpcEnabled.js +8 -0
  338. package/pulumi/apps/extensions/isVpcEnabled.js.map +1 -0
  339. package/pulumi/apps/syncSystem/types.d.ts +2 -2
  340. package/pulumi/extensions/AdminPulumi.js +3 -2
  341. package/pulumi/extensions/AdminPulumi.js.map +1 -1
  342. package/pulumi/extensions/ApiPulumi.js +3 -2
  343. package/pulumi/extensions/ApiPulumi.js.map +1 -1
  344. package/pulumi/extensions/CorePulumi.js +3 -2
  345. package/pulumi/extensions/CorePulumi.js.map +1 -1
  346. package/pulumi/extensions/index.d.ts +53 -22
  347. package/pulumi/extensions/index.js +12 -9
  348. package/pulumi/extensions/index.js.map +1 -1
  349. package/pulumi/features/AdminPulumi/AdminPulumi.d.ts +1 -1
  350. package/pulumi/features/AdminPulumi/AdminPulumi.js +1 -1
  351. package/pulumi/features/AdminPulumi/AdminPulumi.js.map +1 -1
  352. package/pulumi/features/ApiPulumi/ApiPulumi.d.ts +1 -1
  353. package/pulumi/features/ApiPulumi/ApiPulumi.js +1 -1
  354. package/pulumi/features/ApiPulumi/ApiPulumi.js.map +1 -1
  355. package/pulumi/features/CorePulumi/CorePulumi.d.ts +1 -1
  356. package/pulumi/features/CorePulumi/CorePulumi.js +1 -1
  357. package/pulumi/features/CorePulumi/CorePulumi.js.map +1 -1
  358. package/pulumi/features/DefaultSetAdminCustomDomains.d.ts +1 -1
  359. package/pulumi/features/DefaultSetAdminCustomDomains.js.map +1 -1
  360. package/pulumi/features/DefaultSetApiCustomDomains.d.ts +1 -1
  361. package/pulumi/features/DefaultSetApiCustomDomains.js.map +1 -1
  362. package/pulumi/getAwsProjectSdk.d.ts +2 -12
  363. package/pulumi/getAwsProjectSdk.js +2 -3
  364. package/pulumi/getAwsProjectSdk.js.map +1 -1
  365. package/pulumi/getStackOutput.d.ts +4 -5
  366. package/pulumi/getStackOutput.js.map +1 -1
  367. package/pulumi/types.d.ts +4 -3
  368. package/pulumi/utils/getDistributionUrl.d.ts +9 -0
  369. package/pulumi/utils/getDistributionUrl.js +8 -0
  370. package/pulumi/utils/getDistributionUrl.js.map +1 -0
  371. package/pulumi/utils/index.d.ts +1 -0
  372. package/pulumi/utils/index.js +1 -0
  373. package/pulumi/utils/lambdaEnvVariables.js.map +1 -1
  374. package/registerAwsProjectFeatures.js +38 -9
  375. package/registerAwsProjectFeatures.js.map +1 -1
  376. package/services/AdminStackOutputService.d.ts +3 -3
  377. package/services/AdminStackOutputService.js +2 -2
  378. package/services/AdminStackOutputService.js.map +1 -1
  379. package/services/ApiStackOutputService.d.ts +3 -3
  380. package/services/ApiStackOutputService.js +2 -2
  381. package/services/ApiStackOutputService.js.map +1 -1
  382. package/services/AwsDeployInitHostingSdkService/AwsDeployInitHostingSdkService.d.ts +10 -0
  383. package/services/AwsDeployInitHostingSdkService/AwsDeployInitHostingSdkService.js +30 -0
  384. package/services/AwsDeployInitHostingSdkService/AwsDeployInitHostingSdkService.js.map +1 -0
  385. package/services/AwsPulumiInitHostingSdkService/AwsPulumiInitHostingSdkService.d.ts +9 -0
  386. package/services/AwsPulumiInitHostingSdkService/AwsPulumiInitHostingSdkService.js +24 -0
  387. package/services/AwsPulumiInitHostingSdkService/AwsPulumiInitHostingSdkService.js.map +1 -0
  388. package/services/CoreStackOutputService.d.ts +3 -3
  389. package/services/CoreStackOutputService.js +2 -2
  390. package/services/CoreStackOutputService.js.map +1 -1
  391. package/services/GetPulumiService/GetPulumiService.d.ts +4 -3
  392. package/services/GetPulumiService/GetPulumiService.js +3 -2
  393. package/services/GetPulumiService/GetPulumiService.js.map +1 -1
  394. package/services/GetPulumiVersionService/GetPulumiVersionService.d.ts +5 -0
  395. package/services/GetPulumiVersionService/GetPulumiVersionService.js +46 -0
  396. package/services/GetPulumiVersionService/GetPulumiVersionService.js.map +1 -0
  397. package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.d.ts +14 -0
  398. package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.js +15 -0
  399. package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.js.map +1 -0
  400. package/services/IsRemotePulumiBackendService/index.d.ts +1 -0
  401. package/services/IsRemotePulumiBackendService/index.js +1 -0
  402. package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.d.ts +20 -0
  403. package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.js +63 -0
  404. package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.js.map +1 -0
  405. package/services/ListAppLambdaFunctionsService/index.d.ts +1 -0
  406. package/services/ListAppLambdaFunctionsService/index.js +1 -0
  407. package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.d.ts +8 -0
  408. package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.js +31 -0
  409. package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.js.map +1 -0
  410. package/services/ListDeployedEnvironmentsService/index.d.ts +1 -0
  411. package/services/ListDeployedEnvironmentsService/index.js +1 -0
  412. package/services/PulumiExportService/PulumiExportService.d.ts +16 -0
  413. package/services/PulumiExportService/PulumiExportService.js +54 -0
  414. package/services/PulumiExportService/PulumiExportService.js.map +1 -0
  415. package/services/PulumiExportService/index.d.ts +1 -0
  416. package/services/PulumiExportService/index.js +1 -0
  417. package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.d.ts +5 -0
  418. package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.js +15 -0
  419. package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.js.map +1 -0
  420. package/services/PulumiGetConfigPassphraseService/index.d.ts +1 -0
  421. package/services/PulumiGetConfigPassphraseService/index.js +1 -0
  422. package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.d.ts +5 -0
  423. package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.js +15 -0
  424. package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.js.map +1 -0
  425. package/services/PulumiGetSecretsProviderService/index.d.ts +1 -0
  426. package/services/PulumiGetSecretsProviderService/index.js +1 -0
  427. package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.d.ts +16 -0
  428. package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js +69 -0
  429. package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js.map +1 -0
  430. package/services/PulumiGetStackOutputService/index.d.ts +1 -0
  431. package/services/PulumiGetStackOutputService/index.js +1 -0
  432. package/services/PulumiGetStackOutputService/mapStackOutput.d.ts +1 -0
  433. package/services/PulumiGetStackOutputService/mapStackOutput.js +22 -0
  434. package/services/PulumiGetStackOutputService/mapStackOutput.js.map +1 -0
  435. package/services/PulumiImportService/PulumiImportService.d.ts +13 -0
  436. package/services/PulumiImportService/PulumiImportService.js +64 -0
  437. package/services/PulumiImportService/PulumiImportService.js.map +1 -0
  438. package/services/PulumiImportService/index.d.ts +1 -0
  439. package/services/PulumiImportService/index.js +1 -0
  440. package/services/PulumiLoginService/PulumiLoginService.d.ts +13 -0
  441. package/services/PulumiLoginService/PulumiLoginService.js +59 -0
  442. package/services/PulumiLoginService/PulumiLoginService.js.map +1 -0
  443. package/services/PulumiLoginService/index.d.ts +1 -0
  444. package/services/PulumiLoginService/index.js +1 -0
  445. package/services/PulumiSelectStackService/PulumiSelectStackService.d.ts +20 -0
  446. package/services/PulumiSelectStackService/PulumiSelectStackService.js +106 -0
  447. package/services/PulumiSelectStackService/PulumiSelectStackService.js.map +1 -0
  448. package/services/PulumiSelectStackService/index.d.ts +1 -0
  449. package/services/PulumiSelectStackService/index.js +1 -0
  450. package/services/StackOutputCacheService/StackOutputCacheService.d.ts +21 -0
  451. package/services/StackOutputCacheService/StackOutputCacheService.js +90 -0
  452. package/services/StackOutputCacheService/StackOutputCacheService.js.map +1 -0
  453. package/services/StackOutputCacheService/index.d.ts +1 -0
  454. package/services/StackOutputCacheService/index.js +1 -0
  455. package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.d.ts +14 -0
  456. package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js +55 -0
  457. package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js.map +1 -0
  458. package/services/WatchedLambdaFunctionsService/index.d.ts +1 -0
  459. package/services/WatchedLambdaFunctionsService/index.js +1 -0
  460. package/utils/withPulumiConfigPassphrase.d.ts +1 -0
  461. package/utils/withPulumiConfigPassphrase.js +7 -0
  462. package/utils/withPulumiConfigPassphrase.js.map +1 -0
  463. package/abstractions/ApiGqlClient.d.ts +0 -23
  464. package/abstractions/ApiGqlClient.js +0 -5
  465. package/abstractions/ApiGqlClient.js.map +0 -1
  466. package/abstractions/InvokeLambdaFunction.d.ts +0 -18
  467. package/abstractions/InvokeLambdaFunction.js +0 -5
  468. package/abstractions/InvokeLambdaFunction.js.map +0 -1
  469. package/abstractions/features/pulumi/AdminPulumi.d.ts +0 -9
  470. package/abstractions/features/pulumi/AdminPulumi.js +0 -5
  471. package/abstractions/features/pulumi/AdminPulumi.js.map +0 -1
  472. package/abstractions/features/pulumi/ApiPulumi.d.ts +0 -9
  473. package/abstractions/features/pulumi/ApiPulumi.js +0 -5
  474. package/abstractions/features/pulumi/ApiPulumi.js.map +0 -1
  475. package/abstractions/features/pulumi/CorePulumi.d.ts +0 -9
  476. package/abstractions/features/pulumi/CorePulumi.js +0 -5
  477. package/abstractions/features/pulumi/CorePulumi.js.map +0 -1
  478. package/abstractions/features/pulumi/SetAdminCustomDomains.d.ts +0 -9
  479. package/abstractions/features/pulumi/SetAdminCustomDomains.js +0 -5
  480. package/abstractions/features/pulumi/SetAdminCustomDomains.js.map +0 -1
  481. package/abstractions/features/pulumi/SetApiCustomDomains.d.ts +0 -9
  482. package/abstractions/features/pulumi/SetApiCustomDomains.js +0 -5
  483. package/abstractions/features/pulumi/SetApiCustomDomains.js.map +0 -1
  484. package/abstractions/features/pulumi/index.d.ts +0 -5
  485. package/abstractions/features/pulumi/index.js +0 -5
  486. package/abstractions/services/AdminStackOutputService.d.ts +0 -13
  487. package/abstractions/services/AdminStackOutputService.js +0 -5
  488. package/abstractions/services/AdminStackOutputService.js.map +0 -1
  489. package/abstractions/services/ApiStackOutputService.d.ts +0 -29
  490. package/abstractions/services/ApiStackOutputService.js +0 -5
  491. package/abstractions/services/ApiStackOutputService.js.map +0 -1
  492. package/abstractions/services/CoreStackOutputService.d.ts +0 -16
  493. package/abstractions/services/CoreStackOutputService.js +0 -5
  494. package/abstractions/services/CoreStackOutputService.js.map +0 -1
  495. package/exports/extensions.d.ts +0 -5
  496. package/exports/extensions.js +0 -5
  497. package/exports/infra.d.ts +0 -1
  498. package/exports/infra.js +0 -1
  499. package/extensions/AwsDefaultRegion.d.ts +0 -4
  500. package/extensions/AwsDefaultRegion.js +0 -23
  501. package/extensions/AwsDefaultRegion.js.map +0 -1
  502. package/extensions/BackgroundTasks.d.ts +0 -4
  503. package/extensions/BackgroundTasks.js +0 -24
  504. package/extensions/BackgroundTasks.js.map +0 -1
  505. package/extensions/Cms/ModelFieldCompression.d.ts +0 -4
  506. package/extensions/Cms/ModelFieldCompression.js +0 -24
  507. package/extensions/Cms/ModelFieldCompression.js.map +0 -1
  508. package/extensions/Mailer/Smtp.d.ts +0 -8
  509. package/extensions/Mailer/Smtp.js +0 -21
  510. package/extensions/Mailer/Smtp.js.map +0 -1
  511. package/extensions/Mailer/Smtp.test.js +0 -127
  512. package/extensions/Mailer/Smtp.test.js.map +0 -1
  513. package/extensions/Mailer/SmtpParamsSchema.d.ts +0 -9
  514. package/extensions/Mailer/SmtpParamsSchema.js +0 -17
  515. package/extensions/Mailer/SmtpParamsSchema.js.map +0 -1
  516. package/extensions/ProjectAws/AutoInstall.d.ts +0 -9
  517. package/extensions/ProjectAws/AutoInstall.js +0 -20
  518. package/extensions/ProjectAws/AutoInstall.js.map +0 -1
  519. package/extensions/routePath.d.ts +0 -20
  520. package/extensions/routePath.js +0 -13
  521. package/extensions/routePath.js.map +0 -1
  522. package/pulumi/extensions/AdminCustomDomains.d.ts +0 -9
  523. package/pulumi/extensions/AdminCustomDomains.js +0 -20
  524. package/pulumi/extensions/AdminCustomDomains.js.map +0 -1
  525. package/pulumi/extensions/ApiCustomDomains.d.ts +0 -9
  526. package/pulumi/extensions/ApiCustomDomains.js +0 -20
  527. package/pulumi/extensions/ApiCustomDomains.js.map +0 -1
  528. package/pulumi/extensions/AwsTags.d.ts +0 -4
  529. package/pulumi/extensions/AwsTags.js +0 -16
  530. package/pulumi/extensions/AwsTags.js.map +0 -1
  531. package/pulumi/extensions/BlueGreenDeployments.d.ts +0 -34
  532. package/pulumi/extensions/BlueGreenDeployments.js +0 -38
  533. package/pulumi/extensions/BlueGreenDeployments.js.map +0 -1
  534. package/pulumi/extensions/OpenSearch.d.ts +0 -10
  535. package/pulumi/extensions/OpenSearch.js +0 -21
  536. package/pulumi/extensions/OpenSearch.js.map +0 -1
  537. package/pulumi/extensions/Vpc.d.ts +0 -15
  538. package/pulumi/extensions/Vpc.js +0 -26
  539. package/pulumi/extensions/Vpc.js.map +0 -1
  540. /package/extensions/{Mailer/Smtp.test.d.ts → registerExtensionImplementations.d.ts} +0 -0
@@ -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,10 +1,10 @@
1
- import { GetAppStackOutput } from "@webiny/project/abstractions/index.js";
2
- import { InvokeLambdaFunction as InvokeLambdaFunctionAbstraction } from "../abstractions/InvokeLambdaFunction.js";
1
+ import { GetAppStackOutput } from "../abstractions/features/GetAppStackOutput.js";
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;
5
5
  constructor(getAppStackOutput: GetAppStackOutput.Interface);
6
6
  execute<T = any>(params: InvokeLambdaFunctionAbstraction.Params): Promise<InvokeLambdaFunctionAbstraction.Result<T>>;
7
7
  }
8
8
  export declare const InvokeLambdaFunction: typeof InvokeLambdaFunctionImpl & {
9
- __abstraction: import("@webiny/di").Abstraction<import("~/abstractions/InvokeLambdaFunction.js").IInvokeLambdaFunction>;
9
+ __abstraction: import("@webiny/di").Abstraction<import("@webiny/project-extensions-aws/abstractions").IInvokeLambdaFunction>;
10
10
  };
@@ -1,6 +1,5 @@
1
- import { InvokeCommand, LambdaClient } from "@webiny/aws-sdk/client-lambda/index.js";
2
- import { GetAppStackOutput } from "@webiny/project/abstractions/index.js";
3
- import { InvokeLambdaFunction } from "../abstractions/InvokeLambdaFunction.js";
1
+ import { GetAppStackOutput } from "../abstractions/features/GetAppStackOutput.js";
2
+ import { InvokeLambdaFunction } from "@webiny/project-extensions-aws/abstractions/InvokeLambdaFunction.js";
4
3
  class InvokeLambdaFunctionImpl {
5
4
  constructor(getAppStackOutput){
6
5
  this.getAppStackOutput = getAppStackOutput;
@@ -8,6 +7,7 @@ class InvokeLambdaFunctionImpl {
8
7
  async execute(params) {
9
8
  const stackOutput = await this.getAppStackOutput.execute("api");
10
9
  if (!stackOutput) throw new Error("Could not retrieve API stack output for Lambda invocation.");
10
+ const { LambdaClient, InvokeCommand } = await import("@webiny/aws-sdk/client-lambda/index.js");
11
11
  const { region } = stackOutput;
12
12
  const lambdaClient = new LambdaClient({
13
13
  region
@@ -1 +1 @@
1
- {"version":3,"file":"features/InvokeLambdaFunction.js","sources":["../../src/features/InvokeLambdaFunction.ts"],"sourcesContent":["import { LambdaClient, InvokeCommand } from \"@webiny/aws-sdk/client-lambda/index.js\";\nimport { GetAppStackOutput } from \"@webiny/project/abstractions/index.js\";\nimport { InvokeLambdaFunction as InvokeLambdaFunctionAbstraction } from \"~/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 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","region","lambdaClient","LambdaClient","response","InvokeCommand","JSON","decoder","TextDecoder","payload","InvokeLambdaFunction","InvokeLambdaFunctionAbstraction","GetAppStackOutput"],"mappings":";;;AAKO,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;QAGpB,MAAM,EAAEC,MAAM,EAAE,GAAGF;QACnB,MAAMG,eAAe,IAAIC,aAAa;YAAEF;QAAO;QAE/C,MAAMG,WAAW,MAAMF,aAAa,IAAI,CACpC,IAAIG,cAAc;YACd,cAAcP,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,CAACH,SAAS,OAAO;QAE1D,OAAO;YACH,YAAYA,SAAS,UAAU;YAC/BK;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";
@@ -0,0 +1 @@
1
+ export * from "./RefreshApp.js";
@@ -0,0 +1,18 @@
1
+ import { RunPulumiCommand } from "../../abstractions/features/RunPulumiCommand.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 DefaultRunPulumiCommand implements RunPulumiCommand.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: RunPulumiCommand.Params): Promise<{
15
+ pulumiProcess: import("@webiny/pulumi-sdk/Pulumi").PulumiProcess;
16
+ }>;
17
+ }
18
+ export declare const runPulumiCommand: import("@webiny/di").Implementation<typeof DefaultRunPulumiCommand>;
@@ -0,0 +1,65 @@
1
+ import { createImplementation } from "@webiny/di";
2
+ import { RunPulumiCommand } from "../../abstractions/features/RunPulumiCommand.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 DefaultRunPulumiCommand {
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 = 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: params.command,
45
+ execa: {
46
+ env
47
+ }
48
+ })
49
+ };
50
+ }
51
+ }
52
+ const runPulumiCommand = createImplementation({
53
+ abstraction: RunPulumiCommand,
54
+ implementation: DefaultRunPulumiCommand,
55
+ dependencies: [
56
+ GetApp,
57
+ GetProject,
58
+ PulumiSelectStackService,
59
+ GetPulumiService,
60
+ ProjectSdkParamsService
61
+ ]
62
+ });
63
+ export { DefaultRunPulumiCommand, runPulumiCommand };
64
+
65
+ //# sourceMappingURL=RunPulumiCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/RunPulumiCommand/RunPulumiCommand.js","sources":["../../../src/features/RunPulumiCommand/RunPulumiCommand.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { RunPulumiCommand } from \"~/abstractions/features/RunPulumiCommand.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 DefaultRunPulumiCommand implements RunPulumiCommand.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: RunPulumiCommand.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 = 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: params.command as string[],\n execa: { env }\n })\n };\n }\n}\n\nexport const runPulumiCommand = createImplementation({\n abstraction: RunPulumiCommand,\n implementation: DefaultRunPulumiCommand,\n dependencies: [\n GetApp,\n GetProject,\n PulumiSelectStackService,\n GetPulumiService,\n ProjectSdkParamsService\n ]\n});\n"],"names":["DefaultRunPulumiCommand","getApp","getProject","pulumiSelectStackService","getPulumiService","projectSdkParamsService","params","app","sdkParams","Error","pulumi","project","env","createEnvConfiguration","withRegion","withEnv","withEnvVariant","withPulumiConfigPassphrase","withProjectName","runPulumiCommand","createImplementation","RunPulumiCommand","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,MAA+B,EAAE;QAC3C,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,IAAI,CAAC,UAAU,CAAC,OAAO;QAEvC,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,SAASJ,OAAO,OAAO;gBACvB,OAAO;oBAAEM;gBAAI;YACjB;QACJ;IACJ;AACJ;AAEO,MAAMO,mBAAmBC,qBAAqB;IACjD,aAAaC;IACb,gBAAgBrB;IAChB,cAAc;QACVsB;QACAC;QACAC;QACAC;QACAC;KACH;AACL"}
@@ -0,0 +1 @@
1
+ export * from "./RunPulumiCommand.js";
@@ -0,0 +1 @@
1
+ export * from "./RunPulumiCommand.js";