@webiny/project-aws 6.6.0-alpha.1 → 6.6.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 -6
- package/abstractions/index.js +21 -6
- package/abstractions/pulumiTypes.d.ts +18 -0
- package/abstractions/pulumiTypes.js +0 -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/api.js +1 -3
- package/api.js.map +1 -1
- 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/exports/infra/admin.d.ts +1 -3
- package/exports/infra/admin.js +0 -3
- package/exports/infra/api.d.ts +1 -3
- package/exports/infra/api.js +0 -3
- package/exports/infra/core.d.ts +1 -2
- package/exports/infra/core.js +0 -2
- package/extensions/ApiLambdaFunction.js +3 -2
- package/extensions/ApiLambdaFunction.js.map +1 -1
- package/extensions/ApiRoute.d.ts +7 -16
- package/extensions/ApiRoute.js +5 -73
- 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 +3 -3
- package/extensions/OpenSearch/EnsureOsWasDeployed.js +1 -2
- package/extensions/OpenSearch/EnsureOsWasDeployed.js.map +1 -1
- package/extensions/OpenSearch.d.ts +9 -10
- package/extensions/OpenSearch.js +8 -16
- package/extensions/OpenSearch.js.map +1 -1
- package/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.d.ts +3 -3
- package/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.js +3 -2
- 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 +3 -2
- 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/SetAdminEnvVars/SetAdminEnvVars.d.ts +1 -1
- package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVars.js +1 -1
- package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVars.js.map +1 -1
- package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeBuild.d.ts +1 -1
- package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeBuild.js +1 -1
- package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeBuild.js.map +1 -1
- package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeWatch.d.ts +1 -1
- package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeWatch.js +1 -1
- package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeWatch.js.map +1 -1
- package/extensions/ProjectAws/SetDatabaseSetupOutput.d.ts +2 -2
- package/extensions/ProjectAws/SetDatabaseSetupOutput.js +1 -1
- package/extensions/ProjectAws/SetDatabaseSetupOutput.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 +5 -3
- package/extensions/ProjectAws/UploadAdminAppToS3.js +3 -3
- 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 +6 -2
- package/extensions/ProjectAws/definitions.js.map +1 -1
- package/extensions/ProjectAws.d.ts +1 -0
- package/extensions/ProjectAws.js +3 -1
- package/extensions/ProjectAws.js.map +1 -1
- package/extensions/RegisterRoutesPulumi.d.ts +2 -2
- package/extensions/RegisterRoutesPulumi.js +4 -4
- package/extensions/RegisterRoutesPulumi.js.map +1 -1
- package/extensions/definitions.js +1 -5
- package/extensions/definitions.js.map +1 -1
- package/extensions/index.d.ts +2 -3
- package/extensions/index.js +2 -3
- package/extensions/registerExtensionImplementations.js +11 -0
- package/extensions/registerExtensionImplementations.js.map +1 -0
- package/extensions/toApiGatewayPath.d.ts +2 -0
- package/extensions/toApiGatewayPath.js +6 -0
- package/extensions/toApiGatewayPath.js.map +1 -0
- package/features/ApiGqlClient.d.ts +4 -4
- package/features/ApiGqlClient.js +3 -3
- package/features/ApiGqlClient.js.map +1 -1
- 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 +3 -3
- package/features/InvokeLambdaFunction.js +3 -3
- 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 +8 -4
- 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 +3 -0
- package/index.js +3 -0
- package/infra.d.ts +49 -2
- package/infra.js +16 -4
- package/infra.js.map +1 -1
- package/package.json +26 -23
- package/project.d.ts +12 -1
- package/project.js +3 -2
- package/project.js.map +1 -1
- package/pulumi/apps/admin/createAdminPulumiApp.js +7 -4
- package/pulumi/apps/admin/createAdminPulumiApp.js.map +1 -1
- package/pulumi/apps/api/ApiCloudfront.js +2 -1
- package/pulumi/apps/api/ApiCloudfront.js.map +1 -1
- package/pulumi/apps/api/ApiOutput.d.ts +6 -6
- package/pulumi/apps/api/createApiPulumiApp.js +9 -7
- package/pulumi/apps/api/createApiPulumiApp.js.map +1 -1
- package/pulumi/apps/awsUtils.js +1 -1
- package/pulumi/apps/awsUtils.js.map +1 -1
- package/pulumi/apps/blueGreen/domains/resolveDomains.js +1 -1
- package/pulumi/apps/blueGreen/domains/resolveDomains.js.map +1 -1
- package/pulumi/apps/blueGreen/types.d.ts +2 -5
- package/pulumi/apps/common/CoreOutput.d.ts +2 -1
- package/pulumi/apps/common/CoreOutput.js.map +1 -1
- package/pulumi/apps/core/CoreAuditLogsDynamo.d.ts +1 -0
- package/pulumi/apps/core/CoreAuditLogsDynamo.js +3 -0
- package/pulumi/apps/core/CoreAuditLogsDynamo.js.map +1 -1
- package/pulumi/apps/core/CoreDynamo.d.ts +1 -0
- package/pulumi/apps/core/CoreDynamo.js +3 -0
- package/pulumi/apps/core/CoreDynamo.js.map +1 -1
- package/pulumi/apps/core/CoreFileManager.d.ts +2 -0
- package/pulumi/apps/core/CoreFileManager.js +11 -1
- package/pulumi/apps/core/CoreFileManager.js.map +1 -1
- package/pulumi/apps/core/CoreOpenSearch.d.ts +1 -0
- package/pulumi/apps/core/CoreOpenSearch.js +3 -0
- package/pulumi/apps/core/CoreOpenSearch.js.map +1 -1
- package/pulumi/apps/core/configureS3BucketMalwareProtection.js +12 -2
- package/pulumi/apps/core/configureS3BucketMalwareProtection.js.map +1 -1
- package/pulumi/apps/core/createCorePulumiApp.js +16 -7
- package/pulumi/apps/core/createCorePulumiApp.js.map +1 -1
- package/pulumi/apps/customDomain.d.ts +10 -0
- package/pulumi/apps/customDomain.js +5 -1
- package/pulumi/apps/customDomain.js.map +1 -1
- package/pulumi/apps/extensions/getAwsTagsFromExtension.js +1 -1
- package/pulumi/apps/extensions/getAwsTagsFromExtension.js.map +1 -1
- package/pulumi/apps/extensions/getBgDeploymentsConfigFromExtension.d.ts +2 -2
- package/pulumi/apps/extensions/getBgDeploymentsConfigFromExtension.js +1 -1
- package/pulumi/apps/extensions/getBgDeploymentsConfigFromExtension.js.map +1 -1
- package/pulumi/apps/extensions/getOsConfigFromExtension.js +2 -2
- package/pulumi/apps/extensions/getOsConfigFromExtension.js.map +1 -1
- package/pulumi/apps/extensions/getVpcConfigFromExtension.js +1 -1
- package/pulumi/apps/extensions/getVpcConfigFromExtension.js.map +1 -1
- package/pulumi/apps/extensions/isProductionDefaultEnabled.d.ts +16 -0
- package/pulumi/apps/extensions/isProductionDefaultEnabled.js +9 -0
- package/pulumi/apps/extensions/isProductionDefaultEnabled.js.map +1 -0
- package/pulumi/apps/extensions/isVpcEnabled.d.ts +14 -0
- package/pulumi/apps/extensions/isVpcEnabled.js +8 -0
- package/pulumi/apps/extensions/isVpcEnabled.js.map +1 -0
- package/pulumi/apps/syncSystem/types.d.ts +2 -2
- package/pulumi/extensions/AdminPulumi.js +3 -2
- package/pulumi/extensions/AdminPulumi.js.map +1 -1
- package/pulumi/extensions/ApiPulumi.js +3 -2
- package/pulumi/extensions/ApiPulumi.js.map +1 -1
- package/pulumi/extensions/CorePulumi.js +3 -2
- package/pulumi/extensions/CorePulumi.js.map +1 -1
- package/pulumi/extensions/index.d.ts +53 -22
- package/pulumi/extensions/index.js +12 -9
- package/pulumi/extensions/index.js.map +1 -1
- package/pulumi/features/AdminPulumi/AdminPulumi.d.ts +1 -1
- package/pulumi/features/AdminPulumi/AdminPulumi.js +1 -1
- package/pulumi/features/AdminPulumi/AdminPulumi.js.map +1 -1
- package/pulumi/features/ApiPulumi/ApiPulumi.d.ts +1 -1
- package/pulumi/features/ApiPulumi/ApiPulumi.js +1 -1
- package/pulumi/features/ApiPulumi/ApiPulumi.js.map +1 -1
- package/pulumi/features/CorePulumi/CorePulumi.d.ts +1 -1
- package/pulumi/features/CorePulumi/CorePulumi.js +1 -1
- package/pulumi/features/CorePulumi/CorePulumi.js.map +1 -1
- package/pulumi/features/DefaultSetAdminCustomDomains.d.ts +1 -1
- package/pulumi/features/DefaultSetAdminCustomDomains.js.map +1 -1
- package/pulumi/features/DefaultSetApiCustomDomains.d.ts +1 -1
- package/pulumi/features/DefaultSetApiCustomDomains.js.map +1 -1
- 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 +4 -3
- package/pulumi/utils/getDistributionUrl.d.ts +9 -0
- package/pulumi/utils/getDistributionUrl.js +8 -0
- package/pulumi/utils/getDistributionUrl.js.map +1 -0
- package/pulumi/utils/index.d.ts +1 -0
- package/pulumi/utils/index.js +1 -0
- package/pulumi/utils/lambdaEnvVariables.js.map +1 -1
- package/registerAwsProjectFeatures.js +38 -9
- package/registerAwsProjectFeatures.js.map +1 -1
- package/services/AdminStackOutputService.d.ts +3 -3
- package/services/AdminStackOutputService.js +2 -2
- package/services/AdminStackOutputService.js.map +1 -1
- package/services/ApiStackOutputService.d.ts +3 -3
- package/services/ApiStackOutputService.js +2 -2
- 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 +3 -3
- package/services/CoreStackOutputService.js +2 -2
- package/services/CoreStackOutputService.js.map +1 -1
- package/services/GetPulumiService/GetPulumiService.d.ts +4 -3
- package/services/GetPulumiService/GetPulumiService.js +3 -2
- 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/abstractions/ApiGqlClient.d.ts +0 -23
- package/abstractions/ApiGqlClient.js +0 -5
- package/abstractions/ApiGqlClient.js.map +0 -1
- package/abstractions/InvokeLambdaFunction.d.ts +0 -18
- package/abstractions/InvokeLambdaFunction.js +0 -5
- package/abstractions/InvokeLambdaFunction.js.map +0 -1
- package/abstractions/features/pulumi/AdminPulumi.d.ts +0 -9
- package/abstractions/features/pulumi/AdminPulumi.js +0 -5
- package/abstractions/features/pulumi/AdminPulumi.js.map +0 -1
- package/abstractions/features/pulumi/ApiPulumi.d.ts +0 -9
- package/abstractions/features/pulumi/ApiPulumi.js +0 -5
- package/abstractions/features/pulumi/ApiPulumi.js.map +0 -1
- package/abstractions/features/pulumi/CorePulumi.d.ts +0 -9
- package/abstractions/features/pulumi/CorePulumi.js +0 -5
- package/abstractions/features/pulumi/CorePulumi.js.map +0 -1
- package/abstractions/features/pulumi/SetAdminCustomDomains.d.ts +0 -9
- package/abstractions/features/pulumi/SetAdminCustomDomains.js +0 -5
- package/abstractions/features/pulumi/SetAdminCustomDomains.js.map +0 -1
- package/abstractions/features/pulumi/SetApiCustomDomains.d.ts +0 -9
- package/abstractions/features/pulumi/SetApiCustomDomains.js +0 -5
- package/abstractions/features/pulumi/SetApiCustomDomains.js.map +0 -1
- package/abstractions/features/pulumi/index.d.ts +0 -5
- package/abstractions/features/pulumi/index.js +0 -5
- package/abstractions/services/AdminStackOutputService.d.ts +0 -13
- package/abstractions/services/AdminStackOutputService.js +0 -5
- package/abstractions/services/AdminStackOutputService.js.map +0 -1
- package/abstractions/services/ApiStackOutputService.d.ts +0 -29
- package/abstractions/services/ApiStackOutputService.js +0 -5
- package/abstractions/services/ApiStackOutputService.js.map +0 -1
- package/abstractions/services/CoreStackOutputService.d.ts +0 -16
- package/abstractions/services/CoreStackOutputService.js +0 -5
- package/abstractions/services/CoreStackOutputService.js.map +0 -1
- package/exports/extensions.d.ts +0 -5
- package/exports/extensions.js +0 -5
- package/exports/infra.d.ts +0 -1
- package/exports/infra.js +0 -1
- package/extensions/AwsDefaultRegion.d.ts +0 -4
- package/extensions/AwsDefaultRegion.js +0 -23
- package/extensions/AwsDefaultRegion.js.map +0 -1
- package/extensions/BackgroundTasks.d.ts +0 -4
- package/extensions/BackgroundTasks.js +0 -24
- package/extensions/BackgroundTasks.js.map +0 -1
- package/extensions/Cms/ModelFieldCompression.d.ts +0 -4
- package/extensions/Cms/ModelFieldCompression.js +0 -24
- package/extensions/Cms/ModelFieldCompression.js.map +0 -1
- package/extensions/Mailer/Smtp.d.ts +0 -8
- package/extensions/Mailer/Smtp.js +0 -21
- package/extensions/Mailer/Smtp.js.map +0 -1
- package/extensions/Mailer/Smtp.test.js +0 -127
- package/extensions/Mailer/Smtp.test.js.map +0 -1
- package/extensions/Mailer/SmtpParamsSchema.d.ts +0 -9
- package/extensions/Mailer/SmtpParamsSchema.js +0 -17
- package/extensions/Mailer/SmtpParamsSchema.js.map +0 -1
- package/extensions/ProjectAws/AutoInstall.d.ts +0 -9
- package/extensions/ProjectAws/AutoInstall.js +0 -20
- package/extensions/ProjectAws/AutoInstall.js.map +0 -1
- package/extensions/routePath.d.ts +0 -20
- package/extensions/routePath.js +0 -13
- package/extensions/routePath.js.map +0 -1
- package/pulumi/extensions/AdminCustomDomains.d.ts +0 -9
- package/pulumi/extensions/AdminCustomDomains.js +0 -20
- package/pulumi/extensions/AdminCustomDomains.js.map +0 -1
- package/pulumi/extensions/ApiCustomDomains.d.ts +0 -9
- package/pulumi/extensions/ApiCustomDomains.js +0 -20
- package/pulumi/extensions/ApiCustomDomains.js.map +0 -1
- package/pulumi/extensions/AwsTags.d.ts +0 -4
- package/pulumi/extensions/AwsTags.js +0 -16
- package/pulumi/extensions/AwsTags.js.map +0 -1
- package/pulumi/extensions/BlueGreenDeployments.d.ts +0 -34
- package/pulumi/extensions/BlueGreenDeployments.js +0 -38
- package/pulumi/extensions/BlueGreenDeployments.js.map +0 -1
- package/pulumi/extensions/OpenSearch.d.ts +0 -10
- package/pulumi/extensions/OpenSearch.js +0 -21
- package/pulumi/extensions/OpenSearch.js.map +0 -1
- package/pulumi/extensions/Vpc.d.ts +0 -15
- package/pulumi/extensions/Vpc.js +0 -26
- package/pulumi/extensions/Vpc.js.map +0 -1
- /package/extensions/{Mailer/Smtp.test.d.ts → registerExtensionImplementations.d.ts} +0 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { createImplementation } from "@webiny/di";
|
|
2
|
+
import { DestroyApp } from "../../abstractions/features/DestroyApp.js";
|
|
3
|
+
import { BuildAppWorkspaceService, GetApp, GetProject, ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
|
|
4
|
+
import { GetPulumiService } from "../../abstractions/services/GetPulumiService.js";
|
|
5
|
+
import { PulumiSelectStackService } from "../../abstractions/services/PulumiSelectStackService.js";
|
|
6
|
+
import { createEnvConfiguration, withEnv, withEnvVariant, withProjectName, withRegion } from "@webiny/project/utils/env/index.js";
|
|
7
|
+
import { withPulumiConfigPassphrase } from "../../utils/withPulumiConfigPassphrase.js";
|
|
8
|
+
class DefaultDestroyApp {
|
|
9
|
+
constructor(getApp, buildAppWorkspaceService, getProject, pulumiSelectStackService, getPulumiService, projectSdkParamsService){
|
|
10
|
+
this.getApp = getApp;
|
|
11
|
+
this.buildAppWorkspaceService = buildAppWorkspaceService;
|
|
12
|
+
this.getProject = getProject;
|
|
13
|
+
this.pulumiSelectStackService = pulumiSelectStackService;
|
|
14
|
+
this.getPulumiService = getPulumiService;
|
|
15
|
+
this.projectSdkParamsService = projectSdkParamsService;
|
|
16
|
+
}
|
|
17
|
+
async execute(params) {
|
|
18
|
+
await this.buildAppWorkspaceService.execute(params.app);
|
|
19
|
+
const app = this.getApp.execute(params.app);
|
|
20
|
+
await this.pulumiSelectStackService.execute(app);
|
|
21
|
+
const pulumi = await this.getPulumiService.execute({
|
|
22
|
+
app
|
|
23
|
+
});
|
|
24
|
+
const project = await this.getProject.execute();
|
|
25
|
+
const sdkParams = this.projectSdkParamsService.get();
|
|
26
|
+
const env = createEnvConfiguration({
|
|
27
|
+
configurations: [
|
|
28
|
+
withRegion({
|
|
29
|
+
region: sdkParams.region
|
|
30
|
+
}),
|
|
31
|
+
withEnv({
|
|
32
|
+
env: sdkParams.env
|
|
33
|
+
}),
|
|
34
|
+
withEnvVariant({
|
|
35
|
+
variant: sdkParams.variant
|
|
36
|
+
}),
|
|
37
|
+
withPulumiConfigPassphrase(),
|
|
38
|
+
withProjectName({
|
|
39
|
+
project
|
|
40
|
+
})
|
|
41
|
+
]
|
|
42
|
+
});
|
|
43
|
+
return {
|
|
44
|
+
pulumiProcess: pulumi.run({
|
|
45
|
+
command: "destroy",
|
|
46
|
+
args: {
|
|
47
|
+
yes: true
|
|
48
|
+
},
|
|
49
|
+
execa: {
|
|
50
|
+
env
|
|
51
|
+
}
|
|
52
|
+
})
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
const destroyApp = createImplementation({
|
|
57
|
+
abstraction: DestroyApp,
|
|
58
|
+
implementation: DefaultDestroyApp,
|
|
59
|
+
dependencies: [
|
|
60
|
+
GetApp,
|
|
61
|
+
BuildAppWorkspaceService,
|
|
62
|
+
GetProject,
|
|
63
|
+
PulumiSelectStackService,
|
|
64
|
+
GetPulumiService,
|
|
65
|
+
ProjectSdkParamsService
|
|
66
|
+
]
|
|
67
|
+
});
|
|
68
|
+
export { DefaultDestroyApp, destroyApp };
|
|
69
|
+
|
|
70
|
+
//# sourceMappingURL=DestroyApp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/DestroyApp/DestroyApp.js","sources":["../../../src/features/DestroyApp/DestroyApp.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { DestroyApp } from \"~/abstractions/features/DestroyApp.js\";\nimport { BuildAppWorkspaceService } from \"@webiny/project/abstractions/index.js\";\nimport { GetApp } from \"@webiny/project/abstractions/index.js\";\nimport { GetProject } from \"@webiny/project/abstractions/index.js\";\nimport { ProjectSdkParamsService } from \"@webiny/project/abstractions/index.js\";\nimport { GetPulumiService } from \"~/abstractions/services/GetPulumiService.js\";\nimport { PulumiSelectStackService } from \"~/abstractions/services/PulumiSelectStackService.js\";\nimport { createEnvConfiguration } from \"@webiny/project/utils/env/index.js\";\nimport { withEnv } from \"@webiny/project/utils/env/index.js\";\nimport { withEnvVariant } from \"@webiny/project/utils/env/index.js\";\nimport { withProjectName } from \"@webiny/project/utils/env/index.js\";\nimport { withRegion } from \"@webiny/project/utils/env/index.js\";\nimport { withPulumiConfigPassphrase } from \"~/utils/withPulumiConfigPassphrase.js\";\n\nexport class DefaultDestroyApp implements DestroyApp.Interface {\n constructor(\n private getApp: GetApp.Interface,\n private buildAppWorkspaceService: BuildAppWorkspaceService.Interface,\n private getProject: GetProject.Interface,\n private pulumiSelectStackService: PulumiSelectStackService.Interface,\n private getPulumiService: GetPulumiService.Interface,\n private projectSdkParamsService: ProjectSdkParamsService.Interface\n ) {}\n\n async execute(params: DestroyApp.Params) {\n await this.buildAppWorkspaceService.execute(params.app);\n\n const app = this.getApp.execute(params.app);\n\n await this.pulumiSelectStackService.execute(app);\n\n const pulumi = await this.getPulumiService.execute({ app });\n const project = await this.getProject.execute();\n const sdkParams = this.projectSdkParamsService.get();\n\n const env = createEnvConfiguration({\n configurations: [\n withRegion({ region: sdkParams.region }),\n withEnv({ env: sdkParams.env }),\n withEnvVariant({ variant: sdkParams.variant }),\n withPulumiConfigPassphrase(),\n withProjectName({ project })\n ]\n });\n\n return {\n pulumiProcess: pulumi.run({\n command: \"destroy\",\n args: {\n yes: true\n },\n execa: { env }\n })\n };\n }\n}\n\nexport const destroyApp = createImplementation({\n abstraction: DestroyApp,\n implementation: DefaultDestroyApp,\n dependencies: [\n GetApp,\n BuildAppWorkspaceService,\n GetProject,\n PulumiSelectStackService,\n GetPulumiService,\n ProjectSdkParamsService\n ]\n});\n"],"names":["DefaultDestroyApp","getApp","buildAppWorkspaceService","getProject","pulumiSelectStackService","getPulumiService","projectSdkParamsService","params","app","pulumi","project","sdkParams","env","createEnvConfiguration","withRegion","withEnv","withEnvVariant","withPulumiConfigPassphrase","withProjectName","destroyApp","createImplementation","DestroyApp","GetApp","BuildAppWorkspaceService","GetProject","PulumiSelectStackService","GetPulumiService","ProjectSdkParamsService"],"mappings":";;;;;;;AAeO,MAAMA;IACT,YACYC,MAAwB,EACxBC,wBAA4D,EAC5DC,UAAgC,EAChCC,wBAA4D,EAC5DC,gBAA4C,EAC5CC,uBAA0D,CACpE;aANUL,MAAM,GAANA;aACAC,wBAAwB,GAAxBA;aACAC,UAAU,GAAVA;aACAC,wBAAwB,GAAxBA;aACAC,gBAAgB,GAAhBA;aACAC,uBAAuB,GAAvBA;IACT;IAEH,MAAM,QAAQC,MAAyB,EAAE;QACrC,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACA,OAAO,GAAG;QAEtD,MAAMC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAACD,OAAO,GAAG;QAE1C,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACC;QAE5C,MAAMC,SAAS,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;YAAED;QAAI;QACzD,MAAME,UAAU,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO;QAC7C,MAAMC,YAAY,IAAI,CAAC,uBAAuB,CAAC,GAAG;QAElD,MAAMC,MAAMC,uBAAuB;YAC/B,gBAAgB;gBACZC,WAAW;oBAAE,QAAQH,UAAU,MAAM;gBAAC;gBACtCI,QAAQ;oBAAE,KAAKJ,UAAU,GAAG;gBAAC;gBAC7BK,eAAe;oBAAE,SAASL,UAAU,OAAO;gBAAC;gBAC5CM;gBACAC,gBAAgB;oBAAER;gBAAQ;aAC7B;QACL;QAEA,OAAO;YACH,eAAeD,OAAO,GAAG,CAAC;gBACtB,SAAS;gBACT,MAAM;oBACF,KAAK;gBACT;gBACA,OAAO;oBAAEG;gBAAI;YACjB;QACJ;IACJ;AACJ;AAEO,MAAMO,aAAaC,qBAAqB;IAC3C,aAAaC;IACb,gBAAgBrB;IAChB,cAAc;QACVsB;QACAC;QACAC;QACAC;QACAC;QACAC;KACH;AACL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./DestroyApp.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./DestroyApp.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BuildAppWorkspaceService } from "@webiny/project/abstractions/index.js";
|
|
2
|
+
import { GetApp } from "@webiny/project/abstractions/index.js";
|
|
3
|
+
import { ExportStack } from "../../abstractions/features/ExportStack.js";
|
|
4
|
+
import { PulumiExportService } from "../../abstractions/services/PulumiExportService.js";
|
|
5
|
+
export declare class DefaultExportStack implements ExportStack.Interface {
|
|
6
|
+
private getApp;
|
|
7
|
+
private buildAppWorkspaceService;
|
|
8
|
+
private pulumiExportService;
|
|
9
|
+
constructor(getApp: GetApp.Interface, buildAppWorkspaceService: BuildAppWorkspaceService.Interface, pulumiExportService: PulumiExportService.Interface);
|
|
10
|
+
execute<TExport extends Record<string, any> = Record<string, string>>(params: ExportStack.Params): Promise<TExport | null>;
|
|
11
|
+
}
|
|
12
|
+
export declare const exportStack: import("@webiny/di").Implementation<typeof DefaultExportStack>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createImplementation } from "@webiny/di";
|
|
2
|
+
import { BuildAppWorkspaceService, GetApp } from "@webiny/project/abstractions/index.js";
|
|
3
|
+
import { ExportStack } from "../../abstractions/features/ExportStack.js";
|
|
4
|
+
import { PulumiExportService } from "../../abstractions/services/PulumiExportService.js";
|
|
5
|
+
class DefaultExportStack {
|
|
6
|
+
constructor(getApp, buildAppWorkspaceService, pulumiExportService){
|
|
7
|
+
this.getApp = getApp;
|
|
8
|
+
this.buildAppWorkspaceService = buildAppWorkspaceService;
|
|
9
|
+
this.pulumiExportService = pulumiExportService;
|
|
10
|
+
}
|
|
11
|
+
async execute(params) {
|
|
12
|
+
await this.buildAppWorkspaceService.execute(params.app);
|
|
13
|
+
const app = this.getApp.execute(params.app);
|
|
14
|
+
return this.pulumiExportService.execute(app);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const exportStack = createImplementation({
|
|
18
|
+
abstraction: ExportStack,
|
|
19
|
+
implementation: DefaultExportStack,
|
|
20
|
+
dependencies: [
|
|
21
|
+
GetApp,
|
|
22
|
+
BuildAppWorkspaceService,
|
|
23
|
+
PulumiExportService
|
|
24
|
+
]
|
|
25
|
+
});
|
|
26
|
+
export { DefaultExportStack, exportStack };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=ExportStack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/ExportStack/ExportStack.js","sources":["../../../src/features/ExportStack/ExportStack.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { BuildAppWorkspaceService } from \"@webiny/project/abstractions/index.js\";\nimport { GetApp } from \"@webiny/project/abstractions/index.js\";\nimport { ExportStack } from \"~/abstractions/features/ExportStack.js\";\nimport { PulumiExportService } from \"~/abstractions/services/PulumiExportService.js\";\n\nexport class DefaultExportStack implements ExportStack.Interface {\n constructor(\n private getApp: GetApp.Interface,\n private buildAppWorkspaceService: BuildAppWorkspaceService.Interface,\n private pulumiExportService: PulumiExportService.Interface\n ) {}\n\n async execute<TExport extends Record<string, any> = Record<string, string>>(\n params: ExportStack.Params\n ) {\n await this.buildAppWorkspaceService.execute(params.app);\n\n const app = this.getApp.execute(params.app);\n return this.pulumiExportService.execute<TExport>(app);\n }\n}\n\nexport const exportStack = createImplementation({\n abstraction: ExportStack,\n implementation: DefaultExportStack,\n dependencies: [GetApp, BuildAppWorkspaceService, PulumiExportService]\n});\n"],"names":["DefaultExportStack","getApp","buildAppWorkspaceService","pulumiExportService","params","app","exportStack","createImplementation","ExportStack","GetApp","BuildAppWorkspaceService","PulumiExportService"],"mappings":";;;;AAMO,MAAMA;IACT,YACYC,MAAwB,EACxBC,wBAA4D,EAC5DC,mBAAkD,CAC5D;aAHUF,MAAM,GAANA;aACAC,wBAAwB,GAAxBA;aACAC,mBAAmB,GAAnBA;IACT;IAEH,MAAM,QACFC,MAA0B,EAC5B;QACE,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACA,OAAO,GAAG;QAEtD,MAAMC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAACD,OAAO,GAAG;QAC1C,OAAO,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAUC;IACrD;AACJ;AAEO,MAAMC,cAAcC,qBAAqB;IAC5C,aAAaC;IACb,gBAAgBR;IAChB,cAAc;QAACS;QAAQC;QAA0BC;KAAoB;AACzE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ExportStack.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ExportStack.js";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BuildAppWorkspaceService } from "@webiny/project/abstractions/index.js";
|
|
2
|
+
import { GetApp } from "@webiny/project/abstractions/index.js";
|
|
3
|
+
import { GetAppOutput } from "../../abstractions/features/GetAppOutput.js";
|
|
4
|
+
import { GetPulumiService } from "../../abstractions/services/GetPulumiService.js";
|
|
5
|
+
import { PulumiSelectStackService } from "../../abstractions/services/PulumiSelectStackService.js";
|
|
6
|
+
export declare class DefaultGetAppOutput implements GetAppOutput.Interface {
|
|
7
|
+
private getApp;
|
|
8
|
+
private buildAppWorkspaceService;
|
|
9
|
+
private pulumiSelectStackService;
|
|
10
|
+
private getPulumiService;
|
|
11
|
+
constructor(getApp: GetApp.Interface, buildAppWorkspaceService: BuildAppWorkspaceService.Interface, pulumiSelectStackService: PulumiSelectStackService.Interface, getPulumiService: GetPulumiService.Interface);
|
|
12
|
+
execute(params: GetAppOutput.Params): Promise<{
|
|
13
|
+
pulumiProcess: import("@webiny/pulumi-sdk/Pulumi").PulumiProcess;
|
|
14
|
+
}>;
|
|
15
|
+
}
|
|
16
|
+
export declare const getAppOutput: import("@webiny/di").Implementation<typeof DefaultGetAppOutput>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { createImplementation } from "@webiny/di";
|
|
2
|
+
import { BuildAppWorkspaceService, GetApp } from "@webiny/project/abstractions/index.js";
|
|
3
|
+
import { GetAppOutput } from "../../abstractions/features/GetAppOutput.js";
|
|
4
|
+
import { GetPulumiService } from "../../abstractions/services/GetPulumiService.js";
|
|
5
|
+
import { PulumiSelectStackService } from "../../abstractions/services/PulumiSelectStackService.js";
|
|
6
|
+
import { createEnvConfiguration } from "@webiny/project/utils/env/index.js";
|
|
7
|
+
import { withPulumiConfigPassphrase } from "../../utils/withPulumiConfigPassphrase.js";
|
|
8
|
+
class DefaultGetAppOutput {
|
|
9
|
+
constructor(getApp, buildAppWorkspaceService, pulumiSelectStackService, getPulumiService){
|
|
10
|
+
this.getApp = getApp;
|
|
11
|
+
this.buildAppWorkspaceService = buildAppWorkspaceService;
|
|
12
|
+
this.pulumiSelectStackService = pulumiSelectStackService;
|
|
13
|
+
this.getPulumiService = getPulumiService;
|
|
14
|
+
}
|
|
15
|
+
async execute(params) {
|
|
16
|
+
await this.buildAppWorkspaceService.execute(params.app);
|
|
17
|
+
const app = this.getApp.execute(params.app);
|
|
18
|
+
await this.pulumiSelectStackService.execute(app);
|
|
19
|
+
const pulumi = await this.getPulumiService.execute({
|
|
20
|
+
app
|
|
21
|
+
});
|
|
22
|
+
const env = createEnvConfiguration({
|
|
23
|
+
configurations: [
|
|
24
|
+
withPulumiConfigPassphrase()
|
|
25
|
+
]
|
|
26
|
+
});
|
|
27
|
+
return {
|
|
28
|
+
pulumiProcess: pulumi.run({
|
|
29
|
+
command: [
|
|
30
|
+
"stack",
|
|
31
|
+
"output"
|
|
32
|
+
],
|
|
33
|
+
args: {
|
|
34
|
+
json: params.json || false
|
|
35
|
+
},
|
|
36
|
+
execa: {
|
|
37
|
+
env
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
const getAppOutput = createImplementation({
|
|
44
|
+
abstraction: GetAppOutput,
|
|
45
|
+
implementation: DefaultGetAppOutput,
|
|
46
|
+
dependencies: [
|
|
47
|
+
GetApp,
|
|
48
|
+
BuildAppWorkspaceService,
|
|
49
|
+
PulumiSelectStackService,
|
|
50
|
+
GetPulumiService
|
|
51
|
+
]
|
|
52
|
+
});
|
|
53
|
+
export { DefaultGetAppOutput, getAppOutput };
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=GetAppOutput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/GetAppOutput/GetAppOutput.js","sources":["../../../src/features/GetAppOutput/GetAppOutput.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { BuildAppWorkspaceService } from \"@webiny/project/abstractions/index.js\";\nimport { GetApp } from \"@webiny/project/abstractions/index.js\";\nimport { GetAppOutput } from \"~/abstractions/features/GetAppOutput.js\";\nimport { GetPulumiService } from \"~/abstractions/services/GetPulumiService.js\";\nimport { PulumiSelectStackService } from \"~/abstractions/services/PulumiSelectStackService.js\";\nimport { createEnvConfiguration } from \"@webiny/project/utils/env/index.js\";\nimport { withPulumiConfigPassphrase } from \"~/utils/withPulumiConfigPassphrase.js\";\n\nexport class DefaultGetAppOutput implements GetAppOutput.Interface {\n constructor(\n private getApp: GetApp.Interface,\n private buildAppWorkspaceService: BuildAppWorkspaceService.Interface,\n private pulumiSelectStackService: PulumiSelectStackService.Interface,\n private getPulumiService: GetPulumiService.Interface\n ) {}\n\n async execute(params: GetAppOutput.Params) {\n await this.buildAppWorkspaceService.execute(params.app);\n\n const app = this.getApp.execute(params.app);\n\n await this.pulumiSelectStackService.execute(app);\n\n const pulumi = await this.getPulumiService.execute({ app });\n\n const env = createEnvConfiguration({\n configurations: [withPulumiConfigPassphrase()]\n });\n\n return {\n pulumiProcess: pulumi.run({\n command: [\"stack\", \"output\"],\n args: {\n json: params.json || false\n },\n execa: { env }\n })\n };\n }\n}\n\nexport const getAppOutput = createImplementation({\n abstraction: GetAppOutput,\n implementation: DefaultGetAppOutput,\n dependencies: [GetApp, BuildAppWorkspaceService, PulumiSelectStackService, GetPulumiService]\n});\n"],"names":["DefaultGetAppOutput","getApp","buildAppWorkspaceService","pulumiSelectStackService","getPulumiService","params","app","pulumi","env","createEnvConfiguration","withPulumiConfigPassphrase","getAppOutput","createImplementation","GetAppOutput","GetApp","BuildAppWorkspaceService","PulumiSelectStackService","GetPulumiService"],"mappings":";;;;;;;AASO,MAAMA;IACT,YACYC,MAAwB,EACxBC,wBAA4D,EAC5DC,wBAA4D,EAC5DC,gBAA4C,CACtD;aAJUH,MAAM,GAANA;aACAC,wBAAwB,GAAxBA;aACAC,wBAAwB,GAAxBA;aACAC,gBAAgB,GAAhBA;IACT;IAEH,MAAM,QAAQC,MAA2B,EAAE;QACvC,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACA,OAAO,GAAG;QAEtD,MAAMC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAACD,OAAO,GAAG;QAE1C,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACC;QAE5C,MAAMC,SAAS,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;YAAED;QAAI;QAEzD,MAAME,MAAMC,uBAAuB;YAC/B,gBAAgB;gBAACC;aAA6B;QAClD;QAEA,OAAO;YACH,eAAeH,OAAO,GAAG,CAAC;gBACtB,SAAS;oBAAC;oBAAS;iBAAS;gBAC5B,MAAM;oBACF,MAAMF,OAAO,IAAI,IAAI;gBACzB;gBACA,OAAO;oBAAEG;gBAAI;YACjB;QACJ;IACJ;AACJ;AAEO,MAAMG,eAAeC,qBAAqB;IAC7C,aAAaC;IACb,gBAAgBb;IAChB,cAAc;QAACc;QAAQC;QAA0BC;QAA0BC;KAAiB;AAChG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./GetAppOutput.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./GetAppOutput.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BuildAppWorkspaceService } from "@webiny/project/abstractions/index.js";
|
|
2
|
+
import { GetApp } from "@webiny/project/abstractions/index.js";
|
|
3
|
+
import { GetAppStackOutput } from "../../abstractions/features/GetAppStackOutput.js";
|
|
4
|
+
import { PulumiGetStackOutputService } from "../../abstractions/services/PulumiGetStackOutputService.js";
|
|
5
|
+
import { type AppName } from "@webiny/project/abstractions/types.js";
|
|
6
|
+
export declare class DefaultGetAppStackOutput implements GetAppStackOutput.Interface {
|
|
7
|
+
private getAppService;
|
|
8
|
+
private buildAppWorkspaceService;
|
|
9
|
+
private pulumiGetStackOutputService;
|
|
10
|
+
constructor(getAppService: GetApp.Interface, buildAppWorkspaceService: BuildAppWorkspaceService.Interface, pulumiGetStackOutputService: PulumiGetStackOutputService.Interface);
|
|
11
|
+
execute<TOutput extends GetAppStackOutput.StackOutput = GetAppStackOutput.StackOutput>(appName: AppName): Promise<TOutput | null>;
|
|
12
|
+
}
|
|
13
|
+
export declare const getAppStackOutput: import("@webiny/di").Implementation<typeof DefaultGetAppStackOutput>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createImplementation } from "@webiny/di";
|
|
2
|
+
import { BuildAppWorkspaceService, GetAppService } from "@webiny/project/abstractions/index.js";
|
|
3
|
+
import { GetAppStackOutput } from "../../abstractions/features/GetAppStackOutput.js";
|
|
4
|
+
import { PulumiGetStackOutputService } from "../../abstractions/services/PulumiGetStackOutputService.js";
|
|
5
|
+
class DefaultGetAppStackOutput {
|
|
6
|
+
constructor(getAppService, buildAppWorkspaceService, pulumiGetStackOutputService){
|
|
7
|
+
this.getAppService = getAppService;
|
|
8
|
+
this.buildAppWorkspaceService = buildAppWorkspaceService;
|
|
9
|
+
this.pulumiGetStackOutputService = pulumiGetStackOutputService;
|
|
10
|
+
}
|
|
11
|
+
async execute(appName) {
|
|
12
|
+
await this.buildAppWorkspaceService.execute(appName);
|
|
13
|
+
const app = this.getAppService.execute(appName);
|
|
14
|
+
return this.pulumiGetStackOutputService.execute(app);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const getAppStackOutput = createImplementation({
|
|
18
|
+
abstraction: GetAppStackOutput,
|
|
19
|
+
implementation: DefaultGetAppStackOutput,
|
|
20
|
+
dependencies: [
|
|
21
|
+
GetAppService,
|
|
22
|
+
BuildAppWorkspaceService,
|
|
23
|
+
PulumiGetStackOutputService
|
|
24
|
+
]
|
|
25
|
+
});
|
|
26
|
+
export { DefaultGetAppStackOutput, getAppStackOutput };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=GetAppStackOutput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/GetAppStackOutput/GetAppStackOutput.js","sources":["../../../src/features/GetAppStackOutput/GetAppStackOutput.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { BuildAppWorkspaceService } from \"@webiny/project/abstractions/index.js\";\nimport { GetApp } from \"@webiny/project/abstractions/index.js\";\nimport { GetAppService } from \"@webiny/project/abstractions/index.js\";\nimport { GetAppStackOutput } from \"~/abstractions/features/GetAppStackOutput.js\";\nimport { PulumiGetStackOutputService } from \"~/abstractions/services/PulumiGetStackOutputService.js\";\nimport { type AppName } from \"@webiny/project/abstractions/types.js\";\n\nexport class DefaultGetAppStackOutput implements GetAppStackOutput.Interface {\n constructor(\n private getAppService: GetApp.Interface,\n private buildAppWorkspaceService: BuildAppWorkspaceService.Interface,\n private pulumiGetStackOutputService: PulumiGetStackOutputService.Interface\n ) {}\n\n async execute<TOutput extends GetAppStackOutput.StackOutput = GetAppStackOutput.StackOutput>(\n appName: AppName\n ) {\n await this.buildAppWorkspaceService.execute(appName);\n\n const app = this.getAppService.execute(appName);\n return this.pulumiGetStackOutputService.execute<TOutput>(app);\n }\n}\n\nexport const getAppStackOutput = createImplementation({\n abstraction: GetAppStackOutput,\n implementation: DefaultGetAppStackOutput,\n dependencies: [GetAppService, BuildAppWorkspaceService, PulumiGetStackOutputService]\n});\n"],"names":["DefaultGetAppStackOutput","getAppService","buildAppWorkspaceService","pulumiGetStackOutputService","appName","app","getAppStackOutput","createImplementation","GetAppStackOutput","GetAppService","BuildAppWorkspaceService","PulumiGetStackOutputService"],"mappings":";;;;AAQO,MAAMA;IACT,YACYC,aAA+B,EAC/BC,wBAA4D,EAC5DC,2BAAkE,CAC5E;aAHUF,aAAa,GAAbA;aACAC,wBAAwB,GAAxBA;aACAC,2BAA2B,GAA3BA;IACT;IAEH,MAAM,QACFC,OAAgB,EAClB;QACE,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACA;QAE5C,MAAMC,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,CAACD;QACvC,OAAO,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAUC;IAC7D;AACJ;AAEO,MAAMC,oBAAoBC,qBAAqB;IAClD,aAAaC;IACb,gBAAgBR;IAChB,cAAc;QAACS;QAAeC;QAA0BC;KAA4B;AACxF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./GetAppStackOutput.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./GetAppStackOutput.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GetProjectConfigService } from "@webiny/project/abstractions/index.js";
|
|
2
|
+
import { GetPulumiResourceNamePrefix } from "../../abstractions/features/GetPulumiResourceNamePrefix.js";
|
|
3
|
+
export declare class DefaultGetPulumiResourceNamePrefix implements GetPulumiResourceNamePrefix.Interface {
|
|
4
|
+
private getProjectConfigService;
|
|
5
|
+
constructor(getProjectConfigService: GetProjectConfigService.Interface);
|
|
6
|
+
execute(): Promise<string>;
|
|
7
|
+
}
|
|
8
|
+
export declare const getPulumiResourceNamePrefix: import("@webiny/di").Implementation<typeof DefaultGetPulumiResourceNamePrefix>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { createImplementation } from "@webiny/di";
|
|
2
|
+
import { GetProjectConfigService } from "@webiny/project/abstractions/index.js";
|
|
3
|
+
import { GetPulumiResourceNamePrefix } from "../../abstractions/features/GetPulumiResourceNamePrefix.js";
|
|
4
|
+
import { PulumiResourceNamePrefix } from "@webiny/project-extensions-aws/extensions/PulumiResourceNamePrefix.js";
|
|
5
|
+
class DefaultGetPulumiResourceNamePrefix {
|
|
6
|
+
constructor(getProjectConfigService){
|
|
7
|
+
this.getProjectConfigService = getProjectConfigService;
|
|
8
|
+
}
|
|
9
|
+
async execute() {
|
|
10
|
+
const projectConfig = await this.getProjectConfigService.execute();
|
|
11
|
+
let pulumiResourceNamePrefix = "wby-";
|
|
12
|
+
const [pulumiResourceNamePrefixExt] = projectConfig.extensionsByType(PulumiResourceNamePrefix);
|
|
13
|
+
if (pulumiResourceNamePrefixExt) pulumiResourceNamePrefix = pulumiResourceNamePrefixExt.params.prefix;
|
|
14
|
+
return pulumiResourceNamePrefix;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const getPulumiResourceNamePrefix = createImplementation({
|
|
18
|
+
abstraction: GetPulumiResourceNamePrefix,
|
|
19
|
+
implementation: DefaultGetPulumiResourceNamePrefix,
|
|
20
|
+
dependencies: [
|
|
21
|
+
GetProjectConfigService
|
|
22
|
+
]
|
|
23
|
+
});
|
|
24
|
+
export { DefaultGetPulumiResourceNamePrefix, getPulumiResourceNamePrefix };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=GetPulumiResourceNamePrefix.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js","sources":["../../../src/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { GetProjectConfigService } from \"@webiny/project/abstractions/index.js\";\nimport { GetPulumiResourceNamePrefix } from \"~/abstractions/features/GetPulumiResourceNamePrefix.js\";\nimport { PulumiResourceNamePrefix as PulumiResourceNamePrefixExt } from \"@webiny/project-extensions-aws/extensions/PulumiResourceNamePrefix.js\";\n\nexport class DefaultGetPulumiResourceNamePrefix implements GetPulumiResourceNamePrefix.Interface {\n constructor(private getProjectConfigService: GetProjectConfigService.Interface) {}\n async execute() {\n const projectConfig = await this.getProjectConfigService.execute();\n\n let pulumiResourceNamePrefix = \"wby-\";\n const [pulumiResourceNamePrefixExt] = projectConfig.extensionsByType(\n PulumiResourceNamePrefixExt\n );\n\n if (pulumiResourceNamePrefixExt) {\n pulumiResourceNamePrefix = pulumiResourceNamePrefixExt.params.prefix;\n }\n\n return pulumiResourceNamePrefix;\n }\n}\n\nexport const getPulumiResourceNamePrefix = createImplementation({\n abstraction: GetPulumiResourceNamePrefix,\n implementation: DefaultGetPulumiResourceNamePrefix,\n dependencies: [GetProjectConfigService]\n});\n"],"names":["DefaultGetPulumiResourceNamePrefix","getProjectConfigService","projectConfig","pulumiResourceNamePrefix","pulumiResourceNamePrefixExt","PulumiResourceNamePrefixExt","getPulumiResourceNamePrefix","createImplementation","GetPulumiResourceNamePrefix","GetProjectConfigService"],"mappings":";;;;AAKO,MAAMA;IACT,YAAoBC,uBAA0D,CAAE;aAA5DA,uBAAuB,GAAvBA;IAA6D;IACjF,MAAM,UAAU;QACZ,MAAMC,gBAAgB,MAAM,IAAI,CAAC,uBAAuB,CAAC,OAAO;QAEhE,IAAIC,2BAA2B;QAC/B,MAAM,CAACC,4BAA4B,GAAGF,cAAc,gBAAgB,CAChEG;QAGJ,IAAID,6BACAD,2BAA2BC,4BAA4B,MAAM,CAAC,MAAM;QAGxE,OAAOD;IACX;AACJ;AAEO,MAAMG,8BAA8BC,qBAAqB;IAC5D,aAAaC;IACb,gBAAgBR;IAChB,cAAc;QAACS;KAAwB;AAC3C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./GetPulumiResourceNamePrefix.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./GetPulumiResourceNamePrefix.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { GetAppStackOutput } from "
|
|
2
|
-
import { InvokeLambdaFunction as InvokeLambdaFunctionAbstraction } from "
|
|
1
|
+
import { GetAppStackOutput } from "../abstractions/features/GetAppStackOutput.js";
|
|
2
|
+
import { InvokeLambdaFunction as InvokeLambdaFunctionAbstraction } from "@webiny/project-extensions-aws/abstractions/InvokeLambdaFunction.js";
|
|
3
3
|
export declare class InvokeLambdaFunctionImpl implements InvokeLambdaFunctionAbstraction.Interface {
|
|
4
4
|
private getAppStackOutput;
|
|
5
5
|
constructor(getAppStackOutput: GetAppStackOutput.Interface);
|
|
6
6
|
execute<T = any>(params: InvokeLambdaFunctionAbstraction.Params): Promise<InvokeLambdaFunctionAbstraction.Result<T>>;
|
|
7
7
|
}
|
|
8
8
|
export declare const InvokeLambdaFunction: typeof InvokeLambdaFunctionImpl & {
|
|
9
|
-
__abstraction: import("@webiny/di").Abstraction<import("
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/project-extensions-aws/abstractions").IInvokeLambdaFunction>;
|
|
10
10
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { InvokeLambdaFunction } from "../abstractions/InvokeLambdaFunction.js";
|
|
1
|
+
import { GetAppStackOutput } from "../abstractions/features/GetAppStackOutput.js";
|
|
2
|
+
import { InvokeLambdaFunction } from "@webiny/project-extensions-aws/abstractions/InvokeLambdaFunction.js";
|
|
4
3
|
class InvokeLambdaFunctionImpl {
|
|
5
4
|
constructor(getAppStackOutput){
|
|
6
5
|
this.getAppStackOutput = getAppStackOutput;
|
|
@@ -8,6 +7,7 @@ class InvokeLambdaFunctionImpl {
|
|
|
8
7
|
async execute(params) {
|
|
9
8
|
const stackOutput = await this.getAppStackOutput.execute("api");
|
|
10
9
|
if (!stackOutput) throw new Error("Could not retrieve API stack output for Lambda invocation.");
|
|
10
|
+
const { LambdaClient, InvokeCommand } = await import("@webiny/aws-sdk/client-lambda/index.js");
|
|
11
11
|
const { region } = stackOutput;
|
|
12
12
|
const lambdaClient = new LambdaClient({
|
|
13
13
|
region
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features/InvokeLambdaFunction.js","sources":["../../src/features/InvokeLambdaFunction.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"features/InvokeLambdaFunction.js","sources":["../../src/features/InvokeLambdaFunction.ts"],"sourcesContent":["import { GetAppStackOutput } from \"~/abstractions/features/GetAppStackOutput.js\";\nimport { InvokeLambdaFunction as InvokeLambdaFunctionAbstraction } from \"@webiny/project-extensions-aws/abstractions/InvokeLambdaFunction.js\";\nimport { IDefaultStackOutput } from \"~/pulumi/types.js\";\n\nexport class InvokeLambdaFunctionImpl implements InvokeLambdaFunctionAbstraction.Interface {\n constructor(private getAppStackOutput: GetAppStackOutput.Interface) {}\n\n async execute<T = any>(\n params: InvokeLambdaFunctionAbstraction.Params\n ): Promise<InvokeLambdaFunctionAbstraction.Result<T>> {\n // Get region from stack output\n const stackOutput = await this.getAppStackOutput.execute<IDefaultStackOutput>(\"api\");\n\n if (!stackOutput) {\n throw new Error(\"Could not retrieve API stack output for Lambda invocation.\");\n }\n\n // Loaded here rather than at the top of the file. Validating the project config imports this\n // file on every command, and only an actual invocation needs the Lambda client.\n const { LambdaClient, InvokeCommand } =\n await import(\"@webiny/aws-sdk/client-lambda/index.js\");\n\n const { region } = stackOutput;\n const lambdaClient = new LambdaClient({ region });\n\n const response = await lambdaClient.send(\n new InvokeCommand({\n FunctionName: params.functionName,\n InvocationType: params.invocationType || \"RequestResponse\",\n Payload: JSON.stringify(params.payload)\n })\n );\n\n const decoder = new TextDecoder(\"utf-8\");\n const payload = JSON.parse(decoder.decode(response.Payload));\n\n return {\n statusCode: response.StatusCode,\n payload\n };\n }\n}\n\nexport const InvokeLambdaFunction = InvokeLambdaFunctionAbstraction.createImplementation({\n implementation: InvokeLambdaFunctionImpl,\n dependencies: [GetAppStackOutput]\n});\n"],"names":["InvokeLambdaFunctionImpl","getAppStackOutput","params","stackOutput","Error","LambdaClient","InvokeCommand","region","lambdaClient","response","JSON","decoder","TextDecoder","payload","InvokeLambdaFunction","InvokeLambdaFunctionAbstraction","GetAppStackOutput"],"mappings":";;AAIO,MAAMA;IACT,YAAoBC,iBAA8C,CAAE;aAAhDA,iBAAiB,GAAjBA;IAAiD;IAErE,MAAM,QACFC,MAA8C,EACI;QAElD,MAAMC,cAAc,MAAM,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAsB;QAE9E,IAAI,CAACA,aACD,MAAM,IAAIC,MAAM;QAKpB,MAAM,EAAEC,YAAY,EAAEC,aAAa,EAAE,GACjC,MAAM,MAAM,CAAC;QAEjB,MAAM,EAAEC,MAAM,EAAE,GAAGJ;QACnB,MAAMK,eAAe,IAAIH,aAAa;YAAEE;QAAO;QAE/C,MAAME,WAAW,MAAMD,aAAa,IAAI,CACpC,IAAIF,cAAc;YACd,cAAcJ,OAAO,YAAY;YACjC,gBAAgBA,OAAO,cAAc,IAAI;YACzC,SAASQ,KAAK,SAAS,CAACR,OAAO,OAAO;QAC1C;QAGJ,MAAMS,UAAU,IAAIC,YAAY;QAChC,MAAMC,UAAUH,KAAK,KAAK,CAACC,QAAQ,MAAM,CAACF,SAAS,OAAO;QAE1D,OAAO;YACH,YAAYA,SAAS,UAAU;YAC/BI;QACJ;IACJ;AACJ;AAEO,MAAMC,4CAAuBC,qBAAAA,oBAAoD,CAAC;IACrF,gBAAgBf;IAChB,cAAc;QAACgB;KAAkB;AACrC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RefreshApp } from "../../abstractions/features/RefreshApp.js";
|
|
2
|
+
import { GetApp } from "@webiny/project/abstractions/index.js";
|
|
3
|
+
import { GetProject } from "@webiny/project/abstractions/index.js";
|
|
4
|
+
import { ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
|
|
5
|
+
import { GetPulumiService } from "../../abstractions/services/GetPulumiService.js";
|
|
6
|
+
import { PulumiSelectStackService } from "../../abstractions/services/PulumiSelectStackService.js";
|
|
7
|
+
export declare class DefaultRefreshApp implements RefreshApp.Interface {
|
|
8
|
+
private getApp;
|
|
9
|
+
private getProject;
|
|
10
|
+
private pulumiSelectStackService;
|
|
11
|
+
private getPulumiService;
|
|
12
|
+
private projectSdkParamsService;
|
|
13
|
+
constructor(getApp: GetApp.Interface, getProject: GetProject.Interface, pulumiSelectStackService: PulumiSelectStackService.Interface, getPulumiService: GetPulumiService.Interface, projectSdkParamsService: ProjectSdkParamsService.Interface);
|
|
14
|
+
execute(params: RefreshApp.Params): Promise<{
|
|
15
|
+
pulumiProcess: import("@webiny/pulumi-sdk/Pulumi").PulumiProcess;
|
|
16
|
+
}>;
|
|
17
|
+
}
|
|
18
|
+
export declare const refreshApp: import("@webiny/di").Implementation<typeof DefaultRefreshApp>;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { createImplementation } from "@webiny/di";
|
|
2
|
+
import { RefreshApp } from "../../abstractions/features/RefreshApp.js";
|
|
3
|
+
import { GetApp, GetProject, ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
|
|
4
|
+
import { GetPulumiService } from "../../abstractions/services/GetPulumiService.js";
|
|
5
|
+
import { PulumiSelectStackService } from "../../abstractions/services/PulumiSelectStackService.js";
|
|
6
|
+
import { createEnvConfiguration, withEnv, withEnvVariant, withProjectName, withRegion } from "@webiny/project/utils/env/index.js";
|
|
7
|
+
import { withPulumiConfigPassphrase } from "../../utils/withPulumiConfigPassphrase.js";
|
|
8
|
+
class DefaultRefreshApp {
|
|
9
|
+
constructor(getApp, getProject, pulumiSelectStackService, getPulumiService, projectSdkParamsService){
|
|
10
|
+
this.getApp = getApp;
|
|
11
|
+
this.getProject = getProject;
|
|
12
|
+
this.pulumiSelectStackService = pulumiSelectStackService;
|
|
13
|
+
this.getPulumiService = getPulumiService;
|
|
14
|
+
this.projectSdkParamsService = projectSdkParamsService;
|
|
15
|
+
}
|
|
16
|
+
async execute(params) {
|
|
17
|
+
const app = this.getApp.execute(params.app);
|
|
18
|
+
const sdkParams = this.projectSdkParamsService.get();
|
|
19
|
+
if (!sdkParams.env) throw new Error('Please specify environment, for example "dev".');
|
|
20
|
+
await this.pulumiSelectStackService.execute(app);
|
|
21
|
+
const pulumi = await this.getPulumiService.execute({
|
|
22
|
+
app
|
|
23
|
+
});
|
|
24
|
+
const project = await this.getProject.execute();
|
|
25
|
+
const env = createEnvConfiguration({
|
|
26
|
+
configurations: [
|
|
27
|
+
withRegion({
|
|
28
|
+
region: sdkParams.region
|
|
29
|
+
}),
|
|
30
|
+
withEnv({
|
|
31
|
+
env: sdkParams.env
|
|
32
|
+
}),
|
|
33
|
+
withEnvVariant({
|
|
34
|
+
variant: sdkParams.variant
|
|
35
|
+
}),
|
|
36
|
+
withPulumiConfigPassphrase(),
|
|
37
|
+
withProjectName({
|
|
38
|
+
project
|
|
39
|
+
})
|
|
40
|
+
]
|
|
41
|
+
});
|
|
42
|
+
return {
|
|
43
|
+
pulumiProcess: pulumi.run({
|
|
44
|
+
command: "refresh",
|
|
45
|
+
args: {
|
|
46
|
+
yes: true
|
|
47
|
+
},
|
|
48
|
+
execa: {
|
|
49
|
+
env
|
|
50
|
+
}
|
|
51
|
+
})
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
const refreshApp = createImplementation({
|
|
56
|
+
abstraction: RefreshApp,
|
|
57
|
+
implementation: DefaultRefreshApp,
|
|
58
|
+
dependencies: [
|
|
59
|
+
GetApp,
|
|
60
|
+
GetProject,
|
|
61
|
+
PulumiSelectStackService,
|
|
62
|
+
GetPulumiService,
|
|
63
|
+
ProjectSdkParamsService
|
|
64
|
+
]
|
|
65
|
+
});
|
|
66
|
+
export { DefaultRefreshApp, refreshApp };
|
|
67
|
+
|
|
68
|
+
//# sourceMappingURL=RefreshApp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/RefreshApp/RefreshApp.js","sources":["../../../src/features/RefreshApp/RefreshApp.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { RefreshApp } from \"~/abstractions/features/RefreshApp.js\";\nimport { GetApp } from \"@webiny/project/abstractions/index.js\";\nimport { GetProject } from \"@webiny/project/abstractions/index.js\";\nimport { ProjectSdkParamsService } from \"@webiny/project/abstractions/index.js\";\nimport { GetPulumiService } from \"~/abstractions/services/GetPulumiService.js\";\nimport { PulumiSelectStackService } from \"~/abstractions/services/PulumiSelectStackService.js\";\nimport { createEnvConfiguration } from \"@webiny/project/utils/env/index.js\";\nimport { withEnv } from \"@webiny/project/utils/env/index.js\";\nimport { withEnvVariant } from \"@webiny/project/utils/env/index.js\";\nimport { withProjectName } from \"@webiny/project/utils/env/index.js\";\nimport { withRegion } from \"@webiny/project/utils/env/index.js\";\nimport { withPulumiConfigPassphrase } from \"~/utils/withPulumiConfigPassphrase.js\";\n\nexport class DefaultRefreshApp implements RefreshApp.Interface {\n constructor(\n private getApp: GetApp.Interface,\n private getProject: GetProject.Interface,\n private pulumiSelectStackService: PulumiSelectStackService.Interface,\n private getPulumiService: GetPulumiService.Interface,\n private projectSdkParamsService: ProjectSdkParamsService.Interface\n ) {}\n\n async execute(params: RefreshApp.Params) {\n const app = this.getApp.execute(params.app);\n const sdkParams = this.projectSdkParamsService.get();\n\n if (!sdkParams.env) {\n throw new Error(`Please specify environment, for example \"dev\".`);\n }\n\n await this.pulumiSelectStackService.execute(app);\n\n const pulumi = await this.getPulumiService.execute({ app });\n const project = await this.getProject.execute();\n\n const env = createEnvConfiguration({\n configurations: [\n withRegion({ region: sdkParams.region }),\n withEnv({ env: sdkParams.env }),\n withEnvVariant({ variant: sdkParams.variant }),\n withPulumiConfigPassphrase(),\n withProjectName({ project })\n ]\n });\n\n return {\n pulumiProcess: pulumi.run({\n command: \"refresh\",\n args: {\n yes: true\n },\n execa: { env }\n })\n };\n }\n}\n\nexport const refreshApp = createImplementation({\n abstraction: RefreshApp,\n implementation: DefaultRefreshApp,\n dependencies: [\n GetApp,\n GetProject,\n PulumiSelectStackService,\n GetPulumiService,\n ProjectSdkParamsService\n ]\n});\n"],"names":["DefaultRefreshApp","getApp","getProject","pulumiSelectStackService","getPulumiService","projectSdkParamsService","params","app","sdkParams","Error","pulumi","project","env","createEnvConfiguration","withRegion","withEnv","withEnvVariant","withPulumiConfigPassphrase","withProjectName","refreshApp","createImplementation","RefreshApp","GetApp","GetProject","PulumiSelectStackService","GetPulumiService","ProjectSdkParamsService"],"mappings":";;;;;;;AAcO,MAAMA;IACT,YACYC,MAAwB,EACxBC,UAAgC,EAChCC,wBAA4D,EAC5DC,gBAA4C,EAC5CC,uBAA0D,CACpE;aALUJ,MAAM,GAANA;aACAC,UAAU,GAAVA;aACAC,wBAAwB,GAAxBA;aACAC,gBAAgB,GAAhBA;aACAC,uBAAuB,GAAvBA;IACT;IAEH,MAAM,QAAQC,MAAyB,EAAE;QACrC,MAAMC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAACD,OAAO,GAAG;QAC1C,MAAME,YAAY,IAAI,CAAC,uBAAuB,CAAC,GAAG;QAElD,IAAI,CAACA,UAAU,GAAG,EACd,MAAM,IAAIC,MAAM;QAGpB,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACF;QAE5C,MAAMG,SAAS,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;YAAEH;QAAI;QACzD,MAAMI,UAAU,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO;QAE7C,MAAMC,MAAMC,uBAAuB;YAC/B,gBAAgB;gBACZC,WAAW;oBAAE,QAAQN,UAAU,MAAM;gBAAC;gBACtCO,QAAQ;oBAAE,KAAKP,UAAU,GAAG;gBAAC;gBAC7BQ,eAAe;oBAAE,SAASR,UAAU,OAAO;gBAAC;gBAC5CS;gBACAC,gBAAgB;oBAAEP;gBAAQ;aAC7B;QACL;QAEA,OAAO;YACH,eAAeD,OAAO,GAAG,CAAC;gBACtB,SAAS;gBACT,MAAM;oBACF,KAAK;gBACT;gBACA,OAAO;oBAAEE;gBAAI;YACjB;QACJ;IACJ;AACJ;AAEO,MAAMO,aAAaC,qBAAqB;IAC3C,aAAaC;IACb,gBAAgBrB;IAChB,cAAc;QACVsB;QACAC;QACAC;QACAC;QACAC;KACH;AACL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./RefreshApp.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./RefreshApp.js";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RunPulumiCommand } from "../../abstractions/features/RunPulumiCommand.js";
|
|
2
|
+
import { GetApp } from "@webiny/project/abstractions/index.js";
|
|
3
|
+
import { GetProject } from "@webiny/project/abstractions/index.js";
|
|
4
|
+
import { ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
|
|
5
|
+
import { GetPulumiService } from "../../abstractions/services/GetPulumiService.js";
|
|
6
|
+
import { PulumiSelectStackService } from "../../abstractions/services/PulumiSelectStackService.js";
|
|
7
|
+
export declare class DefaultRunPulumiCommand implements RunPulumiCommand.Interface {
|
|
8
|
+
private getApp;
|
|
9
|
+
private getProject;
|
|
10
|
+
private pulumiSelectStackService;
|
|
11
|
+
private getPulumiService;
|
|
12
|
+
private projectSdkParamsService;
|
|
13
|
+
constructor(getApp: GetApp.Interface, getProject: GetProject.Interface, pulumiSelectStackService: PulumiSelectStackService.Interface, getPulumiService: GetPulumiService.Interface, projectSdkParamsService: ProjectSdkParamsService.Interface);
|
|
14
|
+
execute(params: RunPulumiCommand.Params): Promise<{
|
|
15
|
+
pulumiProcess: import("@webiny/pulumi-sdk/Pulumi").PulumiProcess;
|
|
16
|
+
}>;
|
|
17
|
+
}
|
|
18
|
+
export declare const runPulumiCommand: import("@webiny/di").Implementation<typeof DefaultRunPulumiCommand>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { createImplementation } from "@webiny/di";
|
|
2
|
+
import { RunPulumiCommand } from "../../abstractions/features/RunPulumiCommand.js";
|
|
3
|
+
import { GetApp, GetProject, ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
|
|
4
|
+
import { GetPulumiService } from "../../abstractions/services/GetPulumiService.js";
|
|
5
|
+
import { PulumiSelectStackService } from "../../abstractions/services/PulumiSelectStackService.js";
|
|
6
|
+
import { createEnvConfiguration, withEnv, withEnvVariant, withProjectName, withRegion } from "@webiny/project/utils/env/index.js";
|
|
7
|
+
import { withPulumiConfigPassphrase } from "../../utils/withPulumiConfigPassphrase.js";
|
|
8
|
+
class DefaultRunPulumiCommand {
|
|
9
|
+
constructor(getApp, getProject, pulumiSelectStackService, getPulumiService, projectSdkParamsService){
|
|
10
|
+
this.getApp = getApp;
|
|
11
|
+
this.getProject = getProject;
|
|
12
|
+
this.pulumiSelectStackService = pulumiSelectStackService;
|
|
13
|
+
this.getPulumiService = getPulumiService;
|
|
14
|
+
this.projectSdkParamsService = projectSdkParamsService;
|
|
15
|
+
}
|
|
16
|
+
async execute(params) {
|
|
17
|
+
const app = this.getApp.execute(params.app);
|
|
18
|
+
const sdkParams = this.projectSdkParamsService.get();
|
|
19
|
+
if (!sdkParams.env) throw new Error('Please specify environment, for example "dev".');
|
|
20
|
+
await this.pulumiSelectStackService.execute(app);
|
|
21
|
+
const pulumi = await this.getPulumiService.execute({
|
|
22
|
+
app
|
|
23
|
+
});
|
|
24
|
+
const project = this.getProject.execute();
|
|
25
|
+
const env = createEnvConfiguration({
|
|
26
|
+
configurations: [
|
|
27
|
+
withRegion({
|
|
28
|
+
region: sdkParams.region
|
|
29
|
+
}),
|
|
30
|
+
withEnv({
|
|
31
|
+
env: sdkParams.env
|
|
32
|
+
}),
|
|
33
|
+
withEnvVariant({
|
|
34
|
+
variant: sdkParams.variant
|
|
35
|
+
}),
|
|
36
|
+
withPulumiConfigPassphrase(),
|
|
37
|
+
withProjectName({
|
|
38
|
+
project
|
|
39
|
+
})
|
|
40
|
+
]
|
|
41
|
+
});
|
|
42
|
+
return {
|
|
43
|
+
pulumiProcess: pulumi.run({
|
|
44
|
+
command: params.command,
|
|
45
|
+
execa: {
|
|
46
|
+
env
|
|
47
|
+
}
|
|
48
|
+
})
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
const runPulumiCommand = createImplementation({
|
|
53
|
+
abstraction: RunPulumiCommand,
|
|
54
|
+
implementation: DefaultRunPulumiCommand,
|
|
55
|
+
dependencies: [
|
|
56
|
+
GetApp,
|
|
57
|
+
GetProject,
|
|
58
|
+
PulumiSelectStackService,
|
|
59
|
+
GetPulumiService,
|
|
60
|
+
ProjectSdkParamsService
|
|
61
|
+
]
|
|
62
|
+
});
|
|
63
|
+
export { DefaultRunPulumiCommand, runPulumiCommand };
|
|
64
|
+
|
|
65
|
+
//# sourceMappingURL=RunPulumiCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/RunPulumiCommand/RunPulumiCommand.js","sources":["../../../src/features/RunPulumiCommand/RunPulumiCommand.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { RunPulumiCommand } from \"~/abstractions/features/RunPulumiCommand.js\";\nimport { GetApp } from \"@webiny/project/abstractions/index.js\";\nimport { GetProject } from \"@webiny/project/abstractions/index.js\";\nimport { ProjectSdkParamsService } from \"@webiny/project/abstractions/index.js\";\nimport { GetPulumiService } from \"~/abstractions/services/GetPulumiService.js\";\nimport { PulumiSelectStackService } from \"~/abstractions/services/PulumiSelectStackService.js\";\nimport { createEnvConfiguration } from \"@webiny/project/utils/env/index.js\";\nimport { withEnv } from \"@webiny/project/utils/env/index.js\";\nimport { withEnvVariant } from \"@webiny/project/utils/env/index.js\";\nimport { withProjectName } from \"@webiny/project/utils/env/index.js\";\nimport { withRegion } from \"@webiny/project/utils/env/index.js\";\nimport { withPulumiConfigPassphrase } from \"~/utils/withPulumiConfigPassphrase.js\";\n\nexport class DefaultRunPulumiCommand implements RunPulumiCommand.Interface {\n constructor(\n private getApp: GetApp.Interface,\n private getProject: GetProject.Interface,\n private pulumiSelectStackService: PulumiSelectStackService.Interface,\n private getPulumiService: GetPulumiService.Interface,\n private projectSdkParamsService: ProjectSdkParamsService.Interface\n ) {}\n\n async execute(params: RunPulumiCommand.Params) {\n const app = this.getApp.execute(params.app);\n const sdkParams = this.projectSdkParamsService.get();\n\n if (!sdkParams.env) {\n throw new Error(`Please specify environment, for example \"dev\".`);\n }\n\n await this.pulumiSelectStackService.execute(app);\n\n const pulumi = await this.getPulumiService.execute({ app });\n const project = this.getProject.execute();\n\n const env = createEnvConfiguration({\n configurations: [\n withRegion({ region: sdkParams.region }),\n withEnv({ env: sdkParams.env }),\n withEnvVariant({ variant: sdkParams.variant }),\n withPulumiConfigPassphrase(),\n withProjectName({ project })\n ]\n });\n\n return {\n pulumiProcess: pulumi.run({\n command: params.command as string[],\n execa: { env }\n })\n };\n }\n}\n\nexport const runPulumiCommand = createImplementation({\n abstraction: RunPulumiCommand,\n implementation: DefaultRunPulumiCommand,\n dependencies: [\n GetApp,\n GetProject,\n PulumiSelectStackService,\n GetPulumiService,\n ProjectSdkParamsService\n ]\n});\n"],"names":["DefaultRunPulumiCommand","getApp","getProject","pulumiSelectStackService","getPulumiService","projectSdkParamsService","params","app","sdkParams","Error","pulumi","project","env","createEnvConfiguration","withRegion","withEnv","withEnvVariant","withPulumiConfigPassphrase","withProjectName","runPulumiCommand","createImplementation","RunPulumiCommand","GetApp","GetProject","PulumiSelectStackService","GetPulumiService","ProjectSdkParamsService"],"mappings":";;;;;;;AAcO,MAAMA;IACT,YACYC,MAAwB,EACxBC,UAAgC,EAChCC,wBAA4D,EAC5DC,gBAA4C,EAC5CC,uBAA0D,CACpE;aALUJ,MAAM,GAANA;aACAC,UAAU,GAAVA;aACAC,wBAAwB,GAAxBA;aACAC,gBAAgB,GAAhBA;aACAC,uBAAuB,GAAvBA;IACT;IAEH,MAAM,QAAQC,MAA+B,EAAE;QAC3C,MAAMC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAACD,OAAO,GAAG;QAC1C,MAAME,YAAY,IAAI,CAAC,uBAAuB,CAAC,GAAG;QAElD,IAAI,CAACA,UAAU,GAAG,EACd,MAAM,IAAIC,MAAM;QAGpB,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACF;QAE5C,MAAMG,SAAS,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;YAAEH;QAAI;QACzD,MAAMI,UAAU,IAAI,CAAC,UAAU,CAAC,OAAO;QAEvC,MAAMC,MAAMC,uBAAuB;YAC/B,gBAAgB;gBACZC,WAAW;oBAAE,QAAQN,UAAU,MAAM;gBAAC;gBACtCO,QAAQ;oBAAE,KAAKP,UAAU,GAAG;gBAAC;gBAC7BQ,eAAe;oBAAE,SAASR,UAAU,OAAO;gBAAC;gBAC5CS;gBACAC,gBAAgB;oBAAEP;gBAAQ;aAC7B;QACL;QAEA,OAAO;YACH,eAAeD,OAAO,GAAG,CAAC;gBACtB,SAASJ,OAAO,OAAO;gBACvB,OAAO;oBAAEM;gBAAI;YACjB;QACJ;IACJ;AACJ;AAEO,MAAMO,mBAAmBC,qBAAqB;IACjD,aAAaC;IACb,gBAAgBrB;IAChB,cAAc;QACVsB;QACAC;QACAC;QACAC;QACAC;KACH;AACL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./RunPulumiCommand.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./RunPulumiCommand.js";
|