@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.
- package/AwsProjectSdk.d.ts +38 -0
- package/AwsProjectSdk.js +61 -0
- package/AwsProjectSdk.js.map +1 -0
- package/abstractions/features/DestroyApp.d.ts +18 -0
- package/abstractions/features/DestroyApp.js +5 -0
- package/abstractions/features/DestroyApp.js.map +1 -0
- package/abstractions/features/ExportStack.d.ts +18 -0
- package/abstractions/features/ExportStack.js +5 -0
- package/abstractions/features/ExportStack.js.map +1 -0
- package/abstractions/features/GetAppOutput.d.ts +18 -0
- package/abstractions/features/GetAppOutput.js +5 -0
- package/abstractions/features/GetAppOutput.js.map +1 -0
- package/abstractions/features/GetAppStackOutput.d.ts +18 -0
- package/abstractions/features/GetAppStackOutput.js +5 -0
- package/abstractions/features/GetAppStackOutput.js.map +1 -0
- package/abstractions/features/GetPulumiResourceNamePrefix.d.ts +7 -0
- package/abstractions/features/GetPulumiResourceNamePrefix.js +5 -0
- package/abstractions/features/GetPulumiResourceNamePrefix.js.map +1 -0
- package/abstractions/features/RefreshApp.d.ts +18 -0
- package/abstractions/features/RefreshApp.js +5 -0
- package/abstractions/features/RefreshApp.js.map +1 -0
- package/abstractions/features/RunPulumiCommand.d.ts +19 -0
- package/abstractions/features/RunPulumiCommand.js +5 -0
- package/abstractions/features/RunPulumiCommand.js.map +1 -0
- package/abstractions/index.d.ts +21 -0
- package/abstractions/index.js +21 -0
- package/abstractions/pulumiTypes.d.ts +3 -0
- package/abstractions/services/GetPulumiService.d.ts +20 -0
- package/abstractions/services/GetPulumiService.js +5 -0
- package/abstractions/services/GetPulumiService.js.map +1 -0
- package/abstractions/services/GetPulumiVersionService.d.ts +12 -0
- package/abstractions/services/GetPulumiVersionService.js +5 -0
- package/abstractions/services/GetPulumiVersionService.js.map +1 -0
- package/abstractions/services/IsRemotePulumiBackendService.d.ts +7 -0
- package/abstractions/services/IsRemotePulumiBackendService.js +5 -0
- package/abstractions/services/IsRemotePulumiBackendService.js.map +1 -0
- package/abstractions/services/ListAppLambdaFunctionsService.d.ts +23 -0
- package/abstractions/services/ListAppLambdaFunctionsService.js +5 -0
- package/abstractions/services/ListAppLambdaFunctionsService.js.map +1 -0
- package/abstractions/services/ListDeployedEnvironmentsService.d.ts +12 -0
- package/abstractions/services/ListDeployedEnvironmentsService.js +5 -0
- package/abstractions/services/ListDeployedEnvironmentsService.js.map +1 -0
- package/abstractions/services/PulumiExportService.d.ts +13 -0
- package/abstractions/services/PulumiExportService.js +6 -0
- package/abstractions/services/PulumiExportService.js.map +1 -0
- package/abstractions/services/PulumiGetConfigPassphraseService.d.ts +7 -0
- package/abstractions/services/PulumiGetConfigPassphraseService.js +5 -0
- package/abstractions/services/PulumiGetConfigPassphraseService.js.map +1 -0
- package/abstractions/services/PulumiGetSecretsProviderService.d.ts +7 -0
- package/abstractions/services/PulumiGetSecretsProviderService.js +5 -0
- package/abstractions/services/PulumiGetSecretsProviderService.js.map +1 -0
- package/abstractions/services/PulumiGetStackOutputService.d.ts +13 -0
- package/abstractions/services/PulumiGetStackOutputService.js +5 -0
- package/abstractions/services/PulumiGetStackOutputService.js.map +1 -0
- package/abstractions/services/PulumiImportService.d.ts +8 -0
- package/abstractions/services/PulumiImportService.js +5 -0
- package/abstractions/services/PulumiImportService.js.map +1 -0
- package/abstractions/services/PulumiLoginService.d.ts +19 -0
- package/abstractions/services/PulumiLoginService.js +5 -0
- package/abstractions/services/PulumiLoginService.js.map +1 -0
- package/abstractions/services/PulumiSelectStackService.d.ts +10 -0
- package/abstractions/services/PulumiSelectStackService.js +5 -0
- package/abstractions/services/PulumiSelectStackService.js.map +1 -0
- package/abstractions/services/StackOutputCacheService.d.ts +10 -0
- package/abstractions/services/StackOutputCacheService.js +5 -0
- package/abstractions/services/StackOutputCacheService.js.map +1 -0
- package/abstractions/services/WatchedLambdaFunctionsService.d.ts +28 -0
- package/abstractions/services/WatchedLambdaFunctionsService.js +5 -0
- package/abstractions/services/WatchedLambdaFunctionsService.js.map +1 -0
- package/api.d.ts +1 -15
- package/decorators/DeployAppClearWatchedLambdaFunctions.d.ts +20 -0
- package/decorators/DeployAppClearWatchedLambdaFunctions.js +35 -0
- package/decorators/DeployAppClearWatchedLambdaFunctions.js.map +1 -0
- package/decorators/DeployAppRefreshStackOutputCache.d.ts +20 -0
- package/decorators/DeployAppRefreshStackOutputCache.js +34 -0
- package/decorators/DeployAppRefreshStackOutputCache.js.map +1 -0
- package/decorators/DeployAppWithHooks.d.ts +25 -0
- package/decorators/DeployAppWithHooks.js +58 -0
- package/decorators/DeployAppWithHooks.js.map +1 -0
- package/decorators/DeployAppWithWatchedLambdaReplacement.d.ts +20 -0
- package/decorators/DeployAppWithWatchedLambdaReplacement.js +42 -0
- package/decorators/DeployAppWithWatchedLambdaReplacement.js.map +1 -0
- package/decorators/DestroyAppClearStackOutputCache.d.ts +28 -0
- package/decorators/DestroyAppClearStackOutputCache.js +31 -0
- package/decorators/DestroyAppClearStackOutputCache.js.map +1 -0
- package/decorators/GetPulumiServiceWithDownloadInfo.d.ts +13 -0
- package/decorators/GetPulumiServiceWithDownloadInfo.js +28 -0
- package/decorators/GetPulumiServiceWithDownloadInfo.js.map +1 -0
- package/decorators/ProjectInfoWithPulumi.d.ts +34 -0
- package/decorators/ProjectInfoWithPulumi.js +36 -0
- package/decorators/ProjectInfoWithPulumi.js.map +1 -0
- package/extensions/ApiRoute.d.ts +7 -16
- package/extensions/ApiRoute.js +4 -66
- package/extensions/ApiRoute.js.map +1 -1
- package/extensions/OpenSearch/EnsureOsServiceRoleBeforeCoreDeploy.d.ts +3 -2
- package/extensions/OpenSearch/EnsureOsServiceRoleBeforeCoreDeploy.js +2 -1
- package/extensions/OpenSearch/EnsureOsServiceRoleBeforeCoreDeploy.js.map +1 -1
- package/extensions/OpenSearch/EnsureOsWasDeployed.d.ts +2 -2
- package/extensions/OpenSearch/EnsureOsWasDeployed.js +1 -2
- package/extensions/OpenSearch/EnsureOsWasDeployed.js.map +1 -1
- package/extensions/OpenSearch.js +2 -2
- package/extensions/OpenSearch.js.map +1 -1
- package/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.d.ts +2 -2
- package/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.js +2 -1
- package/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.js.map +1 -1
- package/extensions/ProjectAws/BlueGreenDeployments/EnsureVariantBeforeDeploy.d.ts +3 -2
- package/extensions/ProjectAws/BlueGreenDeployments/EnsureVariantBeforeDeploy.js +2 -1
- package/extensions/ProjectAws/BlueGreenDeployments/EnsureVariantBeforeDeploy.js.map +1 -1
- package/extensions/ProjectAws/BlueGreenDeployments/PrintDeploymentInfoAfterDeploy.d.ts +5 -2
- package/extensions/ProjectAws/BlueGreenDeployments/PrintDeploymentInfoAfterDeploy.js +3 -1
- package/extensions/ProjectAws/BlueGreenDeployments/PrintDeploymentInfoAfterDeploy.js.map +1 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminBuild.d.ts +3 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminBuild.js +2 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminBuild.js.map +1 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminWatch.d.ts +3 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminWatch.js +2 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminWatch.js.map +1 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeWatch.d.ts +3 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeWatch.js +2 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeWatch.js.map +1 -1
- package/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.d.ts +3 -2
- package/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.js +2 -1
- package/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.js.map +1 -1
- package/extensions/ProjectAws/EnsureCoreDeployedBeforeApiDeploy.d.ts +4 -2
- package/extensions/ProjectAws/EnsureCoreDeployedBeforeApiDeploy.js +3 -1
- package/extensions/ProjectAws/EnsureCoreDeployedBeforeApiDeploy.js.map +1 -1
- package/extensions/ProjectAws/EnsureTelemetryEnabledForOss.d.ts +6 -2
- package/extensions/ProjectAws/EnsureTelemetryEnabledForOss.js +2 -1
- package/extensions/ProjectAws/EnsureTelemetryEnabledForOss.js.map +1 -1
- package/extensions/ProjectAws/TelemetryNoLongerNewUser.d.ts +2 -2
- package/extensions/ProjectAws/TelemetryNoLongerNewUser.js +1 -1
- package/extensions/ProjectAws/TelemetryNoLongerNewUser.js.map +1 -1
- package/extensions/ProjectAws/UploadAdminAppToS3.d.ts +4 -2
- package/extensions/ProjectAws/UploadAdminAppToS3.js +2 -2
- package/extensions/ProjectAws/UploadAdminAppToS3.js.map +1 -1
- package/extensions/ProjectAws/ValidateEncryptionBeforeDeploy.d.ts +5 -2
- package/extensions/ProjectAws/ValidateEncryptionBeforeDeploy.js +2 -1
- package/extensions/ProjectAws/ValidateEncryptionBeforeDeploy.js.map +1 -1
- package/extensions/ProjectAws/ValidateProductionPulumiState.d.ts +5 -2
- package/extensions/ProjectAws/ValidateProductionPulumiState.js +3 -1
- package/extensions/ProjectAws/ValidateProductionPulumiState.js.map +1 -1
- package/extensions/ProjectAws/definitions.js +5 -1
- package/extensions/ProjectAws/definitions.js.map +1 -1
- package/extensions/ProjectAws.js +2 -1
- package/extensions/ProjectAws.js.map +1 -1
- package/extensions/RegisterRoutesPulumi.js +2 -2
- package/extensions/RegisterRoutesPulumi.js.map +1 -1
- package/extensions/definitions.js +0 -2
- package/extensions/definitions.js.map +1 -1
- package/extensions/registerExtensionImplementations.js +2 -1
- package/extensions/registerExtensionImplementations.js.map +1 -1
- package/extensions/toApiGatewayPath.d.ts +2 -0
- package/extensions/toApiGatewayPath.js +6 -0
- package/extensions/toApiGatewayPath.js.map +1 -0
- package/features/DeployApp/DeployApp.d.ts +22 -0
- package/features/DeployApp/DeployApp.js +91 -0
- package/features/DeployApp/DeployApp.js.map +1 -0
- package/features/DeployApp/index.d.ts +1 -0
- package/features/DeployApp/index.js +1 -0
- package/features/DestroyApp/DestroyApp.d.ts +20 -0
- package/features/DestroyApp/DestroyApp.js +70 -0
- package/features/DestroyApp/DestroyApp.js.map +1 -0
- package/features/DestroyApp/index.d.ts +1 -0
- package/features/DestroyApp/index.js +1 -0
- package/features/ExportStack/ExportStack.d.ts +12 -0
- package/features/ExportStack/ExportStack.js +28 -0
- package/features/ExportStack/ExportStack.js.map +1 -0
- package/features/ExportStack/index.d.ts +1 -0
- package/features/ExportStack/index.js +1 -0
- package/features/GetAppOutput/GetAppOutput.d.ts +16 -0
- package/features/GetAppOutput/GetAppOutput.js +55 -0
- package/features/GetAppOutput/GetAppOutput.js.map +1 -0
- package/features/GetAppOutput/index.d.ts +1 -0
- package/features/GetAppOutput/index.js +1 -0
- package/features/GetAppStackOutput/GetAppStackOutput.d.ts +13 -0
- package/features/GetAppStackOutput/GetAppStackOutput.js +28 -0
- package/features/GetAppStackOutput/GetAppStackOutput.js.map +1 -0
- package/features/GetAppStackOutput/index.d.ts +1 -0
- package/features/GetAppStackOutput/index.js +1 -0
- package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.d.ts +8 -0
- package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js +26 -0
- package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js.map +1 -0
- package/features/GetPulumiResourceNamePrefix/index.d.ts +1 -0
- package/features/GetPulumiResourceNamePrefix/index.js +1 -0
- package/features/InvokeLambdaFunction.d.ts +1 -1
- package/features/InvokeLambdaFunction.js +1 -1
- package/features/InvokeLambdaFunction.js.map +1 -1
- package/features/RefreshApp/RefreshApp.d.ts +18 -0
- package/features/RefreshApp/RefreshApp.js +68 -0
- package/features/RefreshApp/RefreshApp.js.map +1 -0
- package/features/RefreshApp/index.d.ts +1 -0
- package/features/RefreshApp/index.js +1 -0
- package/features/RunPulumiCommand/RunPulumiCommand.d.ts +18 -0
- package/features/RunPulumiCommand/RunPulumiCommand.js +65 -0
- package/features/RunPulumiCommand/RunPulumiCommand.js.map +1 -0
- package/features/RunPulumiCommand/index.d.ts +1 -0
- package/features/RunPulumiCommand/index.js +1 -0
- package/features/Watch/AwsWatch.d.ts +9 -1
- package/features/Watch/AwsWatch.js +6 -2
- package/features/Watch/AwsWatch.js.map +1 -1
- package/features/Watch/getIotEndpoint.d.ts +2 -2
- package/features/Watch/getIotEndpoint.js.map +1 -1
- package/features/Watch/initInvocationForwarding.d.ts +9 -0
- package/features/Watch/initInvocationForwarding.js +91 -0
- package/features/Watch/initInvocationForwarding.js.map +1 -0
- package/features/Watch/localInvocationWorker.d.ts +1 -0
- package/features/Watch/localInvocationWorker.js +31 -0
- package/features/Watch/localInvocationWorker.js.map +1 -0
- package/features/Watch/replaceLambdaFunctions.d.ts +7 -3
- package/features/Watch/replaceLambdaFunctions.js.map +1 -1
- package/features/hooks/AdminAfterDeploy/AdminAfterDeploy.d.ts +7 -0
- package/features/hooks/AdminAfterDeploy/AdminAfterDeploy.js +25 -0
- package/features/hooks/AdminAfterDeploy/AdminAfterDeploy.js.map +1 -0
- package/features/hooks/AdminAfterDeploy/index.d.ts +1 -0
- package/features/hooks/AdminAfterDeploy/index.js +1 -0
- package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.d.ts +7 -0
- package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.js +25 -0
- package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.js.map +1 -0
- package/features/hooks/AdminBeforeDeploy/index.d.ts +1 -0
- package/features/hooks/AdminBeforeDeploy/index.js +1 -0
- package/features/hooks/AfterDeploy/AfterDeploy.d.ts +7 -0
- package/features/hooks/AfterDeploy/AfterDeploy.js +25 -0
- package/features/hooks/AfterDeploy/AfterDeploy.js.map +1 -0
- package/features/hooks/AfterDeploy/index.d.ts +1 -0
- package/features/hooks/AfterDeploy/index.js +1 -0
- package/features/hooks/ApiAfterDeploy/ApiAfterDeploy.d.ts +7 -0
- package/features/hooks/ApiAfterDeploy/ApiAfterDeploy.js +25 -0
- package/features/hooks/ApiAfterDeploy/ApiAfterDeploy.js.map +1 -0
- package/features/hooks/ApiAfterDeploy/index.d.ts +1 -0
- package/features/hooks/ApiAfterDeploy/index.js +1 -0
- package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.d.ts +7 -0
- package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.js +25 -0
- package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.js.map +1 -0
- package/features/hooks/ApiBeforeDeploy/index.d.ts +1 -0
- package/features/hooks/ApiBeforeDeploy/index.js +1 -0
- package/features/hooks/BeforeDeploy/BeforeDeploy.d.ts +7 -0
- package/features/hooks/BeforeDeploy/BeforeDeploy.js +25 -0
- package/features/hooks/BeforeDeploy/BeforeDeploy.js.map +1 -0
- package/features/hooks/BeforeDeploy/index.d.ts +1 -0
- package/features/hooks/BeforeDeploy/index.js +1 -0
- package/features/hooks/CoreAfterDeploy/CoreAfterDeploy.d.ts +7 -0
- package/features/hooks/CoreAfterDeploy/CoreAfterDeploy.js +25 -0
- package/features/hooks/CoreAfterDeploy/CoreAfterDeploy.js.map +1 -0
- package/features/hooks/CoreAfterDeploy/index.d.ts +1 -0
- package/features/hooks/CoreAfterDeploy/index.js +1 -0
- package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.d.ts +7 -0
- package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.js +25 -0
- package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.js.map +1 -0
- package/features/hooks/CoreBeforeDeploy/index.d.ts +1 -0
- package/features/hooks/CoreBeforeDeploy/index.js +1 -0
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/infra.js +2 -2
- package/infra.js.map +1 -1
- package/package.json +15 -12
- package/pulumi/apps/blueGreen/types.d.ts +2 -2
- package/pulumi/apps/syncSystem/types.d.ts +2 -2
- package/pulumi/getAwsProjectSdk.d.ts +2 -12
- package/pulumi/getAwsProjectSdk.js +2 -3
- package/pulumi/getAwsProjectSdk.js.map +1 -1
- package/pulumi/getStackOutput.d.ts +4 -5
- package/pulumi/getStackOutput.js.map +1 -1
- package/pulumi/types.d.ts +2 -2
- package/registerAwsProjectFeatures.js +38 -9
- package/registerAwsProjectFeatures.js.map +1 -1
- package/services/AdminStackOutputService.d.ts +1 -1
- package/services/AdminStackOutputService.js +1 -1
- package/services/AdminStackOutputService.js.map +1 -1
- package/services/ApiStackOutputService.d.ts +1 -1
- package/services/ApiStackOutputService.js +1 -1
- package/services/ApiStackOutputService.js.map +1 -1
- package/services/AwsDeployInitHostingSdkService/AwsDeployInitHostingSdkService.d.ts +10 -0
- package/services/AwsDeployInitHostingSdkService/AwsDeployInitHostingSdkService.js +30 -0
- package/services/AwsDeployInitHostingSdkService/AwsDeployInitHostingSdkService.js.map +1 -0
- package/services/AwsPulumiInitHostingSdkService/AwsPulumiInitHostingSdkService.d.ts +9 -0
- package/services/AwsPulumiInitHostingSdkService/AwsPulumiInitHostingSdkService.js +24 -0
- package/services/AwsPulumiInitHostingSdkService/AwsPulumiInitHostingSdkService.js.map +1 -0
- package/services/CoreStackOutputService.d.ts +1 -1
- package/services/CoreStackOutputService.js +1 -1
- package/services/CoreStackOutputService.js.map +1 -1
- package/services/GetPulumiService/GetPulumiService.d.ts +3 -1
- package/services/GetPulumiService/GetPulumiService.js +2 -1
- package/services/GetPulumiService/GetPulumiService.js.map +1 -1
- package/services/GetPulumiVersionService/GetPulumiVersionService.d.ts +5 -0
- package/services/GetPulumiVersionService/GetPulumiVersionService.js +46 -0
- package/services/GetPulumiVersionService/GetPulumiVersionService.js.map +1 -0
- package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.d.ts +14 -0
- package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.js +15 -0
- package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.js.map +1 -0
- package/services/IsRemotePulumiBackendService/index.d.ts +1 -0
- package/services/IsRemotePulumiBackendService/index.js +1 -0
- package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.d.ts +20 -0
- package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.js +63 -0
- package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.js.map +1 -0
- package/services/ListAppLambdaFunctionsService/index.d.ts +1 -0
- package/services/ListAppLambdaFunctionsService/index.js +1 -0
- package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.d.ts +8 -0
- package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.js +31 -0
- package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.js.map +1 -0
- package/services/ListDeployedEnvironmentsService/index.d.ts +1 -0
- package/services/ListDeployedEnvironmentsService/index.js +1 -0
- package/services/PulumiExportService/PulumiExportService.d.ts +16 -0
- package/services/PulumiExportService/PulumiExportService.js +54 -0
- package/services/PulumiExportService/PulumiExportService.js.map +1 -0
- package/services/PulumiExportService/index.d.ts +1 -0
- package/services/PulumiExportService/index.js +1 -0
- package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.d.ts +5 -0
- package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.js +15 -0
- package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.js.map +1 -0
- package/services/PulumiGetConfigPassphraseService/index.d.ts +1 -0
- package/services/PulumiGetConfigPassphraseService/index.js +1 -0
- package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.d.ts +5 -0
- package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.js +15 -0
- package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.js.map +1 -0
- package/services/PulumiGetSecretsProviderService/index.d.ts +1 -0
- package/services/PulumiGetSecretsProviderService/index.js +1 -0
- package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.d.ts +16 -0
- package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js +69 -0
- package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js.map +1 -0
- package/services/PulumiGetStackOutputService/index.d.ts +1 -0
- package/services/PulumiGetStackOutputService/index.js +1 -0
- package/services/PulumiGetStackOutputService/mapStackOutput.d.ts +1 -0
- package/services/PulumiGetStackOutputService/mapStackOutput.js +22 -0
- package/services/PulumiGetStackOutputService/mapStackOutput.js.map +1 -0
- package/services/PulumiImportService/PulumiImportService.d.ts +13 -0
- package/services/PulumiImportService/PulumiImportService.js +64 -0
- package/services/PulumiImportService/PulumiImportService.js.map +1 -0
- package/services/PulumiImportService/index.d.ts +1 -0
- package/services/PulumiImportService/index.js +1 -0
- package/services/PulumiLoginService/PulumiLoginService.d.ts +13 -0
- package/services/PulumiLoginService/PulumiLoginService.js +59 -0
- package/services/PulumiLoginService/PulumiLoginService.js.map +1 -0
- package/services/PulumiLoginService/index.d.ts +1 -0
- package/services/PulumiLoginService/index.js +1 -0
- package/services/PulumiSelectStackService/PulumiSelectStackService.d.ts +20 -0
- package/services/PulumiSelectStackService/PulumiSelectStackService.js +106 -0
- package/services/PulumiSelectStackService/PulumiSelectStackService.js.map +1 -0
- package/services/PulumiSelectStackService/index.d.ts +1 -0
- package/services/PulumiSelectStackService/index.js +1 -0
- package/services/StackOutputCacheService/StackOutputCacheService.d.ts +21 -0
- package/services/StackOutputCacheService/StackOutputCacheService.js +90 -0
- package/services/StackOutputCacheService/StackOutputCacheService.js.map +1 -0
- package/services/StackOutputCacheService/index.d.ts +1 -0
- package/services/StackOutputCacheService/index.js +1 -0
- package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.d.ts +14 -0
- package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js +55 -0
- package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js.map +1 -0
- package/services/WatchedLambdaFunctionsService/index.d.ts +1 -0
- package/services/WatchedLambdaFunctionsService/index.js +1 -0
- package/utils/withPulumiConfigPassphrase.d.ts +1 -0
- package/utils/withPulumiConfigPassphrase.js +7 -0
- package/utils/withPulumiConfigPassphrase.js.map +1 -0
- package/extensions/routePath.d.ts +0 -20
- package/extensions/routePath.js +0 -13
- 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 "
|
|
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 "
|
|
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 \"
|
|
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";
|