@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,25 @@
|
|
|
1
|
+
import { createComposite } from "@webiny/di";
|
|
2
|
+
import { ApiAfterDeploy } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
3
|
+
class CompositeApiAfterDeploy {
|
|
4
|
+
constructor(apiAfterDeploy){
|
|
5
|
+
this.apiAfterDeploy = apiAfterDeploy;
|
|
6
|
+
}
|
|
7
|
+
async execute(params) {
|
|
8
|
+
for (const beforeBuild of this.apiAfterDeploy)await beforeBuild.execute(params);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
const ApiAfterDeploy_apiAfterDeploy = createComposite({
|
|
12
|
+
abstraction: ApiAfterDeploy,
|
|
13
|
+
implementation: CompositeApiAfterDeploy,
|
|
14
|
+
dependencies: [
|
|
15
|
+
[
|
|
16
|
+
ApiAfterDeploy,
|
|
17
|
+
{
|
|
18
|
+
multiple: true
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
]
|
|
22
|
+
});
|
|
23
|
+
export { ApiAfterDeploy_apiAfterDeploy as apiAfterDeploy, CompositeApiAfterDeploy };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=ApiAfterDeploy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/hooks/ApiAfterDeploy/ApiAfterDeploy.js","sources":["../../../../src/features/hooks/ApiAfterDeploy/ApiAfterDeploy.ts"],"sourcesContent":["import { createComposite } from \"@webiny/di\";\nimport { ApiAfterDeploy } from \"@webiny/project-extensions-aws/abstractions/index.js\";\n\nexport class CompositeApiAfterDeploy implements ApiAfterDeploy.Interface {\n constructor(private apiAfterDeploy: ApiAfterDeploy.Interface[]) {}\n\n async execute(params: ApiAfterDeploy.Params) {\n for (const beforeBuild of this.apiAfterDeploy) {\n await beforeBuild.execute(params);\n }\n }\n}\n\nexport const apiAfterDeploy = createComposite({\n abstraction: ApiAfterDeploy,\n implementation: CompositeApiAfterDeploy,\n dependencies: [[ApiAfterDeploy, { multiple: true }]]\n});\n"],"names":["CompositeApiAfterDeploy","apiAfterDeploy","params","beforeBuild","createComposite","ApiAfterDeploy"],"mappings":";;AAGO,MAAMA;IACT,YAAoBC,cAA0C,CAAE;aAA5CA,cAAc,GAAdA;IAA6C;IAEjE,MAAM,QAAQC,MAA6B,EAAE;QACzC,KAAK,MAAMC,eAAe,IAAI,CAAC,cAAc,CACzC,MAAMA,YAAY,OAAO,CAACD;IAElC;AACJ;AAEO,MAAMD,gCAAiBG,gBAAgB;IAC1C,aAAaC;IACb,gBAAgBL;IAChB,cAAc;QAAC;YAACK;YAAgB;gBAAE,UAAU;YAAK;SAAE;KAAC;AACxD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ApiAfterDeploy.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ApiAfterDeploy.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ApiBeforeDeploy } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
2
|
+
export declare class CompositeApiBeforeDeploy implements ApiBeforeDeploy.Interface {
|
|
3
|
+
private apiBeforeDeploy;
|
|
4
|
+
constructor(apiBeforeDeploy: ApiBeforeDeploy.Interface[]);
|
|
5
|
+
execute(params: ApiBeforeDeploy.Params): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
export declare const apiBeforeDeploy: import("@webiny/di").Implementation<typeof CompositeApiBeforeDeploy>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createComposite } from "@webiny/di";
|
|
2
|
+
import { ApiBeforeDeploy } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
3
|
+
class CompositeApiBeforeDeploy {
|
|
4
|
+
constructor(apiBeforeDeploy){
|
|
5
|
+
this.apiBeforeDeploy = apiBeforeDeploy;
|
|
6
|
+
}
|
|
7
|
+
async execute(params) {
|
|
8
|
+
for (const beforeDeploy of this.apiBeforeDeploy)await beforeDeploy.execute(params);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
const ApiBeforeDeploy_apiBeforeDeploy = createComposite({
|
|
12
|
+
abstraction: ApiBeforeDeploy,
|
|
13
|
+
implementation: CompositeApiBeforeDeploy,
|
|
14
|
+
dependencies: [
|
|
15
|
+
[
|
|
16
|
+
ApiBeforeDeploy,
|
|
17
|
+
{
|
|
18
|
+
multiple: true
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
]
|
|
22
|
+
});
|
|
23
|
+
export { ApiBeforeDeploy_apiBeforeDeploy as apiBeforeDeploy, CompositeApiBeforeDeploy };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=ApiBeforeDeploy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.js","sources":["../../../../src/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.ts"],"sourcesContent":["import { createComposite } from \"@webiny/di\";\nimport { ApiBeforeDeploy } from \"@webiny/project-extensions-aws/abstractions/index.js\";\n\nexport class CompositeApiBeforeDeploy implements ApiBeforeDeploy.Interface {\n constructor(private apiBeforeDeploy: ApiBeforeDeploy.Interface[]) {}\n\n async execute(params: ApiBeforeDeploy.Params) {\n for (const beforeDeploy of this.apiBeforeDeploy) {\n await beforeDeploy.execute(params);\n }\n }\n}\n\nexport const apiBeforeDeploy = createComposite({\n abstraction: ApiBeforeDeploy,\n implementation: CompositeApiBeforeDeploy,\n dependencies: [[ApiBeforeDeploy, { multiple: true }]]\n});\n"],"names":["CompositeApiBeforeDeploy","apiBeforeDeploy","params","beforeDeploy","createComposite","ApiBeforeDeploy"],"mappings":";;AAGO,MAAMA;IACT,YAAoBC,eAA4C,CAAE;aAA9CA,eAAe,GAAfA;IAA+C;IAEnE,MAAM,QAAQC,MAA8B,EAAE;QAC1C,KAAK,MAAMC,gBAAgB,IAAI,CAAC,eAAe,CAC3C,MAAMA,aAAa,OAAO,CAACD;IAEnC;AACJ;AAEO,MAAMD,kCAAkBG,gBAAgB;IAC3C,aAAaC;IACb,gBAAgBL;IAChB,cAAc;QAAC;YAACK;YAAiB;gBAAE,UAAU;YAAK;SAAE;KAAC;AACzD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ApiBeforeDeploy.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ApiBeforeDeploy.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BeforeDeploy } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
2
|
+
export declare class CompositeBeforeDeploy implements BeforeDeploy.Interface {
|
|
3
|
+
private BeforeDeploy;
|
|
4
|
+
constructor(BeforeDeploy: BeforeDeploy.Interface[]);
|
|
5
|
+
execute(params: BeforeDeploy.Params): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
export declare const beforeDeploy: import("@webiny/di").Implementation<typeof CompositeBeforeDeploy>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createComposite } from "@webiny/di";
|
|
2
|
+
import { BeforeDeploy as index_js_BeforeDeploy } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
3
|
+
class CompositeBeforeDeploy {
|
|
4
|
+
constructor(BeforeDeploy){
|
|
5
|
+
this.BeforeDeploy = BeforeDeploy;
|
|
6
|
+
}
|
|
7
|
+
async execute(params) {
|
|
8
|
+
for (const beforeDeploy of this.BeforeDeploy)await beforeDeploy.execute(params);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
const BeforeDeploy_beforeDeploy = createComposite({
|
|
12
|
+
abstraction: index_js_BeforeDeploy,
|
|
13
|
+
implementation: CompositeBeforeDeploy,
|
|
14
|
+
dependencies: [
|
|
15
|
+
[
|
|
16
|
+
index_js_BeforeDeploy,
|
|
17
|
+
{
|
|
18
|
+
multiple: true
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
]
|
|
22
|
+
});
|
|
23
|
+
export { BeforeDeploy_beforeDeploy as beforeDeploy, CompositeBeforeDeploy };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=BeforeDeploy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/hooks/BeforeDeploy/BeforeDeploy.js","sources":["../../../../src/features/hooks/BeforeDeploy/BeforeDeploy.ts"],"sourcesContent":["import { createComposite } from \"@webiny/di\";\nimport { BeforeDeploy } from \"@webiny/project-extensions-aws/abstractions/index.js\";\n\nexport class CompositeBeforeDeploy implements BeforeDeploy.Interface {\n constructor(private BeforeDeploy: BeforeDeploy.Interface[]) {}\n\n async execute(params: BeforeDeploy.Params) {\n for (const beforeDeploy of this.BeforeDeploy) {\n await beforeDeploy.execute(params);\n }\n }\n}\n\nexport const beforeDeploy = createComposite({\n abstraction: BeforeDeploy,\n implementation: CompositeBeforeDeploy,\n dependencies: [[BeforeDeploy, { multiple: true }]]\n});\n"],"names":["CompositeBeforeDeploy","BeforeDeploy","params","beforeDeploy","createComposite"],"mappings":";;AAGO,MAAMA;IACT,YAAoBC,YAAsC,CAAE;aAAxCA,YAAY,GAAZA;IAAyC;IAE7D,MAAM,QAAQC,MAA2B,EAAE;QACvC,KAAK,MAAMC,gBAAgB,IAAI,CAAC,YAAY,CACxC,MAAMA,aAAa,OAAO,CAACD;IAEnC;AACJ;AAEO,MAAMC,4BAAeC,gBAAgB;IACxC,aAAaH;IACb,gBAAgBD;IAChB,cAAc;QAAC;YAACC;YAAc;gBAAE,UAAU;YAAK;SAAE;KAAC;AACtD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./BeforeDeploy.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./BeforeDeploy.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CoreAfterDeploy } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
2
|
+
export declare class CompositeCoreAfterDeploy implements CoreAfterDeploy.Interface {
|
|
3
|
+
private coreAfterDeploy;
|
|
4
|
+
constructor(coreAfterDeploy: CoreAfterDeploy.Interface[]);
|
|
5
|
+
execute(params: CoreAfterDeploy.Params): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
export declare const coreAfterDeploy: import("@webiny/di").Implementation<typeof CompositeCoreAfterDeploy>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createComposite } from "@webiny/di";
|
|
2
|
+
import { CoreAfterDeploy } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
3
|
+
class CompositeCoreAfterDeploy {
|
|
4
|
+
constructor(coreAfterDeploy){
|
|
5
|
+
this.coreAfterDeploy = coreAfterDeploy;
|
|
6
|
+
}
|
|
7
|
+
async execute(params) {
|
|
8
|
+
for (const beforeBuild of this.coreAfterDeploy)await beforeBuild.execute(params);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
const CoreAfterDeploy_coreAfterDeploy = createComposite({
|
|
12
|
+
abstraction: CoreAfterDeploy,
|
|
13
|
+
implementation: CompositeCoreAfterDeploy,
|
|
14
|
+
dependencies: [
|
|
15
|
+
[
|
|
16
|
+
CoreAfterDeploy,
|
|
17
|
+
{
|
|
18
|
+
multiple: true
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
]
|
|
22
|
+
});
|
|
23
|
+
export { CompositeCoreAfterDeploy, CoreAfterDeploy_coreAfterDeploy as coreAfterDeploy };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=CoreAfterDeploy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/hooks/CoreAfterDeploy/CoreAfterDeploy.js","sources":["../../../../src/features/hooks/CoreAfterDeploy/CoreAfterDeploy.ts"],"sourcesContent":["import { createComposite } from \"@webiny/di\";\nimport { CoreAfterDeploy } from \"@webiny/project-extensions-aws/abstractions/index.js\";\n\nexport class CompositeCoreAfterDeploy implements CoreAfterDeploy.Interface {\n constructor(private coreAfterDeploy: CoreAfterDeploy.Interface[]) {}\n\n async execute(params: CoreAfterDeploy.Params) {\n for (const beforeBuild of this.coreAfterDeploy) {\n await beforeBuild.execute(params);\n }\n }\n}\n\nexport const coreAfterDeploy = createComposite({\n abstraction: CoreAfterDeploy,\n implementation: CompositeCoreAfterDeploy,\n dependencies: [[CoreAfterDeploy, { multiple: true }]]\n});\n"],"names":["CompositeCoreAfterDeploy","coreAfterDeploy","params","beforeBuild","createComposite","CoreAfterDeploy"],"mappings":";;AAGO,MAAMA;IACT,YAAoBC,eAA4C,CAAE;aAA9CA,eAAe,GAAfA;IAA+C;IAEnE,MAAM,QAAQC,MAA8B,EAAE;QAC1C,KAAK,MAAMC,eAAe,IAAI,CAAC,eAAe,CAC1C,MAAMA,YAAY,OAAO,CAACD;IAElC;AACJ;AAEO,MAAMD,kCAAkBG,gBAAgB;IAC3C,aAAaC;IACb,gBAAgBL;IAChB,cAAc;QAAC;YAACK;YAAiB;gBAAE,UAAU;YAAK;SAAE;KAAC;AACzD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CoreAfterDeploy.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CoreAfterDeploy.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CoreBeforeDeploy } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
2
|
+
export declare class CompositeCoreBeforeDeploy implements CoreBeforeDeploy.Interface {
|
|
3
|
+
private coreBeforeDeploy;
|
|
4
|
+
constructor(coreBeforeDeploy: CoreBeforeDeploy.Interface[]);
|
|
5
|
+
execute(params: CoreBeforeDeploy.Params): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
export declare const coreBeforeDeploy: import("@webiny/di").Implementation<typeof CompositeCoreBeforeDeploy>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createComposite } from "@webiny/di";
|
|
2
|
+
import { CoreBeforeDeploy } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
3
|
+
class CompositeCoreBeforeDeploy {
|
|
4
|
+
constructor(coreBeforeDeploy){
|
|
5
|
+
this.coreBeforeDeploy = coreBeforeDeploy;
|
|
6
|
+
}
|
|
7
|
+
async execute(params) {
|
|
8
|
+
for (const beforeDeploy of this.coreBeforeDeploy)await beforeDeploy.execute(params);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
const CoreBeforeDeploy_coreBeforeDeploy = createComposite({
|
|
12
|
+
abstraction: CoreBeforeDeploy,
|
|
13
|
+
implementation: CompositeCoreBeforeDeploy,
|
|
14
|
+
dependencies: [
|
|
15
|
+
[
|
|
16
|
+
CoreBeforeDeploy,
|
|
17
|
+
{
|
|
18
|
+
multiple: true
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
]
|
|
22
|
+
});
|
|
23
|
+
export { CompositeCoreBeforeDeploy, CoreBeforeDeploy_coreBeforeDeploy as coreBeforeDeploy };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=CoreBeforeDeploy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.js","sources":["../../../../src/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.ts"],"sourcesContent":["import { createComposite } from \"@webiny/di\";\nimport { CoreBeforeDeploy } from \"@webiny/project-extensions-aws/abstractions/index.js\";\n\nexport class CompositeCoreBeforeDeploy implements CoreBeforeDeploy.Interface {\n constructor(private coreBeforeDeploy: CoreBeforeDeploy.Interface[]) {}\n\n async execute(params: CoreBeforeDeploy.Params) {\n for (const beforeDeploy of this.coreBeforeDeploy) {\n await beforeDeploy.execute(params);\n }\n }\n}\n\nexport const coreBeforeDeploy = createComposite({\n abstraction: CoreBeforeDeploy,\n implementation: CompositeCoreBeforeDeploy,\n dependencies: [[CoreBeforeDeploy, { multiple: true }]]\n});\n"],"names":["CompositeCoreBeforeDeploy","coreBeforeDeploy","params","beforeDeploy","createComposite","CoreBeforeDeploy"],"mappings":";;AAGO,MAAMA;IACT,YAAoBC,gBAA8C,CAAE;aAAhDA,gBAAgB,GAAhBA;IAAiD;IAErE,MAAM,QAAQC,MAA+B,EAAE;QAC3C,KAAK,MAAMC,gBAAgB,IAAI,CAAC,gBAAgB,CAC5C,MAAMA,aAAa,OAAO,CAACD;IAEnC;AACJ;AAEO,MAAMD,oCAAmBG,gBAAgB;IAC5C,aAAaC;IACb,gBAAgBL;IAChB,cAAc;QAAC;YAACK;YAAkB;gBAAE,UAAU;YAAK;SAAE;KAAC;AAC1D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CoreBeforeDeploy.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CoreBeforeDeploy.js";
|
package/index.d.ts
CHANGED
|
@@ -5,4 +5,6 @@ export * from "./cli.js";
|
|
|
5
5
|
export * from "./infra.js";
|
|
6
6
|
export * from "./project.js";
|
|
7
7
|
export * from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
8
|
+
export * from "./abstractions/index.js";
|
|
9
|
+
export * from "./AwsProjectSdk.js";
|
|
8
10
|
export * from "./registerAwsProjectFeatures.js";
|
package/index.js
CHANGED
|
@@ -5,4 +5,6 @@ export * from "./cli.js";
|
|
|
5
5
|
export * from "./infra.js";
|
|
6
6
|
export * from "./project.js";
|
|
7
7
|
export * from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
8
|
+
export * from "./abstractions/index.js";
|
|
9
|
+
export * from "./AwsProjectSdk.js";
|
|
8
10
|
export * from "./registerAwsProjectFeatures.js";
|
package/infra.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AdminAfterBuild,
|
|
1
|
+
import { AdminAfterBuild, AdminBeforeBuild, AdminBeforeWatch, ApiAfterBuild, ApiBeforeBuild, ApiBeforeWatch, CoreAfterBuild, CoreBeforeBuild, CoreBeforeWatch, EnvVar, ProductionEnvironments } from "@webiny/project/extensions/index.js";
|
|
2
|
+
import { AdminAfterDeploy, AdminBeforeDeploy, AdminStackOutputValue, ApiAfterDeploy, ApiBeforeDeploy, ApiMaxBundleSize, ApiStackOutputValue, CoreAfterDeploy, CoreBeforeDeploy, CoreStackOutputValue, Encryption, Hashing, PulumiResourceNamePrefix } from "@webiny/project-extensions-aws/extensions/index.js";
|
|
2
3
|
import { AdminCustomDomains, AdminPulumi, ApiCustomDomains, ApiPulumi, AwsTags, BlueGreenDeployments, CorePulumi, DynamoDbPitr, S3BucketVersioning, Vpc } from "./pulumi/extensions/index.js";
|
|
3
4
|
import { OpenSearch } from "./extensions/OpenSearch.js";
|
|
4
|
-
import { AdminStackOutputValue, ApiMaxBundleSize, ApiStackOutputValue, CoreStackOutputValue, Encryption, Hashing } from "@webiny/project-extensions-aws/extensions/index.js";
|
|
5
5
|
import { AwsDefaultRegion } from "@webiny/project-extensions-aws/extensions/AwsDefaultRegion.js";
|
|
6
6
|
import { ApiLambdaFunction } from "./extensions/ApiLambdaFunction.js";
|
|
7
7
|
import { CiIs, CiIsNot, EnvIs, EnvIsNot, EnvIsNotProd, EnvIsProd, useEnv } from "@webiny/project/extensions/infra/index.js";
|
package/infra.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infra.js","sources":["../src/infra.ts"],"sourcesContent":["import {\n AdminAfterBuild,\n
|
|
1
|
+
{"version":3,"file":"infra.js","sources":["../src/infra.ts"],"sourcesContent":["import {\n AdminAfterBuild,\n AdminBeforeBuild,\n AdminBeforeWatch,\n ApiAfterBuild,\n ApiBeforeBuild,\n ApiBeforeWatch,\n CoreAfterBuild,\n CoreBeforeBuild,\n CoreBeforeWatch,\n ProductionEnvironments\n} from \"@webiny/project/extensions/index.js\";\nimport { AdminAfterDeploy } from \"@webiny/project-extensions-aws/extensions/index.js\";\nimport { AdminBeforeDeploy } from \"@webiny/project-extensions-aws/extensions/index.js\";\nimport { ApiAfterDeploy } from \"@webiny/project-extensions-aws/extensions/index.js\";\nimport { ApiBeforeDeploy } from \"@webiny/project-extensions-aws/extensions/index.js\";\nimport { CoreAfterDeploy } from \"@webiny/project-extensions-aws/extensions/index.js\";\nimport { CoreBeforeDeploy } from \"@webiny/project-extensions-aws/extensions/index.js\";\nimport { PulumiResourceNamePrefix } from \"@webiny/project-extensions-aws/extensions/index.js\";\n\nimport { CorePulumi, ApiPulumi, AdminPulumi } from \"./pulumi/extensions/index.js\";\n\nimport {\n AdminCustomDomains,\n ApiCustomDomains,\n AwsTags,\n BlueGreenDeployments,\n DynamoDbPitr,\n S3BucketVersioning,\n Vpc\n} from \"./pulumi/extensions/index.js\";\n\nimport { OpenSearch } from \"./extensions/OpenSearch.js\";\nimport { AdminStackOutputValue } from \"@webiny/project-extensions-aws/extensions/index.js\";\nimport { ApiStackOutputValue } from \"@webiny/project-extensions-aws/extensions/index.js\";\nimport { CoreStackOutputValue } from \"@webiny/project-extensions-aws/extensions/index.js\";\nimport { AwsDefaultRegion } from \"@webiny/project-extensions-aws/extensions/AwsDefaultRegion.js\";\nimport { ApiLambdaFunction } from \"./extensions/ApiLambdaFunction.js\";\nimport { EnvVar } from \"@webiny/project/extensions/index.js\";\nimport { Encryption } from \"@webiny/project-extensions-aws/extensions/index.js\";\nimport { Hashing } from \"@webiny/project-extensions-aws/extensions/index.js\";\nimport { ApiMaxBundleSize } from \"@webiny/project-extensions-aws/extensions/index.js\";\nimport {\n EnvIs,\n EnvIsNot,\n EnvIsProd,\n EnvIsNotProd,\n useEnv,\n CiIs,\n CiIsNot\n} from \"@webiny/project/extensions/infra/index.js\";\n\nexport { useEnv };\n\n// Core app resources. Exposed under Infra.Core, and top-level for backward compatibility.\nconst DynamoDb = {\n Pitr: DynamoDbPitr\n};\n\nconst S3Bucket = {\n Versioning: S3BucketVersioning\n};\n\nexport const Infra = {\n // Grouped crypto config surface.\n Crypto: {\n Encryption,\n Hashing\n },\n // Kept top-level for backward compatibility (prefer Infra.Crypto.Encryption going forward).\n Encryption,\n Vpc,\n BlueGreenDeployments,\n // Kept top-level for backward compatibility (prefer Infra.Core.OpenSearch going forward).\n OpenSearch,\n PulumiResourceNamePrefix,\n ProductionEnvironments,\n EnvVar,\n // Kept top-level for backward compatibility (prefer Infra.Core.DynamoDb and Infra.Core.S3Bucket).\n DynamoDb,\n S3Bucket,\n Aws: {\n DefaultRegion: AwsDefaultRegion,\n Tags: AwsTags\n },\n Env: {\n useEnv,\n Is: EnvIs,\n IsNot: EnvIsNot,\n IsProd: EnvIsProd,\n IsNotProd: EnvIsNotProd\n },\n Ci: {\n Is: CiIs,\n IsNot: CiIsNot\n },\n Admin: {\n BeforeBuild: AdminBeforeBuild,\n BeforeDeploy: AdminBeforeDeploy,\n BeforeWatch: AdminBeforeWatch,\n AfterBuild: AdminAfterBuild,\n AfterDeploy: AdminAfterDeploy,\n Pulumi: AdminPulumi,\n CustomDomains: AdminCustomDomains,\n StackOutputValue: AdminStackOutputValue\n },\n Api: {\n BeforeBuild: ApiBeforeBuild,\n BeforeDeploy: ApiBeforeDeploy,\n BeforeWatch: ApiBeforeWatch,\n AfterBuild: ApiAfterBuild,\n AfterDeploy: ApiAfterDeploy,\n Pulumi: ApiPulumi,\n CustomDomains: ApiCustomDomains,\n StackOutputValue: ApiStackOutputValue,\n LambdaFunction: ApiLambdaFunction,\n MaxBundleSize: ApiMaxBundleSize\n },\n Core: {\n BeforeBuild: CoreBeforeBuild,\n BeforeDeploy: CoreBeforeDeploy,\n BeforeWatch: CoreBeforeWatch,\n AfterBuild: CoreAfterBuild,\n AfterDeploy: CoreAfterDeploy,\n Pulumi: CorePulumi,\n StackOutputValue: CoreStackOutputValue,\n DynamoDb,\n OpenSearch,\n S3Bucket\n }\n};\n"],"names":["DynamoDb","DynamoDbPitr","S3Bucket","S3BucketVersioning","Infra","Encryption","Hashing","Vpc","BlueGreenDeployments","OpenSearch","PulumiResourceNamePrefix","ProductionEnvironments","EnvVar","AwsDefaultRegion","AwsTags","useEnv","EnvIs","EnvIsNot","EnvIsProd","EnvIsNotProd","CiIs","CiIsNot","AdminBeforeBuild","AdminBeforeDeploy","AdminBeforeWatch","AdminAfterBuild","AdminAfterDeploy","AdminPulumi","AdminCustomDomains","AdminStackOutputValue","ApiBeforeBuild","ApiBeforeDeploy","ApiBeforeWatch","ApiAfterBuild","ApiAfterDeploy","ApiPulumi","ApiCustomDomains","ApiStackOutputValue","ApiLambdaFunction","ApiMaxBundleSize","CoreBeforeBuild","CoreBeforeDeploy","CoreBeforeWatch","CoreAfterBuild","CoreAfterDeploy","CorePulumi","CoreStackOutputValue"],"mappings":";;;;;;;AAuDA,MAAMA,WAAW;IACb,MAAMC;AACV;AAEA,MAAMC,WAAW;IACb,YAAYC;AAChB;AAEO,MAAMC,QAAQ;IAEjB,QAAQ;QACJC,YAAUA;QACVC,SAAOA;IACX;IAEAD,YAAUA;IACVE,KAAGA;IACHC,sBAAoBA;IAEpBC,YAAUA;IACVC,0BAAwBA;IACxBC,wBAAsBA;IACtBC,QAAMA;IAENZ,UAAAA;IACAE,UAAAA;IACA,KAAK;QACD,eAAeW;QACf,MAAMC;IACV;IACA,KAAK;QACDC,QAAMA;QACN,IAAIC;QACJ,OAAOC;QACP,QAAQC;QACR,WAAWC;IACf;IACA,IAAI;QACA,IAAIC;QACJ,OAAOC;IACX;IACA,OAAO;QACH,aAAaC;QACb,cAAcC;QACd,aAAaC;QACb,YAAYC;QACZ,aAAaC;QACb,QAAQC;QACR,eAAeC;QACf,kBAAkBC;IACtB;IACA,KAAK;QACD,aAAaC;QACb,cAAcC;QACd,aAAaC;QACb,YAAYC;QACZ,aAAaC;QACb,QAAQC;QACR,eAAeC;QACf,kBAAkBC;QAClB,gBAAgBC;QAChB,eAAeC;IACnB;IACA,MAAM;QACF,aAAaC;QACb,cAAcC;QACd,aAAaC;QACb,YAAYC;QACZ,aAAaC;QACb,QAAQC;QACR,kBAAkBC;QAClB9C,UAAAA;QACAS,YAAUA;QACVP,UAAAA;IACJ;AACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/project-aws",
|
|
3
|
-
"version": "6.6.0-alpha.
|
|
3
|
+
"version": "6.6.0-alpha.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.js",
|
|
@@ -20,32 +20,35 @@
|
|
|
20
20
|
"@pulumi/aws": "^7.52.1",
|
|
21
21
|
"@pulumi/pulumi": "^3.273.0",
|
|
22
22
|
"@pulumi/random": "4.21.4",
|
|
23
|
-
"@webiny/aws-layers": "6.6.0-alpha.
|
|
24
|
-
"@webiny/aws-sdk": "6.6.0-alpha.
|
|
25
|
-
"@webiny/cli-core": "6.6.0-alpha.
|
|
23
|
+
"@webiny/aws-layers": "6.6.0-alpha.11",
|
|
24
|
+
"@webiny/aws-sdk": "6.6.0-alpha.11",
|
|
25
|
+
"@webiny/cli-core": "6.6.0-alpha.11",
|
|
26
26
|
"@webiny/di": "2.0.0",
|
|
27
|
-
"@webiny/global-config": "6.6.0-alpha.
|
|
28
|
-
"@webiny/project": "6.6.0-alpha.
|
|
29
|
-
"@webiny/project-extensions-aws": "6.6.0-alpha.
|
|
30
|
-
"@webiny/pulumi": "6.6.0-alpha.
|
|
31
|
-
"@webiny/pulumi-sdk": "6.6.0-alpha.
|
|
32
|
-
"@webiny/utils": "6.6.0-alpha.
|
|
27
|
+
"@webiny/global-config": "6.6.0-alpha.11",
|
|
28
|
+
"@webiny/project": "6.6.0-alpha.11",
|
|
29
|
+
"@webiny/project-extensions-aws": "6.6.0-alpha.11",
|
|
30
|
+
"@webiny/pulumi": "6.6.0-alpha.11",
|
|
31
|
+
"@webiny/pulumi-sdk": "6.6.0-alpha.11",
|
|
32
|
+
"@webiny/utils": "6.6.0-alpha.11",
|
|
33
33
|
"chalk": "6.0.1",
|
|
34
|
+
"execa": "10.2.1",
|
|
34
35
|
"exit-hook": "5.1.0",
|
|
36
|
+
"fast-glob": "3.3.3",
|
|
35
37
|
"find-up": "8.0.0",
|
|
36
38
|
"invariant": "2.2.4",
|
|
37
39
|
"lodash": "4.18.1",
|
|
38
40
|
"mime": "4.1.2",
|
|
41
|
+
"minimatch": "11.0.3",
|
|
42
|
+
"mqtt": "5.16.1",
|
|
39
43
|
"p-retry": "8.0.1",
|
|
40
44
|
"react": "19.3.1",
|
|
41
45
|
"replace-in-path": "1.1.0",
|
|
42
|
-
"ts-morph": "28.0.0",
|
|
43
46
|
"zod": "4.6.7"
|
|
44
47
|
},
|
|
45
48
|
"devDependencies": {
|
|
46
49
|
"@types/lodash": "4.17.27",
|
|
47
50
|
"@types/ncp": "2.0.8",
|
|
48
|
-
"@webiny/build-tools": "6.6.0-alpha.
|
|
51
|
+
"@webiny/build-tools": "6.6.0-alpha.11",
|
|
49
52
|
"typescript": "7.0.2",
|
|
50
53
|
"vitest": "5.0.5"
|
|
51
54
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type GetAppStackOutput } from "../../../abstractions/features/GetAppStackOutput.js";
|
|
2
2
|
export type GenericRecord<K extends PropertyKey = PropertyKey, V = any> = Record<K, V>;
|
|
3
3
|
export type NonEmptyArray<T> = [T, ...T[]];
|
|
4
4
|
export interface IDeploymentDomain {
|
|
@@ -66,7 +66,7 @@ export interface IResolvedDomain {
|
|
|
66
66
|
target: string;
|
|
67
67
|
}
|
|
68
68
|
export type IResolvedDomains = IResolvedDomain[];
|
|
69
|
-
export interface IBlueGreenStackOutput extends
|
|
69
|
+
export interface IBlueGreenStackOutput extends GetAppStackOutput.StackOutput {
|
|
70
70
|
distributionDomain: string;
|
|
71
71
|
distributionUrl: string;
|
|
72
72
|
environments?: IResolvedDomains;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import type
|
|
2
|
+
import { type GetAppStackOutput } from "../../../abstractions/features/GetAppStackOutput.js";
|
|
3
3
|
export type PulumiOutput<T> = {
|
|
4
4
|
[K in keyof T]: pulumi.Output<T[K]>;
|
|
5
5
|
};
|
|
6
|
-
export interface IGetSyncSystemOutputResult extends
|
|
6
|
+
export interface IGetSyncSystemOutputResult extends GetAppStackOutput.StackOutput {
|
|
7
7
|
/**
|
|
8
8
|
* createRegionProvider
|
|
9
9
|
*/
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
* ProjectSdk for the Pulumi program. The Pulumi program runs in its own process and does NOT go
|
|
4
|
-
* through the CLI's GetProjectSdkService, so it must register the AWS pulumi services itself
|
|
5
|
-
* (name prefix, stack output, …). We register only `registerAwsPulumiServices` — not the full
|
|
6
|
-
* `registerAwsProjectFeatures` — to avoid pulling in the CLI-only deploy/workspace decorators and
|
|
7
|
-
* hooks (which would, e.g., re-run workspace builders mid-deploy).
|
|
8
|
-
*
|
|
9
|
-
* Empty params → env/variant/region are picked up from the parent process via env
|
|
10
|
-
* (getProjectSdkContextFromEnv).
|
|
11
|
-
*/
|
|
12
|
-
export declare const getAwsProjectSdk: () => Promise<ProjectSdk>;
|
|
1
|
+
import { AwsProjectSdk } from "../AwsProjectSdk.js";
|
|
2
|
+
export declare const getAwsProjectSdk: () => Promise<AwsProjectSdk>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const getAwsProjectSdk = ()=>ProjectSdk.init({}, registerAwsPulumiServices);
|
|
1
|
+
import { AwsProjectSdk } from "../AwsProjectSdk.js";
|
|
2
|
+
const getAwsProjectSdk = ()=>AwsProjectSdk.createForPulumiProgram();
|
|
4
3
|
export { getAwsProjectSdk };
|
|
5
4
|
|
|
6
5
|
//# sourceMappingURL=getAwsProjectSdk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pulumi/getAwsProjectSdk.js","sources":["../../src/pulumi/getAwsProjectSdk.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"pulumi/getAwsProjectSdk.js","sources":["../../src/pulumi/getAwsProjectSdk.ts"],"sourcesContent":["import { AwsProjectSdk } from \"~/AwsProjectSdk.js\";\n\n// The project SDK of the Pulumi program; see `AwsProjectSdk.createForPulumiProgram`.\nexport const getAwsProjectSdk = () => {\n return AwsProjectSdk.createForPulumiProgram();\n};\n"],"names":["getAwsProjectSdk","AwsProjectSdk"],"mappings":";AAGO,MAAMA,mBAAmB,IACrBC,cAAc,sBAAsB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { type AppName
|
|
1
|
+
import { type AppName } from "@webiny/project";
|
|
2
|
+
import { type GetAppStackOutput } from "../abstractions/features/GetAppStackOutput.js";
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
-
* via the aws-aware SDK. The base `getStackOutput` uses `getProjectSdk()`, which lacks the pulumi
|
|
5
|
-
* services now that they live in project-aws → "No registration found for GetAppStackOutput".
|
|
4
|
+
* Reads an app's stack output through a project SDK that has the AWS Pulumi services registered.
|
|
6
5
|
*/
|
|
7
|
-
export declare const getStackOutput: <TOutput extends
|
|
6
|
+
export declare const getStackOutput: <TOutput extends GetAppStackOutput.StackOutput = GetAppStackOutput.StackOutput>(appName: AppName) => Promise<TOutput | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pulumi/getStackOutput.js","sources":["../../src/pulumi/getStackOutput.ts"],"sourcesContent":["import { type AppName
|
|
1
|
+
{"version":3,"file":"pulumi/getStackOutput.js","sources":["../../src/pulumi/getStackOutput.ts"],"sourcesContent":["import { type AppName } from \"@webiny/project\";\nimport { type GetAppStackOutput } from \"~/abstractions/features/GetAppStackOutput.js\";\nimport { getAwsProjectSdk } from \"./getAwsProjectSdk.js\";\n\n/**\n * Reads an app's stack output through a project SDK that has the AWS Pulumi services registered.\n */\nexport const getStackOutput = async <\n TOutput extends GetAppStackOutput.StackOutput = GetAppStackOutput.StackOutput\n>(\n appName: AppName\n): Promise<TOutput | null> => {\n const sdk = await getAwsProjectSdk();\n return sdk.getAppStackOutput<TOutput>(appName);\n};\n"],"names":["getStackOutput","appName","sdk","getAwsProjectSdk"],"mappings":";AAOO,MAAMA,iBAAiB,OAG1BC;IAEA,MAAMC,MAAM,MAAMC;IAClB,OAAOD,IAAI,iBAAiB,CAAUD;AAC1C"}
|
package/pulumi/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type GetAppStackOutput } from "../abstractions/features/GetAppStackOutput.js";
|
|
2
2
|
import type { ApiStackOutputService } from "@webiny/project-extensions-aws/abstractions/services/ApiStackOutputService.js";
|
|
3
|
-
export interface IDefaultStackOutput extends
|
|
3
|
+
export interface IDefaultStackOutput extends GetAppStackOutput.StackOutput {
|
|
4
4
|
deploymentId: string;
|
|
5
5
|
region: string;
|
|
6
6
|
dynamoDbTable: string;
|
|
@@ -1,8 +1,37 @@
|
|
|
1
|
-
import { deployApp
|
|
2
|
-
import {
|
|
1
|
+
import { deployApp } from "./features/DeployApp/DeployApp.js";
|
|
2
|
+
import { destroyApp } from "./features/DestroyApp/DestroyApp.js";
|
|
3
|
+
import { exportStack } from "./features/ExportStack/ExportStack.js";
|
|
4
|
+
import { getAppOutput } from "./features/GetAppOutput/GetAppOutput.js";
|
|
5
|
+
import { getAppStackOutput } from "./features/GetAppStackOutput/GetAppStackOutput.js";
|
|
6
|
+
import { getPulumiResourceNamePrefix } from "./features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js";
|
|
7
|
+
import { refreshApp } from "./features/RefreshApp/RefreshApp.js";
|
|
8
|
+
import { runPulumiCommand } from "./features/RunPulumiCommand/RunPulumiCommand.js";
|
|
9
|
+
import { watchedLambdaFunctionsService } from "./services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js";
|
|
10
|
+
import { isRemotePulumiBackendService } from "./services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.js";
|
|
11
|
+
import { listAppLambdaFunctionsService } from "./services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.js";
|
|
12
|
+
import { listDeployedEnvironmentsService } from "./services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.js";
|
|
13
|
+
import { pulumiGetConfigPassphraseService } from "./services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.js";
|
|
14
|
+
import { pulumiGetSecretsProviderService } from "./services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.js";
|
|
15
|
+
import { pulumiExportService } from "./services/PulumiExportService/PulumiExportService.js";
|
|
16
|
+
import { pulumiImportService } from "./services/PulumiImportService/PulumiImportService.js";
|
|
17
|
+
import { pulumiGetStackOutputService } from "./services/PulumiGetStackOutputService/PulumiGetStackOutputService.js";
|
|
18
|
+
import { pulumiLoginService } from "./services/PulumiLoginService/PulumiLoginService.js";
|
|
19
|
+
import { pulumiSelectStackService } from "./services/PulumiSelectStackService/PulumiSelectStackService.js";
|
|
3
20
|
import { getPulumiService } from "./services/GetPulumiService/GetPulumiService.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
21
|
+
import { getPulumiVersionService } from "./services/GetPulumiVersionService/GetPulumiVersionService.js";
|
|
22
|
+
import { stackOutputCacheService } from "./services/StackOutputCacheService/StackOutputCacheService.js";
|
|
23
|
+
import { awsPulumiInitHostingSdkService } from "./services/AwsPulumiInitHostingSdkService/AwsPulumiInitHostingSdkService.js";
|
|
24
|
+
import { awsDeployInitHostingSdkService } from "./services/AwsDeployInitHostingSdkService/AwsDeployInitHostingSdkService.js";
|
|
25
|
+
import { projectInfoWithPulumi } from "./decorators/ProjectInfoWithPulumi.js";
|
|
26
|
+
import { beforeDeploy } from "./features/hooks/BeforeDeploy/BeforeDeploy.js";
|
|
27
|
+
import { afterDeploy } from "./features/hooks/AfterDeploy/AfterDeploy.js";
|
|
28
|
+
import { coreAfterBuild, coreBeforeBuild, coreBeforeWatch } from "@webiny/project/features/hooks/index.js";
|
|
29
|
+
import { coreBeforeDeploy } from "./features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.js";
|
|
30
|
+
import { coreAfterDeploy } from "./features/hooks/CoreAfterDeploy/CoreAfterDeploy.js";
|
|
31
|
+
import { apiBeforeDeploy } from "./features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.js";
|
|
32
|
+
import { apiAfterDeploy } from "./features/hooks/ApiAfterDeploy/ApiAfterDeploy.js";
|
|
33
|
+
import { adminBeforeDeploy } from "./features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.js";
|
|
34
|
+
import { adminAfterDeploy } from "./features/hooks/AdminAfterDeploy/AdminAfterDeploy.js";
|
|
6
35
|
import { awsWatch } from "./features/Watch/AwsWatch.js";
|
|
7
36
|
import { BuildProjectWorkspace } from "./extensions/ProjectAws/BuildProjectWorkspace.js";
|
|
8
37
|
import { BuildAppWorkspace } from "./extensions/ProjectAws/BuildAppWorkspace.js";
|
|
@@ -19,6 +48,8 @@ const registerAwsPulumiServices = (container)=>{
|
|
|
19
48
|
container.register(pulumiGetStackOutputService).inSingletonScope();
|
|
20
49
|
container.register(pulumiLoginService).inSingletonScope();
|
|
21
50
|
container.register(pulumiSelectStackService).inSingletonScope();
|
|
51
|
+
container.register(stackOutputCacheService).inSingletonScope();
|
|
52
|
+
container.register(awsPulumiInitHostingSdkService).inSingletonScope();
|
|
22
53
|
container.register(deployApp).inSingletonScope();
|
|
23
54
|
container.register(destroyApp).inSingletonScope();
|
|
24
55
|
container.register(exportStack).inSingletonScope();
|
|
@@ -43,11 +74,9 @@ const registerAwsProjectFeatures = (container)=>{
|
|
|
43
74
|
container.registerComposite(apiAfterDeploy);
|
|
44
75
|
container.registerComposite(adminBeforeDeploy);
|
|
45
76
|
container.registerComposite(adminAfterDeploy);
|
|
46
|
-
container.
|
|
47
|
-
container.
|
|
48
|
-
container.registerDecorator(
|
|
49
|
-
container.registerDecorator(deployAppWithHooks);
|
|
50
|
-
container.registerDecorator(getPulumiServiceWithDownloadInfo);
|
|
77
|
+
container.register(awsDeployInitHostingSdkService).inSingletonScope();
|
|
78
|
+
container.register(getPulumiVersionService).inSingletonScope();
|
|
79
|
+
container.registerDecorator(projectInfoWithPulumi);
|
|
51
80
|
container.registerDecorator(awsWatch);
|
|
52
81
|
};
|
|
53
82
|
export { registerAwsProjectFeatures, registerAwsPulumiServices };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerAwsProjectFeatures.js","sources":["../src/registerAwsProjectFeatures.ts"],"sourcesContent":["import { Container } from \"@webiny/di\";\n\n// Features\nimport {\
|
|
1
|
+
{"version":3,"file":"registerAwsProjectFeatures.js","sources":["../src/registerAwsProjectFeatures.ts"],"sourcesContent":["import { Container } from \"@webiny/di\";\n\n// Features\nimport { deployApp } from \"~/features/DeployApp/DeployApp.js\";\nimport { destroyApp } from \"~/features/DestroyApp/DestroyApp.js\";\nimport { exportStack } from \"~/features/ExportStack/ExportStack.js\";\nimport { getAppOutput } from \"~/features/GetAppOutput/GetAppOutput.js\";\nimport { getAppStackOutput } from \"~/features/GetAppStackOutput/GetAppStackOutput.js\";\nimport { getPulumiResourceNamePrefix } from \"~/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js\";\nimport { refreshApp } from \"~/features/RefreshApp/RefreshApp.js\";\nimport { runPulumiCommand } from \"~/features/RunPulumiCommand/RunPulumiCommand.js\";\n\n// Services\nimport { watchedLambdaFunctionsService } from \"~/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js\";\nimport { isRemotePulumiBackendService } from \"~/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.js\";\nimport { listAppLambdaFunctionsService } from \"~/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.js\";\nimport { listDeployedEnvironmentsService } from \"~/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.js\";\nimport { pulumiGetConfigPassphraseService } from \"~/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.js\";\nimport { pulumiGetSecretsProviderService } from \"~/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.js\";\nimport { pulumiExportService } from \"~/services/PulumiExportService/PulumiExportService.js\";\nimport { pulumiImportService } from \"~/services/PulumiImportService/PulumiImportService.js\";\nimport { pulumiGetStackOutputService } from \"~/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js\";\nimport { pulumiLoginService } from \"~/services/PulumiLoginService/PulumiLoginService.js\";\nimport { pulumiSelectStackService } from \"~/services/PulumiSelectStackService/PulumiSelectStackService.js\";\n\nimport { getPulumiService } from \"./services/GetPulumiService/GetPulumiService.js\";\nimport { getPulumiVersionService } from \"~/services/GetPulumiVersionService/GetPulumiVersionService.js\";\nimport { stackOutputCacheService } from \"~/services/StackOutputCacheService/StackOutputCacheService.js\";\nimport { awsPulumiInitHostingSdkService } from \"~/services/AwsPulumiInitHostingSdkService/AwsPulumiInitHostingSdkService.js\";\nimport { awsDeployInitHostingSdkService } from \"~/services/AwsDeployInitHostingSdkService/AwsDeployInitHostingSdkService.js\";\nimport { projectInfoWithPulumi } from \"~/decorators/ProjectInfoWithPulumi.js\";\n\n// Hooks\nimport { beforeDeploy } from \"~/features/hooks/BeforeDeploy/BeforeDeploy.js\";\nimport { afterDeploy } from \"~/features/hooks/AfterDeploy/AfterDeploy.js\";\nimport { coreBeforeBuild } from \"@webiny/project/features/hooks/index.js\";\nimport { coreAfterBuild } from \"@webiny/project/features/hooks/index.js\";\nimport { coreBeforeWatch } from \"@webiny/project/features/hooks/index.js\";\nimport { coreBeforeDeploy } from \"~/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.js\";\nimport { coreAfterDeploy } from \"~/features/hooks/CoreAfterDeploy/CoreAfterDeploy.js\";\nimport { apiBeforeDeploy } from \"~/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.js\";\nimport { apiAfterDeploy } from \"~/features/hooks/ApiAfterDeploy/ApiAfterDeploy.js\";\nimport { adminBeforeDeploy } from \"~/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.js\";\nimport { adminAfterDeploy } from \"~/features/hooks/AdminAfterDeploy/AdminAfterDeploy.js\";\n\nimport { awsWatch } from \"./features/Watch/AwsWatch.js\";\nimport { BuildProjectWorkspace } from \"./extensions/ProjectAws/BuildProjectWorkspace.js\";\nimport { BuildAppWorkspace } from \"./extensions/ProjectAws/BuildAppWorkspace.js\";\n\n/**\n * Pulumi services + features only — no deploy/workspace decorators or hooks. Safe to register in the\n * Pulumi program's own ProjectSdk container (a separate process that must resolve the name prefix,\n * stack output, etc. without re-running the CLI's workspace builders or deploy decorators).\n */\nexport const registerAwsPulumiServices = (container: Container): void => {\n // Pulumi/Lambda services.\n container.register(getPulumiService).inSingletonScope();\n container.register(isRemotePulumiBackendService).inSingletonScope();\n container.register(listAppLambdaFunctionsService).inSingletonScope();\n container.register(listDeployedEnvironmentsService).inSingletonScope();\n container.register(watchedLambdaFunctionsService).inSingletonScope();\n container.register(pulumiGetConfigPassphraseService).inSingletonScope();\n container.register(pulumiGetSecretsProviderService).inSingletonScope();\n container.register(pulumiExportService).inSingletonScope();\n container.register(pulumiImportService).inSingletonScope();\n container.register(pulumiGetStackOutputService).inSingletonScope();\n container.register(pulumiLoginService).inSingletonScope();\n container.register(pulumiSelectStackService).inSingletonScope();\n container.register(stackOutputCacheService).inSingletonScope();\n container.register(awsPulumiInitHostingSdkService).inSingletonScope();\n\n // Deploy/Pulumi features.\n container.register(deployApp).inSingletonScope();\n container.register(destroyApp).inSingletonScope();\n container.register(exportStack).inSingletonScope();\n container.register(getAppOutput).inSingletonScope();\n container.register(getAppStackOutput).inSingletonScope();\n container.register(getPulumiResourceNamePrefix).inSingletonScope();\n container.register(refreshApp).inSingletonScope();\n container.register(runPulumiCommand).inSingletonScope();\n};\n\nexport const registerAwsProjectFeatures = (container: Container): void => {\n // Workspace decorators — must be registered before workspace services execute.\n container.registerDecorator(BuildProjectWorkspace);\n container.registerDecorator(BuildAppWorkspace);\n\n // Pulumi services + features (shared with the Pulumi program).\n registerAwsPulumiServices(container);\n\n // Deploy + core hooks.\n container.registerComposite(beforeDeploy);\n container.registerComposite(afterDeploy);\n container.registerComposite(coreBeforeBuild);\n container.registerComposite(coreAfterBuild);\n container.registerComposite(coreBeforeWatch);\n container.registerComposite(coreBeforeDeploy);\n container.registerComposite(coreAfterDeploy);\n container.registerComposite(apiBeforeDeploy);\n container.registerComposite(apiAfterDeploy);\n container.registerComposite(adminBeforeDeploy);\n container.registerComposite(adminAfterDeploy);\n\n // Deploy hooks from the config and the deploy decorators, registered once the config is loaded.\n container.register(awsDeployInitHostingSdkService).inSingletonScope();\n\n // `webiny about`: the Pulumi section and the version lookup it uses.\n container.register(getPulumiVersionService).inSingletonScope();\n container.registerDecorator(projectInfoWithPulumi);\n\n // Watch decorator that adds Lambda hot-reload.\n container.registerDecorator(awsWatch);\n};\n"],"names":["registerAwsPulumiServices","container","getPulumiService","isRemotePulumiBackendService","listAppLambdaFunctionsService","listDeployedEnvironmentsService","watchedLambdaFunctionsService","pulumiGetConfigPassphraseService","pulumiGetSecretsProviderService","pulumiExportService","pulumiImportService","pulumiGetStackOutputService","pulumiLoginService","pulumiSelectStackService","stackOutputCacheService","awsPulumiInitHostingSdkService","deployApp","destroyApp","exportStack","getAppOutput","getAppStackOutput","getPulumiResourceNamePrefix","refreshApp","runPulumiCommand","registerAwsProjectFeatures","BuildProjectWorkspace","BuildAppWorkspace","beforeDeploy","afterDeploy","coreBeforeBuild","coreAfterBuild","coreBeforeWatch","coreBeforeDeploy","coreAfterDeploy","apiBeforeDeploy","apiAfterDeploy","adminBeforeDeploy","adminAfterDeploy","awsDeployInitHostingSdkService","getPulumiVersionService","projectInfoWithPulumi","awsWatch"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDO,MAAMA,4BAA4B,CAACC;IAEtCA,UAAU,QAAQ,CAACC,kBAAkB,gBAAgB;IACrDD,UAAU,QAAQ,CAACE,8BAA8B,gBAAgB;IACjEF,UAAU,QAAQ,CAACG,+BAA+B,gBAAgB;IAClEH,UAAU,QAAQ,CAACI,iCAAiC,gBAAgB;IACpEJ,UAAU,QAAQ,CAACK,+BAA+B,gBAAgB;IAClEL,UAAU,QAAQ,CAACM,kCAAkC,gBAAgB;IACrEN,UAAU,QAAQ,CAACO,iCAAiC,gBAAgB;IACpEP,UAAU,QAAQ,CAACQ,qBAAqB,gBAAgB;IACxDR,UAAU,QAAQ,CAACS,qBAAqB,gBAAgB;IACxDT,UAAU,QAAQ,CAACU,6BAA6B,gBAAgB;IAChEV,UAAU,QAAQ,CAACW,oBAAoB,gBAAgB;IACvDX,UAAU,QAAQ,CAACY,0BAA0B,gBAAgB;IAC7DZ,UAAU,QAAQ,CAACa,yBAAyB,gBAAgB;IAC5Db,UAAU,QAAQ,CAACc,gCAAgC,gBAAgB;IAGnEd,UAAU,QAAQ,CAACe,WAAW,gBAAgB;IAC9Cf,UAAU,QAAQ,CAACgB,YAAY,gBAAgB;IAC/ChB,UAAU,QAAQ,CAACiB,aAAa,gBAAgB;IAChDjB,UAAU,QAAQ,CAACkB,cAAc,gBAAgB;IACjDlB,UAAU,QAAQ,CAACmB,mBAAmB,gBAAgB;IACtDnB,UAAU,QAAQ,CAACoB,6BAA6B,gBAAgB;IAChEpB,UAAU,QAAQ,CAACqB,YAAY,gBAAgB;IAC/CrB,UAAU,QAAQ,CAACsB,kBAAkB,gBAAgB;AACzD;AAEO,MAAMC,6BAA6B,CAACvB;IAEvCA,UAAU,iBAAiB,CAACwB;IAC5BxB,UAAU,iBAAiB,CAACyB;IAG5B1B,0BAA0BC;IAG1BA,UAAU,iBAAiB,CAAC0B;IAC5B1B,UAAU,iBAAiB,CAAC2B;IAC5B3B,UAAU,iBAAiB,CAAC4B;IAC5B5B,UAAU,iBAAiB,CAAC6B;IAC5B7B,UAAU,iBAAiB,CAAC8B;IAC5B9B,UAAU,iBAAiB,CAAC+B;IAC5B/B,UAAU,iBAAiB,CAACgC;IAC5BhC,UAAU,iBAAiB,CAACiC;IAC5BjC,UAAU,iBAAiB,CAACkC;IAC5BlC,UAAU,iBAAiB,CAACmC;IAC5BnC,UAAU,iBAAiB,CAACoC;IAG5BpC,UAAU,QAAQ,CAACqC,gCAAgC,gBAAgB;IAGnErC,UAAU,QAAQ,CAACsC,yBAAyB,gBAAgB;IAC5DtC,UAAU,iBAAiB,CAACuC;IAG5BvC,UAAU,iBAAiB,CAACwC;AAChC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetAppStackOutput } from "
|
|
1
|
+
import { GetAppStackOutput } from "../abstractions/features/GetAppStackOutput.js";
|
|
2
2
|
import { AdminStackOutputService as AdminStackOutputServiceAbstraction } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
3
3
|
export declare class DefaultAdminStackOutputServiceAbstraction implements AdminStackOutputServiceAbstraction.Interface {
|
|
4
4
|
private readonly getAppStackOutput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetAppStackOutput } from "
|
|
1
|
+
import { GetAppStackOutput } from "../abstractions/features/GetAppStackOutput.js";
|
|
2
2
|
import { AdminStackOutputService } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
3
3
|
class DefaultAdminStackOutputServiceAbstraction {
|
|
4
4
|
constructor(getAppStackOutput){
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services/AdminStackOutputService.js","sources":["../../src/services/AdminStackOutputService.ts"],"sourcesContent":["import { GetAppStackOutput } from \"
|
|
1
|
+
{"version":3,"file":"services/AdminStackOutputService.js","sources":["../../src/services/AdminStackOutputService.ts"],"sourcesContent":["import { GetAppStackOutput } from \"~/abstractions/features/GetAppStackOutput.js\";\nimport { AdminStackOutputService as AdminStackOutputServiceAbstraction } from \"@webiny/project-extensions-aws/abstractions/index.js\";\n\nexport class DefaultAdminStackOutputServiceAbstraction\n implements AdminStackOutputServiceAbstraction.Interface\n{\n constructor(private readonly getAppStackOutput: GetAppStackOutput.Interface) {}\n\n async execute<\n TOutput extends AdminStackOutputServiceAbstraction.Output =\n AdminStackOutputServiceAbstraction.Output\n >(): Promise<TOutput | null> {\n return this.getAppStackOutput.execute<TOutput>(\"admin\");\n }\n}\n\nexport const AdminStackOutputService = AdminStackOutputServiceAbstraction.createImplementation({\n implementation: DefaultAdminStackOutputServiceAbstraction,\n dependencies: [GetAppStackOutput]\n});\n"],"names":["DefaultAdminStackOutputServiceAbstraction","getAppStackOutput","AdminStackOutputService","AdminStackOutputServiceAbstraction","GetAppStackOutput"],"mappings":";;AAGO,MAAMA;IAGT,YAA6BC,iBAA8C,CAAE;aAAhDA,iBAAiB,GAAjBA;IAAiD;IAE9E,MAAM,UAGuB;QACzB,OAAO,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAU;IACnD;AACJ;AAEO,MAAMC,kDAA0BC,wBAAAA,oBAAuD,CAAC;IAC3F,gBAAgBH;IAChB,cAAc;QAACI;KAAkB;AACrC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetAppStackOutput } from "
|
|
1
|
+
import { GetAppStackOutput } from "../abstractions/features/GetAppStackOutput.js";
|
|
2
2
|
import { ApiStackOutputService as ApiStackOutputServiceAbstraction } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
3
3
|
export declare class DefaultApiStackOutputServiceAbstraction implements ApiStackOutputServiceAbstraction.Interface {
|
|
4
4
|
private readonly getAppStackOutput;
|