@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,13 @@
|
|
|
1
|
+
import { GetProjectService } from "@webiny/project/abstractions/index.js";
|
|
2
|
+
import { UiService } from "@webiny/project/abstractions/index.js";
|
|
3
|
+
import { GetPulumiService } from "../abstractions/services/GetPulumiService.js";
|
|
4
|
+
export declare class GetPulumiServiceWithDownloadInfo implements GetPulumiService.Interface {
|
|
5
|
+
private getProjectService;
|
|
6
|
+
private ui;
|
|
7
|
+
private decoratee;
|
|
8
|
+
constructor(getProjectService: GetProjectService.Interface, ui: UiService.Interface, decoratee: GetPulumiService.Interface);
|
|
9
|
+
execute(params?: GetPulumiService.Params): Promise<import("@webiny/pulumi-sdk/Pulumi").Pulumi>;
|
|
10
|
+
}
|
|
11
|
+
export declare const getPulumiServiceWithDownloadInfo: typeof GetPulumiServiceWithDownloadInfo & {
|
|
12
|
+
__abstraction: import("@webiny/di").Abstraction<import("~/abstractions/services/GetPulumiService.js").IGetPulumiService>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { GetProjectService, UiService } from "@webiny/project/abstractions/index.js";
|
|
2
|
+
import { GetPulumiService } from "../abstractions/services/GetPulumiService.js";
|
|
3
|
+
class GetPulumiServiceWithDownloadInfo {
|
|
4
|
+
constructor(getProjectService, ui, decoratee){
|
|
5
|
+
this.getProjectService = getProjectService;
|
|
6
|
+
this.ui = ui;
|
|
7
|
+
this.decoratee = decoratee;
|
|
8
|
+
}
|
|
9
|
+
async execute(params = {}) {
|
|
10
|
+
const project = this.getProjectService.execute();
|
|
11
|
+
const pulumiCliPath = project.paths.dotWebinyFolder.join("pulumi-cli");
|
|
12
|
+
if (!pulumiCliPath.existsSync()) {
|
|
13
|
+
this.ui.info("Looks like this is your first time using Pulumi CLI. Downloading...");
|
|
14
|
+
this.ui.emptyLine();
|
|
15
|
+
}
|
|
16
|
+
return this.decoratee.execute(params);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
const getPulumiServiceWithDownloadInfo = GetPulumiService.createDecorator({
|
|
20
|
+
decorator: GetPulumiServiceWithDownloadInfo,
|
|
21
|
+
dependencies: [
|
|
22
|
+
GetProjectService,
|
|
23
|
+
UiService
|
|
24
|
+
]
|
|
25
|
+
});
|
|
26
|
+
export { GetPulumiServiceWithDownloadInfo, getPulumiServiceWithDownloadInfo };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=GetPulumiServiceWithDownloadInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decorators/GetPulumiServiceWithDownloadInfo.js","sources":["../../src/decorators/GetPulumiServiceWithDownloadInfo.ts"],"sourcesContent":["import { GetProjectService } from \"@webiny/project/abstractions/index.js\";\nimport { UiService } from \"@webiny/project/abstractions/index.js\";\nimport { GetPulumiService } from \"~/abstractions/services/GetPulumiService.js\";\n\nexport class GetPulumiServiceWithDownloadInfo implements GetPulumiService.Interface {\n constructor(\n private getProjectService: GetProjectService.Interface,\n private ui: UiService.Interface,\n private decoratee: GetPulumiService.Interface\n ) {}\n\n async execute(params: GetPulumiService.Params = {}) {\n const project = this.getProjectService.execute();\n const pulumiCliPath = project.paths.dotWebinyFolder.join(\"pulumi-cli\");\n\n if (!pulumiCliPath.existsSync()) {\n this.ui.info(\"Looks like this is your first time using Pulumi CLI. Downloading...\");\n\n // New line b/c after the Pulumi CLI download, plugins are next.\n this.ui.emptyLine();\n }\n\n return this.decoratee.execute(params);\n }\n}\n\nexport const getPulumiServiceWithDownloadInfo = GetPulumiService.createDecorator({\n decorator: GetPulumiServiceWithDownloadInfo,\n dependencies: [GetProjectService, UiService]\n});\n"],"names":["GetPulumiServiceWithDownloadInfo","getProjectService","ui","decoratee","params","project","pulumiCliPath","getPulumiServiceWithDownloadInfo","GetPulumiService","GetProjectService","UiService"],"mappings":";;AAIO,MAAMA;IACT,YACYC,iBAA8C,EAC9CC,EAAuB,EACvBC,SAAqC,CAC/C;aAHUF,iBAAiB,GAAjBA;aACAC,EAAE,GAAFA;aACAC,SAAS,GAATA;IACT;IAEH,MAAM,QAAQC,SAAkC,CAAC,CAAC,EAAE;QAChD,MAAMC,UAAU,IAAI,CAAC,iBAAiB,CAAC,OAAO;QAC9C,MAAMC,gBAAgBD,QAAQ,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC;QAEzD,IAAI,CAACC,cAAc,UAAU,IAAI;YAC7B,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC;YAGb,IAAI,CAAC,EAAE,CAAC,SAAS;QACrB;QAEA,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAACF;IAClC;AACJ;AAEO,MAAMG,mCAAmCC,iBAAiB,eAAe,CAAC;IAC7E,WAAWR;IACX,cAAc;QAACS;QAAmBC;KAAU;AAChD"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ProjectInfoService } from "@webiny/project/abstractions/index.js";
|
|
2
|
+
import { GetPulumiVersionService } from "../abstractions/services/GetPulumiVersionService.js";
|
|
3
|
+
/**
|
|
4
|
+
* Adds the Pulumi section to `webiny about`: the installed Pulumi packages and how Pulumi secrets
|
|
5
|
+
* are configured.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ProjectInfoWithPulumi implements ProjectInfoService.Interface {
|
|
8
|
+
private getPulumiVersion;
|
|
9
|
+
private decoratee;
|
|
10
|
+
constructor(getPulumiVersion: GetPulumiVersionService.Interface, decoratee: ProjectInfoService.Interface);
|
|
11
|
+
execute(): Promise<{
|
|
12
|
+
webiny: {
|
|
13
|
+
debugEnabled: boolean;
|
|
14
|
+
featureFlags: Record<string, boolean>;
|
|
15
|
+
version: string;
|
|
16
|
+
};
|
|
17
|
+
wcp: {
|
|
18
|
+
projectId: string;
|
|
19
|
+
usingProjectEnvironmentApiKey: boolean;
|
|
20
|
+
};
|
|
21
|
+
host: {
|
|
22
|
+
os: string;
|
|
23
|
+
nodeJs: string;
|
|
24
|
+
npm: string;
|
|
25
|
+
npx: string;
|
|
26
|
+
yarn: string;
|
|
27
|
+
isCI: boolean;
|
|
28
|
+
};
|
|
29
|
+
sections: import("@webiny/project/abstractions/services/ProjectInfoService/ProjectInfoService").IProjectInfoSection[];
|
|
30
|
+
}>;
|
|
31
|
+
}
|
|
32
|
+
export declare const projectInfoWithPulumi: typeof ProjectInfoWithPulumi & {
|
|
33
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/project/abstractions/services/ProjectInfoService/ProjectInfoService").IProjectInfoService>;
|
|
34
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ProjectInfoService } from "@webiny/project/abstractions/index.js";
|
|
2
|
+
import { GetPulumiVersionService } from "../abstractions/services/GetPulumiVersionService.js";
|
|
3
|
+
class ProjectInfoWithPulumi {
|
|
4
|
+
constructor(getPulumiVersion, decoratee){
|
|
5
|
+
this.getPulumiVersion = getPulumiVersion;
|
|
6
|
+
this.decoratee = decoratee;
|
|
7
|
+
}
|
|
8
|
+
async execute() {
|
|
9
|
+
const info = await this.decoratee.execute();
|
|
10
|
+
const [pulumiVersion, pulumiAwsVersion] = this.getPulumiVersion.execute();
|
|
11
|
+
return {
|
|
12
|
+
...info,
|
|
13
|
+
sections: [
|
|
14
|
+
...info.sections,
|
|
15
|
+
{
|
|
16
|
+
name: "Pulumi",
|
|
17
|
+
data: {
|
|
18
|
+
"@pulumi/pulumi": pulumiVersion,
|
|
19
|
+
"@pulumi/aws": pulumiAwsVersion,
|
|
20
|
+
"Secrets Provider": process.env.PULUMI_SECRETS_PROVIDER || "",
|
|
21
|
+
"Using Password": process.env.PULUMI_CONFIG_PASSPHRASE ? "Yes" : "No"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const projectInfoWithPulumi = ProjectInfoService.createDecorator({
|
|
29
|
+
decorator: ProjectInfoWithPulumi,
|
|
30
|
+
dependencies: [
|
|
31
|
+
GetPulumiVersionService
|
|
32
|
+
]
|
|
33
|
+
});
|
|
34
|
+
export { ProjectInfoWithPulumi, projectInfoWithPulumi };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=ProjectInfoWithPulumi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decorators/ProjectInfoWithPulumi.js","sources":["../../src/decorators/ProjectInfoWithPulumi.ts"],"sourcesContent":["import { ProjectInfoService } from \"@webiny/project/abstractions/index.js\";\nimport { GetPulumiVersionService } from \"~/abstractions/services/GetPulumiVersionService.js\";\n\n/**\n * Adds the Pulumi section to `webiny about`: the installed Pulumi packages and how Pulumi secrets\n * are configured.\n */\nexport class ProjectInfoWithPulumi implements ProjectInfoService.Interface {\n constructor(\n private getPulumiVersion: GetPulumiVersionService.Interface,\n private decoratee: ProjectInfoService.Interface\n ) {}\n\n async execute() {\n const info = await this.decoratee.execute();\n const [pulumiVersion, pulumiAwsVersion] = this.getPulumiVersion.execute();\n\n return {\n ...info,\n sections: [\n ...info.sections,\n {\n name: \"Pulumi\",\n data: {\n \"@pulumi/pulumi\": pulumiVersion,\n \"@pulumi/aws\": pulumiAwsVersion,\n \"Secrets Provider\": process.env.PULUMI_SECRETS_PROVIDER || \"\",\n \"Using Password\": process.env.PULUMI_CONFIG_PASSPHRASE ? \"Yes\" : \"No\"\n }\n }\n ]\n };\n }\n}\n\nexport const projectInfoWithPulumi = ProjectInfoService.createDecorator({\n decorator: ProjectInfoWithPulumi,\n dependencies: [GetPulumiVersionService]\n});\n"],"names":["ProjectInfoWithPulumi","getPulumiVersion","decoratee","info","pulumiVersion","pulumiAwsVersion","process","projectInfoWithPulumi","ProjectInfoService","GetPulumiVersionService"],"mappings":";;AAOO,MAAMA;IACT,YACYC,gBAAmD,EACnDC,SAAuC,CACjD;aAFUD,gBAAgB,GAAhBA;aACAC,SAAS,GAATA;IACT;IAEH,MAAM,UAAU;QACZ,MAAMC,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO;QACzC,MAAM,CAACC,eAAeC,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO;QAEvE,OAAO;YACH,GAAGF,IAAI;YACP,UAAU;mBACHA,KAAK,QAAQ;gBAChB;oBACI,MAAM;oBACN,MAAM;wBACF,kBAAkBC;wBAClB,eAAeC;wBACf,oBAAoBC,QAAQ,GAAG,CAAC,uBAAuB,IAAI;wBAC3D,kBAAkBA,QAAQ,GAAG,CAAC,wBAAwB,GAAG,QAAQ;oBACrE;gBACJ;aACH;QACL;IACJ;AACJ;AAEO,MAAMC,wBAAwBC,mBAAmB,eAAe,CAAC;IACpE,WAAWR;IACX,cAAc;QAACS;KAAwB;AAC3C"}
|
package/exports/infra/admin.d.ts
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { SetAdminCustomDomains } from "../../abstractions/features/pulumi/SetAdminCustomDomains.js";
|
|
3
|
-
export { AdminStackOutputService as GetAdminStackOutput } from "../../abstractions/services/AdminStackOutputService.js";
|
|
1
|
+
export type { AwsPulumiTypes } from "../../abstractions/pulumiTypes.js";
|
package/exports/infra/admin.js
CHANGED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { AdminPulumi } from "../../abstractions/features/pulumi/AdminPulumi.js";
|
|
2
|
-
export { SetAdminCustomDomains } from "../../abstractions/features/pulumi/SetAdminCustomDomains.js";
|
|
3
|
-
export { AdminStackOutputService as GetAdminStackOutput } from "../../abstractions/services/AdminStackOutputService.js";
|
package/exports/infra/api.d.ts
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { SetApiCustomDomains } from "../../abstractions/features/pulumi/SetApiCustomDomains.js";
|
|
3
|
-
export { ApiStackOutputService as GetApiStackOutput } from "../../abstractions/services/ApiStackOutputService.js";
|
|
1
|
+
export type { AwsPulumiTypes } from "../../abstractions/pulumiTypes.js";
|
package/exports/infra/api.js
CHANGED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { ApiPulumi } from "../../abstractions/features/pulumi/ApiPulumi.js";
|
|
2
|
-
export { SetApiCustomDomains } from "../../abstractions/features/pulumi/SetApiCustomDomains.js";
|
|
3
|
-
export { ApiStackOutputService as GetApiStackOutput } from "../../abstractions/services/ApiStackOutputService.js";
|
package/exports/infra/core.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { CoreStackOutputService as GetCoreStackOutput } from "../../abstractions/services/CoreStackOutputService.js";
|
|
1
|
+
export type { AwsPulumiTypes } from "../../abstractions/pulumiTypes.js";
|
package/exports/infra/core.js
CHANGED
|
@@ -6,14 +6,15 @@ import { replaceInPath } from "replace-in-path";
|
|
|
6
6
|
import { defineExtension } from "@webiny/project/defineExtension/index.js";
|
|
7
7
|
import { zodSrcPath } from "@webiny/project/defineExtension/zodTypes/zodSrcPath.js";
|
|
8
8
|
import { ExtensionSrcResolver } from "@webiny/project/utils/index.js";
|
|
9
|
-
import { ApiPulumi } from "
|
|
9
|
+
import { ApiPulumi } from "@webiny/project-extensions-aws/abstractions/features/pulumi/index.js";
|
|
10
10
|
import { ApiPulumi as ApiPulumi_js_ApiPulumi } from "../pulumi/extensions/ApiPulumi.js";
|
|
11
11
|
import { getTemplatesFolderPath } from "../utils/index.js";
|
|
12
12
|
const ApiLambdaFunction = defineExtension({
|
|
13
13
|
type: "Api/LambdaFunction",
|
|
14
14
|
tags: {
|
|
15
15
|
runtimeContext: "app-build",
|
|
16
|
-
appName: "api"
|
|
16
|
+
appName: "api",
|
|
17
|
+
hosting: "aws"
|
|
17
18
|
},
|
|
18
19
|
description: "Add a custom Lambda function to the API app.",
|
|
19
20
|
multiple: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/ApiLambdaFunction.js","sources":["../../src/extensions/ApiLambdaFunction.tsx"],"sourcesContent":["import React from \"react\";\nimport path from \"path\";\nimport fs from \"fs\";\nimport { z } from \"zod\";\nimport { replaceInPath } from \"replace-in-path\";\nimport { defineExtension } from \"@webiny/project/defineExtension/index.js\";\nimport { zodSrcPath } from \"@webiny/project/defineExtension/zodTypes/zodSrcPath.js\";\nimport { ExtensionSrcResolver } from \"@webiny/project/utils/index.js\";\nimport { ApiPulumi as ApiPulumiAbstraction } from \"
|
|
1
|
+
{"version":3,"file":"extensions/ApiLambdaFunction.js","sources":["../../src/extensions/ApiLambdaFunction.tsx"],"sourcesContent":["import React from \"react\";\nimport path from \"path\";\nimport fs from \"fs\";\nimport { z } from \"zod\";\nimport { replaceInPath } from \"replace-in-path\";\nimport { defineExtension } from \"@webiny/project/defineExtension/index.js\";\nimport { zodSrcPath } from \"@webiny/project/defineExtension/zodTypes/zodSrcPath.js\";\nimport { ExtensionSrcResolver } from \"@webiny/project/utils/index.js\";\nimport { ApiPulumi as ApiPulumiAbstraction } from \"@webiny/project-extensions-aws/abstractions/features/pulumi/index.js\";\nimport { ApiPulumi } from \"~/pulumi/extensions/ApiPulumi.js\";\nimport { getTemplatesFolderPath } from \"~/utils/index.js\";\n\nexport const ApiLambdaFunction = defineExtension({\n type: \"Api/LambdaFunction\",\n tags: { runtimeContext: \"app-build\", appName: \"api\", hosting: \"aws\" },\n description: \"Add a custom Lambda function to the API app.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n functionSrc: zodSrcPath({ project }),\n pulumiSrc: zodSrcPath({ project, abstraction: ApiPulumiAbstraction })\n });\n },\n async build(params, ctx) {\n const absoluteFunctionSrc = ExtensionSrcResolver.resolvePath(\n params.functionSrc,\n ctx.project\n );\n\n // Derive function name from the handler file name (without extension).\n const functionName = path.parse(absoluteFunctionSrc).name;\n\n const fnWorkspacePath = ctx.project.paths.workspaceFolder\n .join(\"apps\", \"api\", functionName)\n .toString();\n\n // 1. Scaffold from template if the folder doesn't exist yet.\n if (!fs.existsSync(fnWorkspacePath)) {\n const templatePath = path.join(\n getTemplatesFolderPath(),\n \"extensions\",\n \"ApiLambdaFunction\"\n );\n\n fs.cpSync(templatePath, fnWorkspacePath, { recursive: true });\n\n // Replace the {{functionName}} placeholder in package.json.\n replaceInPath(path.join(fnWorkspacePath, \"package.json\"), {\n find: \"{{functionName}}\",\n replaceWith: functionName\n });\n }\n\n // 2. Copy user's handler file → <functionName>/src/index.ts.\n const srcDir = path.join(fnWorkspacePath, \"src\");\n fs.mkdirSync(srcDir, { recursive: true });\n fs.copyFileSync(absoluteFunctionSrc, path.join(srcDir, \"index.ts\"));\n },\n render(props) {\n return <ApiPulumi src={props.pulumiSrc} />;\n }\n});\n"],"names":["ApiLambdaFunction","defineExtension","project","z","zodSrcPath","ApiPulumiAbstraction","params","ctx","absoluteFunctionSrc","ExtensionSrcResolver","functionName","path","fnWorkspacePath","fs","templatePath","getTemplatesFolderPath","replaceInPath","srcDir","props","ApiPulumi"],"mappings":";;;;;;;;;;;AAYO,MAAMA,oBAAoBC,gBAAgB;IAC7C,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAa,SAAS;QAAO,SAAS;IAAM;IACpE,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,aAAaC,WAAW;gBAAEF;YAAQ;YAClC,WAAWE,WAAW;gBAAEF;gBAAS,aAAaG;YAAqB;QACvE;IAEJ,MAAM,OAAMC,MAAM,EAAEC,GAAG;QACnB,MAAMC,sBAAsBC,qBAAqB,WAAW,CACxDH,OAAO,WAAW,EAClBC,IAAI,OAAO;QAIf,MAAMG,eAAeC,KAAK,KAAK,CAACH,qBAAqB,IAAI;QAEzD,MAAMI,kBAAkBL,IAAI,OAAO,CAAC,KAAK,CAAC,eAAe,CACpD,IAAI,CAAC,QAAQ,OAAOG,cACpB,QAAQ;QAGb,IAAI,CAACG,GAAG,UAAU,CAACD,kBAAkB;YACjC,MAAME,eAAeH,KAAK,IAAI,CAC1BI,0BACA,cACA;YAGJF,GAAG,MAAM,CAACC,cAAcF,iBAAiB;gBAAE,WAAW;YAAK;YAG3DI,cAAcL,KAAK,IAAI,CAACC,iBAAiB,iBAAiB;gBACtD,MAAM;gBACN,aAAaF;YACjB;QACJ;QAGA,MAAMO,SAASN,KAAK,IAAI,CAACC,iBAAiB;QAC1CC,GAAG,SAAS,CAACI,QAAQ;YAAE,WAAW;QAAK;QACvCJ,GAAG,YAAY,CAACL,qBAAqBG,KAAK,IAAI,CAACM,QAAQ;IAC3D;IACA,QAAOC,KAAK;QACR,OAAO,WAAP,GAAO,oBAACC,wBAASA;YAAC,KAAKD,MAAM,SAAS;;IAC1C;AACJ"}
|
package/extensions/ApiRoute.d.ts
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
HEAD: "HEAD";
|
|
9
|
-
OPTIONS: "OPTIONS";
|
|
10
|
-
PATCH: "PATCH";
|
|
11
|
-
POST: "POST";
|
|
12
|
-
PUT: "PUT";
|
|
13
|
-
}>;
|
|
14
|
-
src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
15
|
-
routeName: z.ZodOptional<z.ZodString>;
|
|
16
|
-
}, z.core.$strip>>;
|
|
1
|
+
/**
|
|
2
|
+
* What `Api.Route` renders in an AWS project, registered in `registerExtensionImplementations.ts`.
|
|
3
|
+
* It only adds the API Gateway route (`RegisterRoutesPulumi`). Validating the props and writing the
|
|
4
|
+
* route into `extensions.ts` stay with the shared definition in `@webiny/project`, which is the one
|
|
5
|
+
* the project config resolves `Api/Route` to, so there is no schema or build step here.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ApiRoute: import("@webiny/project/extensions").ExtensionComponent<import("zod").ZodTypeAny<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>>;
|
package/extensions/ApiRoute.js
CHANGED
|
@@ -1,90 +1,22 @@
|
|
|
1
1
|
import react from "react";
|
|
2
|
-
import path from "path";
|
|
3
|
-
import crypto_0 from "crypto";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
import { Node, Project } from "ts-morph";
|
|
6
2
|
import { defineExtension } from "@webiny/project/defineExtension/index.js";
|
|
7
|
-
import {
|
|
8
|
-
import { ExtensionSrcResolver } from "@webiny/project/utils/index.js";
|
|
3
|
+
import { ApiRoute } from "@webiny/project/extensions/api/index.js";
|
|
9
4
|
import { ApiPulumi } from "../pulumi/extensions/ApiPulumi.js";
|
|
10
5
|
import { createPathResolver } from "@webiny/project";
|
|
11
|
-
import { deriveRouteName, toRouterPath } from "./routePath.js";
|
|
12
6
|
const p = createPathResolver(import.meta.dirname);
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
"GET",
|
|
16
|
-
"HEAD",
|
|
17
|
-
"PATCH",
|
|
18
|
-
"POST",
|
|
19
|
-
"PUT",
|
|
20
|
-
"OPTIONS",
|
|
21
|
-
"ANY"
|
|
22
|
-
];
|
|
23
|
-
const ApiRoute = defineExtension({
|
|
24
|
-
type: "Api/Route",
|
|
7
|
+
const ApiRoute_ApiRoute = defineExtension({
|
|
8
|
+
type: ApiRoute.def.type,
|
|
25
9
|
tags: {
|
|
26
10
|
runtimeContext: "app-build",
|
|
27
|
-
|
|
11
|
+
hosting: "aws"
|
|
28
12
|
},
|
|
29
|
-
description: "Register a custom REST route on the API Gateway + GraphQL Lambda.",
|
|
30
13
|
multiple: true,
|
|
31
|
-
paramsSchema: ({ project })=>z.object({
|
|
32
|
-
path: z.string().startsWith("/"),
|
|
33
|
-
method: z["enum"](HTTP_METHODS),
|
|
34
|
-
src: zodSrcPath({
|
|
35
|
-
project
|
|
36
|
-
}),
|
|
37
|
-
routeName: z.string().optional()
|
|
38
|
-
}),
|
|
39
|
-
async build (params, ctx) {
|
|
40
|
-
const extensionsTsFilePath = ctx.project.paths.workspaceFolder.join("apps", "api", "graphql", "src", "extensions.ts").toString();
|
|
41
|
-
const absoluteSrcFilePath = ExtensionSrcResolver.resolvePath(params.src, ctx.project);
|
|
42
|
-
const hash = crypto_0.createHash("sha256").update(params.src).digest("hex");
|
|
43
|
-
const alias = `ApiRoute_${hash.slice(-10)}`;
|
|
44
|
-
const importPath = path.relative(path.dirname(extensionsTsFilePath), absoluteSrcFilePath).replace(/\.tsx?$/, ".js");
|
|
45
|
-
const tsProject = new Project();
|
|
46
|
-
tsProject.addSourceFileAtPath(extensionsTsFilePath);
|
|
47
|
-
const source = tsProject.getSourceFileOrThrow(extensionsTsFilePath);
|
|
48
|
-
if (source.getImportDeclaration(importPath)) return;
|
|
49
|
-
let insertIndex = 1;
|
|
50
|
-
const importDeclarations = source.getImportDeclarations();
|
|
51
|
-
if (importDeclarations.length) insertIndex = importDeclarations[importDeclarations.length - 1].getChildIndex() + 1;
|
|
52
|
-
source.insertImportDeclaration(insertIndex, {
|
|
53
|
-
defaultImport: alias,
|
|
54
|
-
moduleSpecifier: importPath
|
|
55
|
-
});
|
|
56
|
-
const registerExtensionPluginPath = "@webiny/handler/plugins/RegisterExtensionPlugin.js";
|
|
57
|
-
if (!source.getImportDeclaration(registerExtensionPluginPath)) {
|
|
58
|
-
const lastIdx = source.getImportDeclarations()[source.getImportDeclarations().length - 1].getChildIndex() + 1;
|
|
59
|
-
source.insertImportDeclaration(lastIdx, {
|
|
60
|
-
namedImports: [
|
|
61
|
-
"createRegisterExtensionPlugin"
|
|
62
|
-
],
|
|
63
|
-
moduleSpecifier: registerExtensionPluginPath
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
const eventHandlerCorePath = "@webiny/event-handler-core";
|
|
67
|
-
if (!source.getImportDeclaration(eventHandlerCorePath)) {
|
|
68
|
-
const lastIdx = source.getImportDeclarations()[source.getImportDeclarations().length - 1].getChildIndex() + 1;
|
|
69
|
-
source.insertImportDeclaration(lastIdx, {
|
|
70
|
-
namedImports: [
|
|
71
|
-
"createHttpRouteDefinition"
|
|
72
|
-
],
|
|
73
|
-
moduleSpecifier: eventHandlerCorePath
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
const pluginsArray = source.getFirstDescendant((node)=>Node.isArrayLiteralExpression(node));
|
|
77
|
-
const routerPath = toRouterPath(params.path);
|
|
78
|
-
const routeName = params.routeName ?? deriveRouteName(params.path, params.method);
|
|
79
|
-
pluginsArray.addElement(`\ncreateRegisterExtensionPlugin(ctx => {\n\tctx.container.register(\n\t\tcreateHttpRouteDefinition({\n\t\t\tname: "${routeName}",\n\t\t\tmethod: "${params.method}",\n\t\t\tpath: "${routerPath}",\n\t\t\thandler: ${alias}\n\t\t})\n\t);\n})`);
|
|
80
|
-
await source.save();
|
|
81
|
-
},
|
|
82
14
|
render () {
|
|
83
15
|
return /*#__PURE__*/ react.createElement(ApiPulumi, {
|
|
84
16
|
src: p("RegisterRoutesPulumi.js")
|
|
85
17
|
});
|
|
86
18
|
}
|
|
87
19
|
});
|
|
88
|
-
export { ApiRoute };
|
|
20
|
+
export { ApiRoute_ApiRoute as ApiRoute };
|
|
89
21
|
|
|
90
22
|
//# sourceMappingURL=ApiRoute.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/ApiRoute.js","sources":["../../src/extensions/ApiRoute.tsx"],"sourcesContent":["import React from \"react\";\nimport
|
|
1
|
+
{"version":3,"file":"extensions/ApiRoute.js","sources":["../../src/extensions/ApiRoute.tsx"],"sourcesContent":["import React from \"react\";\nimport { defineExtension } from \"@webiny/project/defineExtension/index.js\";\nimport { ApiRoute as SharedApiRoute } from \"@webiny/project/extensions/api/index.js\";\nimport { ApiPulumi } from \"~/pulumi/extensions/ApiPulumi.js\";\nimport { createPathResolver } from \"@webiny/project\";\n\nconst p = createPathResolver(import.meta.dirname);\n\n/**\n * What `Api.Route` renders in an AWS project, registered in `registerExtensionImplementations.ts`.\n * It only adds the API Gateway route (`RegisterRoutesPulumi`). Validating the props and writing the\n * route into `extensions.ts` stay with the shared definition in `@webiny/project`, which is the one\n * the project config resolves `Api/Route` to, so there is no schema or build step here.\n */\nexport const ApiRoute = defineExtension({\n type: SharedApiRoute.def.type,\n tags: { runtimeContext: \"app-build\", hosting: \"aws\" },\n multiple: true,\n render() {\n return <ApiPulumi src={p(\"RegisterRoutesPulumi.js\")} />;\n }\n});\n"],"names":["p","createPathResolver","ApiRoute","defineExtension","SharedApiRoute","ApiPulumi"],"mappings":";;;;;AAMA,MAAMA,IAAIC,mBAAmB,YAAY,OAAO;AAQzC,MAAMC,oBAAWC,gBAAgB;IACpC,MAAMC,SAAAA,GAAAA,CAAAA,IAAuB;IAC7B,MAAM;QAAE,gBAAgB;QAAa,SAAS;IAAM;IACpD,UAAU;IACV;QACI,OAAO,WAAP,GAAO,oBAACC,WAASA;YAAC,KAAKL,EAAE;;IAC7B;AACJ"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { CoreBeforeDeploy
|
|
1
|
+
import { CoreBeforeDeploy } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
2
|
+
import { UiService } from "@webiny/project/abstractions/index.js";
|
|
2
3
|
declare class EnsureOsServiceRoleBeforeCoreDeployImpl implements CoreBeforeDeploy.Interface {
|
|
3
4
|
private uiService;
|
|
4
5
|
constructor(uiService: UiService.Interface);
|
|
5
6
|
execute(): Promise<void>;
|
|
6
7
|
}
|
|
7
8
|
export declare const EnsureOsServiceRoleBeforeCoreDeploy: typeof EnsureOsServiceRoleBeforeCoreDeployImpl & {
|
|
8
|
-
__abstraction: import("@webiny/di").Abstraction<import("@webiny/project/abstractions/
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/project-extensions-aws/abstractions/index.js").ICoreBeforeDeploy>;
|
|
9
10
|
};
|
|
10
11
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { CoreBeforeDeploy
|
|
1
|
+
import { CoreBeforeDeploy } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
2
|
+
import { UiService } from "@webiny/project/abstractions/index.js";
|
|
2
3
|
import { GracefulError } from "@webiny/project";
|
|
3
4
|
import { IAM } from "@webiny/aws-sdk/client-iam/index.js";
|
|
4
5
|
const NO_SUCH_ENTITY_IAM_ERROR = "NoSuchEntity";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/OpenSearch/EnsureOsServiceRoleBeforeCoreDeploy.js","sources":["../../../src/extensions/OpenSearch/EnsureOsServiceRoleBeforeCoreDeploy.ts"],"sourcesContent":["import { CoreBeforeDeploy
|
|
1
|
+
{"version":3,"file":"extensions/OpenSearch/EnsureOsServiceRoleBeforeCoreDeploy.js","sources":["../../../src/extensions/OpenSearch/EnsureOsServiceRoleBeforeCoreDeploy.ts"],"sourcesContent":["import { CoreBeforeDeploy } from \"@webiny/project-extensions-aws/abstractions/index.js\";\nimport { UiService } from \"@webiny/project/abstractions/index.js\";\nimport { GracefulError } from \"@webiny/project\";\nimport { IAM } from \"@webiny/aws-sdk/client-iam/index.js\";\n\nconst NO_SUCH_ENTITY_IAM_ERROR = \"NoSuchEntity\";\n\nclass EnsureOsServiceRoleBeforeCoreDeployImpl implements CoreBeforeDeploy.Interface {\n constructor(private uiService: UiService.Interface) {}\n\n async execute() {\n const iam = new IAM();\n try {\n await iam.getRole({ RoleName: \"AWSServiceRoleForAmazonOpenSearchService\" });\n // Role exists, proceed silently\n } catch (err) {\n // We've seen cases where the `iam.getRole` call fails because of an issue\n // other than not being able to retrieve the service role.\n if (err.Error?.Code !== NO_SUCH_ENTITY_IAM_ERROR) {\n throw GracefulError.from(\n new Error(\"Failed to retrieve Amazon OpenSearch service role.\"),\n [\n \"An unexpected error occurred while checking for the %s service role:\",\n \"%s\",\n \"\",\n \"Please check your AWS IAM permissions and try again.\"\n ].join(\"\\n\"),\n \"AWSServiceRoleForAmazonOpenSearchService\",\n err.message\n );\n }\n\n // Role doesn't exist, try to create it\n try {\n await iam.createServiceLinkedRole({\n AWSServiceName: \"opensearchservice.amazonaws.com\"\n });\n // Created successfully, proceed silently\n } catch (err) {\n throw GracefulError.from(\n new Error(\"Failed to create Amazon OpenSearch service role.\"),\n [\n \"Could not create the required %s service role:\",\n \"%s\",\n \"\",\n \"Your options:\",\n \"• Ensure your AWS account has the necessary IAM permissions to create service-linked roles.\",\n \"• Manually create the service role using the AWS console or CLI.\",\n \"• Contact your AWS administrator for assistance.\"\n ].join(\"\\n\"),\n \"AWSServiceRoleForAmazonOpenSearchService\",\n err.message\n );\n }\n }\n }\n}\n\nexport const EnsureOsServiceRoleBeforeCoreDeploy = CoreBeforeDeploy.createImplementation({\n implementation: EnsureOsServiceRoleBeforeCoreDeployImpl,\n dependencies: [UiService]\n});\n"],"names":["NO_SUCH_ENTITY_IAM_ERROR","EnsureOsServiceRoleBeforeCoreDeployImpl","uiService","iam","IAM","err","GracefulError","Error","EnsureOsServiceRoleBeforeCoreDeploy","CoreBeforeDeploy","UiService"],"mappings":";;;;AAKA,MAAMA,2BAA2B;AAEjC,MAAMC;IACF,YAAoBC,SAA8B,CAAE;aAAhCA,SAAS,GAATA;IAAiC;IAErD,MAAM,UAAU;QACZ,MAAMC,MAAM,IAAIC;QAChB,IAAI;YACA,MAAMD,IAAI,OAAO,CAAC;gBAAE,UAAU;YAA2C;QAE7E,EAAE,OAAOE,KAAK;YAGV,IAAIA,IAAI,KAAK,EAAE,SAASL,0BACpB,MAAMM,cAAc,IAAI,CACpB,IAAIC,MAAM,uDACV,oIAMA,4CACAF,IAAI,OAAO;YAKnB,IAAI;gBACA,MAAMF,IAAI,uBAAuB,CAAC;oBAC9B,gBAAgB;gBACpB;YAEJ,EAAE,OAAOE,KAAK;gBACV,MAAMC,cAAc,IAAI,CACpB,IAAIC,MAAM,qDACV,wRASA,4CACAF,IAAI,OAAO;YAEnB;QACJ;IACJ;AACJ;AAEO,MAAMG,sCAAsCC,iBAAiB,oBAAoB,CAAC;IACrF,gBAAgBR;IAChB,cAAc;QAACS;KAAU;AAC7B"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { CoreBeforeDeploy } from "@webiny/project/abstractions/index.js";
|
|
2
|
-
import { CoreStackOutputService } from "
|
|
1
|
+
import { CoreBeforeDeploy } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
2
|
+
import { CoreStackOutputService } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
3
3
|
declare class EnsureOsWasDeployedImpl implements CoreBeforeDeploy.Interface {
|
|
4
4
|
private coreStackOutputService;
|
|
5
5
|
constructor(coreStackOutputService: CoreStackOutputService.Interface);
|
|
6
6
|
execute(): Promise<void>;
|
|
7
7
|
}
|
|
8
8
|
export declare const EnsureOsWasDeployed: typeof EnsureOsWasDeployedImpl & {
|
|
9
|
-
__abstraction: import("@webiny/di").Abstraction<import("@webiny/project/abstractions/index.js").ICoreBeforeDeploy>;
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/project-extensions-aws/abstractions/index.js").ICoreBeforeDeploy>;
|
|
10
10
|
};
|
|
11
11
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { CoreBeforeDeploy } from "@webiny/project/abstractions/index.js";
|
|
1
|
+
import { CoreBeforeDeploy, CoreStackOutputService } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
2
2
|
import { GracefulError } from "@webiny/project";
|
|
3
|
-
import { CoreStackOutputService } from "../../abstractions/index.js";
|
|
4
3
|
class EnsureOsWasDeployedImpl {
|
|
5
4
|
constructor(coreStackOutputService){
|
|
6
5
|
this.coreStackOutputService = coreStackOutputService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/OpenSearch/EnsureOsWasDeployed.js","sources":["../../../src/extensions/OpenSearch/EnsureOsWasDeployed.ts"],"sourcesContent":["import { CoreBeforeDeploy } from \"@webiny/project/abstractions/index.js\";\nimport { GracefulError } from \"@webiny/project\";\nimport { CoreStackOutputService } from \"
|
|
1
|
+
{"version":3,"file":"extensions/OpenSearch/EnsureOsWasDeployed.js","sources":["../../../src/extensions/OpenSearch/EnsureOsWasDeployed.ts"],"sourcesContent":["import { CoreBeforeDeploy } from \"@webiny/project-extensions-aws/abstractions/index.js\";\nimport { GracefulError } from \"@webiny/project\";\nimport { CoreStackOutputService } from \"@webiny/project-extensions-aws/abstractions/index.js\";\n\nclass EnsureOsWasDeployedImpl implements CoreBeforeDeploy.Interface {\n constructor(private coreStackOutputService: CoreStackOutputService.Interface) {}\n\n async execute() {\n // Get the stack output from the core application\n // CoreStackOutputService automatically uses env/variant/region from ProjectSdkParamsService\n const output = await this.coreStackOutputService.execute();\n\n // If there's no output, Core hasn't been deployed yet, so we can proceed.\n if (!output?.databaseSetup) {\n return;\n }\n\n // Check if `databaseSetup` matches 'ddb+os'\n // If it matches, Core was deployed with OpenSearch and we can proceed.\n const hasDatabaseSetup = output.databaseSetup === \"ddb+os\";\n if (hasDatabaseSetup) {\n return;\n }\n\n // Core was previously deployed without OpenSearch or with a different setup\n throw GracefulError.from(\n new Error(\n \"Cannot deploy with OpenSearch enabled. The Core application was previously deployed with a different database setup.\"\n ),\n [\n \"Once a deployment method is chosen (%s or %s), you cannot switch between them.\",\n \"\",\n \"Your options:\",\n \"• If you want to use %s, you need to destroy and redeploy the entire project from scratch.\",\n \"• If you want to continue without %s, disable it in your %s config file.\",\n \"\",\n \"Learn more: https://webiny.link/deploy-diff-db-setup\"\n ].join(\"\\n\"),\n \"DynamoDB-only\",\n \"DynamoDB+OpenSearch\",\n \"OpenSearch\",\n \"OpenSearch\",\n \"webiny.config.tsx\"\n );\n }\n}\n\nexport const EnsureOsWasDeployed = CoreBeforeDeploy.createImplementation({\n implementation: EnsureOsWasDeployedImpl,\n dependencies: [CoreStackOutputService]\n});\n"],"names":["EnsureOsWasDeployedImpl","coreStackOutputService","output","hasDatabaseSetup","GracefulError","Error","EnsureOsWasDeployed","CoreBeforeDeploy","CoreStackOutputService"],"mappings":";;AAIA,MAAMA;IACF,YAAoBC,sBAAwD,CAAE;aAA1DA,sBAAsB,GAAtBA;IAA2D;IAE/E,MAAM,UAAU;QAGZ,MAAMC,SAAS,MAAM,IAAI,CAAC,sBAAsB,CAAC,OAAO;QAGxD,IAAI,CAACA,QAAQ,eACT;QAKJ,MAAMC,mBAAmBD,AAAyB,aAAzBA,OAAO,aAAa;QAC7C,IAAIC,kBACA;QAIJ,MAAMC,cAAc,IAAI,CACpB,IAAIC,MACA,yHAEJ,iUASA,iBACA,uBACA,cACA,cACA;IAER;AACJ;AAEO,MAAMC,sBAAsBC,iBAAiB,oBAAoB,CAAC;IACrE,gBAAgBP;IAChB,cAAc;QAACQ;KAAuB;AAC1C"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}, z.core.$strip>>;
|
|
1
|
+
export declare const OpenSearch: import("@webiny/project/defineExtension/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
2
|
+
enabled: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
3
|
+
domainName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
|
+
indexPrefix: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5
|
+
sharedIndexes: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
6
|
+
endpoint: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7
|
+
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
|
+
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9
|
+
}, import("zod/v4/core").$strip>>;
|
package/extensions/OpenSearch.js
CHANGED
|
@@ -1,26 +1,18 @@
|
|
|
1
1
|
import react from "react";
|
|
2
2
|
import { defineExtension } from "@webiny/project/defineExtension/index.js";
|
|
3
|
-
import {
|
|
3
|
+
import { CoreBeforeDeploy, PulumiOpenSearch, openSearchParamsSchema } from "@webiny/project-extensions-aws/extensions/index.js";
|
|
4
4
|
import { createPathResolver } from "@webiny/project";
|
|
5
|
-
import {
|
|
6
|
-
import { z } from "zod";
|
|
5
|
+
import { DatabaseSetup, ProjectDecorator } from "@webiny/project/extensions/index.js";
|
|
7
6
|
const p = createPathResolver(import.meta.dirname, "OpenSearch");
|
|
8
|
-
const
|
|
7
|
+
const OpenSearch = defineExtension({
|
|
9
8
|
type: "Project/OpenSearch",
|
|
10
9
|
tags: {
|
|
11
|
-
runtimeContext: "project"
|
|
10
|
+
runtimeContext: "project",
|
|
11
|
+
hosting: "aws"
|
|
12
12
|
},
|
|
13
13
|
description: "Enable and configure Opensearch integration with project-level setup.",
|
|
14
|
-
paramsSchema:
|
|
15
|
-
|
|
16
|
-
domainName: z.string().describe("The name of the Opensearch domain.").optional(),
|
|
17
|
-
indexPrefix: z.string().describe("A prefix to be added to all Opensearch indexes.").optional(),
|
|
18
|
-
sharedIndexes: z.boolean().describe("Whether to use shared indexes across all environments (true) or separate indexes per environment (false).").default(false).optional(),
|
|
19
|
-
endpoint: z.string().describe("The endpoint of an existing OpenSearch cluster. Useful when cluster is behind a custom domain.").optional(),
|
|
20
|
-
username: z.string().describe("The username for OpenSearch authentication.").optional(),
|
|
21
|
-
password: z.string().describe("The password for OpenSearch authentication.").optional()
|
|
22
|
-
}),
|
|
23
|
-
render: (props)=>/*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(OpenSearch, props), props.enabled && /*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(DatabaseSetup, {
|
|
14
|
+
paramsSchema: openSearchParamsSchema,
|
|
15
|
+
render: (props)=>/*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(PulumiOpenSearch, props), props.enabled && /*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(DatabaseSetup, {
|
|
24
16
|
setupName: "ddb+os"
|
|
25
17
|
}), /*#__PURE__*/ react.createElement(ProjectDecorator, {
|
|
26
18
|
src: p("InjectDdbEsLambdaFnHandler.js")
|
|
@@ -32,6 +24,6 @@ const OpenSearch_OpenSearch = defineExtension({
|
|
|
32
24
|
src: p("EnsureOsWasDeployed.js")
|
|
33
25
|
})))
|
|
34
26
|
});
|
|
35
|
-
export {
|
|
27
|
+
export { OpenSearch };
|
|
36
28
|
|
|
37
29
|
//# sourceMappingURL=OpenSearch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/OpenSearch.js","sources":["../../src/extensions/OpenSearch.tsx"],"sourcesContent":["import React from \"react\";\nimport { defineExtension } from \"@webiny/project/defineExtension/index.js\";\nimport {
|
|
1
|
+
{"version":3,"file":"extensions/OpenSearch.js","sources":["../../src/extensions/OpenSearch.tsx"],"sourcesContent":["import React from \"react\";\nimport { defineExtension } from \"@webiny/project/defineExtension/index.js\";\nimport { openSearchParamsSchema } from \"@webiny/project-extensions-aws/extensions/index.js\";\nimport { PulumiOpenSearch } from \"@webiny/project-extensions-aws/extensions/index.js\";\nimport { createPathResolver } from \"@webiny/project\";\nimport { ProjectDecorator } from \"@webiny/project/extensions/index.js\";\nimport { DatabaseSetup } from \"@webiny/project/extensions/index.js\";\nimport { CoreBeforeDeploy } from \"@webiny/project-extensions-aws/extensions/index.js\";\n\nconst p = createPathResolver(import.meta.dirname, \"OpenSearch\");\n\nexport const OpenSearch = defineExtension({\n type: \"Project/OpenSearch\",\n tags: { runtimeContext: \"project\", hosting: \"aws\" },\n description: \"Enable and configure Opensearch integration with project-level setup.\",\n paramsSchema: openSearchParamsSchema,\n render: props => {\n return (\n <>\n <PulumiOpenSearch {...props} />\n {props.enabled && (\n <>\n {/* Override database setup to indicate OpenSearch is enabled. */}\n <DatabaseSetup setupName=\"ddb+os\" />\n <ProjectDecorator src={p(\"InjectDdbEsLambdaFnHandler.js\")} />\n <ProjectDecorator src={p(\"ReplaceApiLambdaFnHandlers.js\")} />\n <CoreBeforeDeploy src={p(\"EnsureOsServiceRoleBeforeCoreDeploy.js\")} />\n <CoreBeforeDeploy src={p(\"EnsureOsWasDeployed.js\")} />\n </>\n )}\n </>\n );\n }\n});\n"],"names":["p","createPathResolver","OpenSearch","defineExtension","openSearchParamsSchema","props","PulumiOpenSearch","DatabaseSetup","ProjectDecorator","CoreBeforeDeploy"],"mappings":";;;;;AASA,MAAMA,IAAIC,mBAAmB,YAAY,OAAO,EAAE;AAE3C,MAAMC,aAAaC,gBAAgB;IACtC,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,SAAS;IAAM;IAClD,aAAa;IACb,cAAcC;IACd,QAAQC,CAAAA,QACG,WAAP,GACI,wDACI,oBAACC,kBAAqBD,QACrBA,MAAM,OAAO,IAAI,WAAJ,GACV,wDAEI,oBAACE,eAAaA;YAAC,WAAU;0BACzB,oBAACC,kBAAgBA;YAAC,KAAKR,EAAE;0BACzB,oBAACQ,kBAAgBA;YAAC,KAAKR,EAAE;0BACzB,oBAACS,kBAAgBA;YAAC,KAAKT,EAAE;0BACzB,oBAACS,kBAAgBA;YAAC,KAAKT,EAAE;;AAMjD"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ApiAfterDeploy } from "@webiny/project/abstractions/index.js";
|
|
1
|
+
import { ApiAfterDeploy } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
2
2
|
import { UiService } from "@webiny/project/abstractions/services/UiService.js";
|
|
3
3
|
import { LoggerService } from "@webiny/project/abstractions/services/LoggerService.js";
|
|
4
4
|
import { GetProjectConfigService } from "@webiny/project/abstractions/index.js";
|
|
5
|
-
import { ApiGqlClient } from "
|
|
5
|
+
import { ApiGqlClient } from "@webiny/project-extensions-aws/abstractions/ApiGqlClient.js";
|
|
6
6
|
declare class AutoInstallAfterApiDeployImpl implements ApiAfterDeploy.Interface {
|
|
7
7
|
private apiGqlClient;
|
|
8
8
|
private ui;
|
|
@@ -12,6 +12,6 @@ declare class AutoInstallAfterApiDeployImpl implements ApiAfterDeploy.Interface
|
|
|
12
12
|
execute(params: ApiAfterDeploy.Params): Promise<void>;
|
|
13
13
|
}
|
|
14
14
|
export declare const AutoInstallAfterApiDeploy: typeof AutoInstallAfterApiDeployImpl & {
|
|
15
|
-
__abstraction: import("@webiny/di").Abstraction<import("@webiny/project/abstractions/
|
|
15
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/project-extensions-aws/abstractions/index.js").IApiAfterDeploy>;
|
|
16
16
|
};
|
|
17
17
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ApiAfterDeploy
|
|
1
|
+
import { ApiAfterDeploy } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
2
2
|
import { UiService } from "@webiny/project/abstractions/services/UiService.js";
|
|
3
3
|
import { LoggerService } from "@webiny/project/abstractions/services/LoggerService.js";
|
|
4
|
-
import {
|
|
4
|
+
import { GetProjectConfigService } from "@webiny/project/abstractions/index.js";
|
|
5
|
+
import { ApiGqlClient } from "@webiny/project-extensions-aws/abstractions/ApiGqlClient.js";
|
|
5
6
|
const IS_INSTALLED_QUERY = `
|
|
6
7
|
query IsSystemInstalled {
|
|
7
8
|
system {
|