@webiny/pulumi-aws 0.0.0-mt-2 → 0.0.0-unstable.06b2ede40f
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/README.md +310 -5
- package/apps/admin/createAdminPulumiApp.d.ts +31 -0
- package/apps/admin/createAdminPulumiApp.js +31 -0
- package/apps/admin/createAdminPulumiApp.js.map +1 -0
- package/apps/admin/index.d.ts +1 -0
- package/apps/admin/index.js +18 -0
- package/apps/admin/index.js.map +1 -0
- package/apps/api/ApiApwScheduler.d.ts +20 -0
- package/apps/api/ApiApwScheduler.js +244 -0
- package/apps/api/ApiApwScheduler.js.map +1 -0
- package/apps/api/ApiBackgroundTask.d.ts +12 -0
- package/apps/api/ApiBackgroundTask.js +152 -0
- package/apps/api/ApiBackgroundTask.js.map +1 -0
- package/apps/api/ApiCloudfront.d.ts +3 -0
- package/apps/api/ApiCloudfront.js +128 -0
- package/apps/api/ApiCloudfront.js.map +1 -0
- package/apps/api/ApiFileManager.d.ts +19 -0
- package/apps/api/ApiFileManager.js +145 -0
- package/apps/api/ApiFileManager.js.map +1 -0
- package/apps/api/ApiGateway.d.ts +18 -0
- package/apps/api/ApiGateway.js +87 -0
- package/apps/api/ApiGateway.js.map +1 -0
- package/apps/api/ApiGraphql.d.ts +26 -0
- package/apps/api/ApiGraphql.js +191 -0
- package/apps/api/ApiGraphql.js.map +1 -0
- package/apps/api/ApiMigration.d.ts +5 -0
- package/apps/api/ApiMigration.js +87 -0
- package/apps/api/ApiMigration.js.map +1 -0
- package/apps/api/ApiOutput.d.ts +27 -0
- package/apps/api/ApiOutput.js +50 -0
- package/apps/api/ApiOutput.js.map +1 -0
- package/apps/api/ApiPageBuilder.d.ts +24 -0
- package/apps/api/ApiPageBuilder.js +250 -0
- package/apps/api/ApiPageBuilder.js.map +1 -0
- package/apps/api/ApiScheduler.d.ts +8 -0
- package/apps/api/ApiScheduler.js +105 -0
- package/apps/api/ApiScheduler.js.map +1 -0
- package/apps/api/ApiWebsocket.d.ts +14 -0
- package/apps/api/ApiWebsocket.js +145 -0
- package/apps/api/ApiWebsocket.js.map +1 -0
- package/apps/api/backgroundTask/definition.d.ts +7 -0
- package/apps/api/backgroundTask/definition.js +158 -0
- package/apps/api/backgroundTask/definition.js.map +1 -0
- package/apps/api/backgroundTask/policy.d.ts +8 -0
- package/apps/api/backgroundTask/policy.js +34 -0
- package/apps/api/backgroundTask/policy.js.map +1 -0
- package/apps/api/backgroundTask/role.d.ts +9 -0
- package/apps/api/backgroundTask/role.js +40 -0
- package/apps/api/backgroundTask/role.js.map +1 -0
- package/apps/api/backgroundTask/types.d.ts +91 -0
- package/apps/api/backgroundTask/types.js +20 -0
- package/apps/api/backgroundTask/types.js.map +1 -0
- package/apps/api/createApiPulumiApp.d.ts +125 -0
- package/apps/api/createApiPulumiApp.js +271 -0
- package/apps/api/createApiPulumiApp.js.map +1 -0
- package/apps/api/index.d.ts +11 -0
- package/apps/api/index.js +128 -0
- package/apps/api/index.js.map +1 -0
- package/apps/awsUtils.d.ts +3 -0
- package/apps/awsUtils.js +21 -0
- package/apps/awsUtils.js.map +1 -0
- package/apps/blueGreen/BlueGreenRouterApiGateway.d.ts +11 -0
- package/apps/blueGreen/BlueGreenRouterApiGateway.js +51 -0
- package/apps/blueGreen/BlueGreenRouterApiGateway.js.map +1 -0
- package/apps/blueGreen/BlueGreenRouterCloudFront.d.ts +17 -0
- package/apps/blueGreen/BlueGreenRouterCloudFront.js +106 -0
- package/apps/blueGreen/BlueGreenRouterCloudFront.js.map +1 -0
- package/apps/blueGreen/BlueGreenRouterCloudFrontStore.d.ts +10 -0
- package/apps/blueGreen/BlueGreenRouterCloudFrontStore.js +27 -0
- package/apps/blueGreen/BlueGreenRouterCloudFrontStore.js.map +1 -0
- package/apps/blueGreen/cloudfront/createCloudFrontDefaultCacheBehaviorPolicies.d.ts +7 -0
- package/apps/blueGreen/cloudfront/createCloudFrontDefaultCacheBehaviorPolicies.js +23 -0
- package/apps/blueGreen/cloudfront/createCloudFrontDefaultCacheBehaviorPolicies.js.map +1 -0
- package/apps/blueGreen/cloudfront/createCloudFrontFunctionDomainMap.d.ts +14 -0
- package/apps/blueGreen/cloudfront/createCloudFrontFunctionDomainMap.js +30 -0
- package/apps/blueGreen/cloudfront/createCloudFrontFunctionDomainMap.js.map +1 -0
- package/apps/blueGreen/cloudfront/createOriginId.d.ts +11 -0
- package/apps/blueGreen/cloudfront/createOriginId.js +18 -0
- package/apps/blueGreen/cloudfront/createOriginId.js.map +1 -0
- package/apps/blueGreen/constants.d.ts +3 -0
- package/apps/blueGreen/constants.js +11 -0
- package/apps/blueGreen/constants.js.map +1 -0
- package/apps/blueGreen/createBlueGreenPulumiApp.d.ts +79 -0
- package/apps/blueGreen/createBlueGreenPulumiApp.js +121 -0
- package/apps/blueGreen/createBlueGreenPulumiApp.js.map +1 -0
- package/apps/blueGreen/domains/attachDomainsToOutput.d.ts +9 -0
- package/apps/blueGreen/domains/attachDomainsToOutput.js +37 -0
- package/apps/blueGreen/domains/attachDomainsToOutput.js.map +1 -0
- package/apps/blueGreen/domains/convertApplicationDomains.d.ts +6 -0
- package/apps/blueGreen/domains/convertApplicationDomains.js +32 -0
- package/apps/blueGreen/domains/convertApplicationDomains.js.map +1 -0
- package/apps/blueGreen/domains/getApplicationDomains.d.ts +20 -0
- package/apps/blueGreen/domains/getApplicationDomains.js +107 -0
- package/apps/blueGreen/domains/getApplicationDomains.js.map +1 -0
- package/apps/blueGreen/domains/resolveDomains.d.ts +6 -0
- package/apps/blueGreen/domains/resolveDomains.js +48 -0
- package/apps/blueGreen/domains/resolveDomains.js.map +1 -0
- package/apps/blueGreen/functions/buildHandlerFunction.d.ts +15 -0
- package/apps/blueGreen/functions/buildHandlerFunction.js +25 -0
- package/apps/blueGreen/functions/buildHandlerFunction.js.map +1 -0
- package/apps/blueGreen/functions/handler.d.ts +1 -0
- package/apps/blueGreen/functions/handler.js +63 -0
- package/apps/blueGreen/functions/handler.js.map +1 -0
- package/apps/blueGreen/types.d.ts +81 -0
- package/apps/blueGreen/types.js +7 -0
- package/apps/blueGreen/types.js.map +1 -0
- package/apps/blueGreen/validation/validateDeployments.d.ts +2 -0
- package/apps/blueGreen/validation/validateDeployments.js +41 -0
- package/apps/blueGreen/validation/validateDeployments.js.map +1 -0
- package/apps/common/CoreOutput.d.ts +27 -0
- package/apps/common/CoreOutput.js +52 -0
- package/apps/common/CoreOutput.js.map +1 -0
- package/apps/common/VpcConfig.d.ts +8 -0
- package/apps/common/VpcConfig.js +31 -0
- package/apps/common/VpcConfig.js.map +1 -0
- package/apps/common/index.d.ts +2 -0
- package/apps/common/index.js +29 -0
- package/apps/common/index.js.map +1 -0
- package/apps/core/CoreCognito.d.ts +10 -0
- package/apps/core/CoreCognito.js +117 -0
- package/apps/core/CoreCognito.js.map +1 -0
- package/apps/core/CoreDynamo.d.ts +5 -0
- package/apps/core/CoreDynamo.js +57 -0
- package/apps/core/CoreDynamo.js.map +1 -0
- package/apps/core/CoreElasticSearch.d.ts +16 -0
- package/apps/core/CoreElasticSearch.js +290 -0
- package/apps/core/CoreElasticSearch.js.map +1 -0
- package/apps/core/CoreEventBus.d.ts +1 -0
- package/apps/core/CoreEventBus.js +20 -0
- package/apps/core/CoreEventBus.js.map +1 -0
- package/apps/core/CoreFileManager.d.ts +8 -0
- package/apps/core/CoreFileManager.js +51 -0
- package/apps/core/CoreFileManager.js.map +1 -0
- package/apps/core/CoreOpenSearch.d.ts +16 -0
- package/apps/core/CoreOpenSearch.js +300 -0
- package/apps/core/CoreOpenSearch.js.map +1 -0
- package/apps/core/CoreVpc.d.ts +13 -0
- package/apps/core/CoreVpc.js +148 -0
- package/apps/core/CoreVpc.js.map +1 -0
- package/apps/core/LogDynamo.d.ts +5 -0
- package/apps/core/LogDynamo.js +90 -0
- package/apps/core/LogDynamo.js.map +1 -0
- package/apps/core/WatchCommand.d.ts +7 -0
- package/apps/core/WatchCommand.js +110 -0
- package/apps/core/WatchCommand.js.map +1 -0
- package/apps/core/cognitoIdentityProviders/amazon.d.ts +9 -0
- package/apps/core/cognitoIdentityProviders/amazon.js +31 -0
- package/apps/core/cognitoIdentityProviders/amazon.js.map +1 -0
- package/apps/core/cognitoIdentityProviders/apple.d.ts +4 -0
- package/apps/core/cognitoIdentityProviders/apple.js +26 -0
- package/apps/core/cognitoIdentityProviders/apple.js.map +1 -0
- package/apps/core/cognitoIdentityProviders/configure.d.ts +28 -0
- package/apps/core/cognitoIdentityProviders/configure.js +65 -0
- package/apps/core/cognitoIdentityProviders/configure.js.map +1 -0
- package/apps/core/cognitoIdentityProviders/facebook.d.ts +4 -0
- package/apps/core/cognitoIdentityProviders/facebook.js +26 -0
- package/apps/core/cognitoIdentityProviders/facebook.js.map +1 -0
- package/apps/core/cognitoIdentityProviders/getIdpConfig.d.ts +3 -0
- package/apps/core/cognitoIdentityProviders/getIdpConfig.js +24 -0
- package/apps/core/cognitoIdentityProviders/getIdpConfig.js.map +1 -0
- package/apps/core/cognitoIdentityProviders/google.d.ts +4 -0
- package/apps/core/cognitoIdentityProviders/google.js +26 -0
- package/apps/core/cognitoIdentityProviders/google.js.map +1 -0
- package/apps/core/cognitoIdentityProviders/index.d.ts +1 -0
- package/apps/core/cognitoIdentityProviders/index.js +18 -0
- package/apps/core/cognitoIdentityProviders/index.js.map +1 -0
- package/apps/core/cognitoIdentityProviders/oidc.d.ts +4 -0
- package/apps/core/cognitoIdentityProviders/oidc.js +27 -0
- package/apps/core/cognitoIdentityProviders/oidc.js.map +1 -0
- package/apps/core/createCorePulumiApp.d.ts +97 -0
- package/apps/core/createCorePulumiApp.js +188 -0
- package/apps/core/createCorePulumiApp.js.map +1 -0
- package/apps/core/index.d.ts +7 -0
- package/apps/core/index.js +84 -0
- package/apps/core/index.js.map +1 -0
- package/apps/core/webinyWatchCommand/handler.d.ts +28 -0
- package/apps/core/webinyWatchCommand/handler.js +39 -0
- package/apps/core/webinyWatchCommand/handler.js.map +1 -0
- package/apps/createAppBucket.d.ts +13 -0
- package/apps/createAppBucket.js +120 -0
- package/apps/createAppBucket.js.map +1 -0
- package/apps/customDomain.d.ts +9 -0
- package/apps/customDomain.js +15 -0
- package/apps/customDomain.js.map +1 -0
- package/apps/index.d.ts +7 -0
- package/apps/index.js +89 -0
- package/apps/index.js.map +1 -0
- package/apps/lambdaUtils.d.ts +11 -0
- package/apps/lambdaUtils.js +94 -0
- package/apps/lambdaUtils.js.map +1 -0
- package/apps/react/createReactPulumiApp.d.ts +39 -0
- package/apps/react/createReactPulumiApp.js +160 -0
- package/apps/react/createReactPulumiApp.js.map +1 -0
- package/apps/react/index.d.ts +1 -0
- package/apps/react/index.js +18 -0
- package/apps/react/index.js.map +1 -0
- package/apps/syncSystem/SyncSystemDynamo.d.ts +5 -0
- package/apps/syncSystem/SyncSystemDynamo.js +59 -0
- package/apps/syncSystem/SyncSystemDynamo.js.map +1 -0
- package/apps/syncSystem/SyncSystemDynamoDb.d.ts +3 -0
- package/apps/syncSystem/SyncSystemDynamoDb.js +55 -0
- package/apps/syncSystem/SyncSystemDynamoDb.js.map +1 -0
- package/apps/syncSystem/SyncSystemEventBus.d.ts +6 -0
- package/apps/syncSystem/SyncSystemEventBus.js +84 -0
- package/apps/syncSystem/SyncSystemEventBus.js.map +1 -0
- package/apps/syncSystem/SyncSystemLambda.d.ts +13 -0
- package/apps/syncSystem/SyncSystemLambda.js +104 -0
- package/apps/syncSystem/SyncSystemLambda.js.map +1 -0
- package/apps/syncSystem/SyncSystemOutput.d.ts +3 -0
- package/apps/syncSystem/SyncSystemOutput.js +26 -0
- package/apps/syncSystem/SyncSystemOutput.js.map +1 -0
- package/apps/syncSystem/SyncSystemResolverLambda.d.ts +8 -0
- package/apps/syncSystem/SyncSystemResolverLambda.js +78 -0
- package/apps/syncSystem/SyncSystemResolverLambda.js.map +1 -0
- package/apps/syncSystem/SyncSystemSQS.d.ts +3 -0
- package/apps/syncSystem/SyncSystemSQS.js +61 -0
- package/apps/syncSystem/SyncSystemSQS.js.map +1 -0
- package/apps/syncSystem/SyncSystemWorkerLambda.d.ts +7 -0
- package/apps/syncSystem/SyncSystemWorkerLambda.js +57 -0
- package/apps/syncSystem/SyncSystemWorkerLambda.js.map +1 -0
- package/apps/syncSystem/addTableItems.d.ts +8 -0
- package/apps/syncSystem/addTableItems.js +59 -0
- package/apps/syncSystem/addTableItems.js.map +1 -0
- package/apps/syncSystem/api/addServiceManifest.d.ts +8 -0
- package/apps/syncSystem/api/addServiceManifest.js +25 -0
- package/apps/syncSystem/api/addServiceManifest.js.map +1 -0
- package/apps/syncSystem/api/attachCognitoPermissions.d.ts +14 -0
- package/apps/syncSystem/api/attachCognitoPermissions.js +67 -0
- package/apps/syncSystem/api/attachCognitoPermissions.js.map +1 -0
- package/apps/syncSystem/api/attachDynamoDbPermissions.d.ts +13 -0
- package/apps/syncSystem/api/attachDynamoDbPermissions.js +53 -0
- package/apps/syncSystem/api/attachDynamoDbPermissions.js.map +1 -0
- package/apps/syncSystem/api/attachEventBusPermissions.d.ts +18 -0
- package/apps/syncSystem/api/attachEventBusPermissions.js +66 -0
- package/apps/syncSystem/api/attachEventBusPermissions.js.map +1 -0
- package/apps/syncSystem/api/attachS3Permissions.d.ts +14 -0
- package/apps/syncSystem/api/attachS3Permissions.js +59 -0
- package/apps/syncSystem/api/attachS3Permissions.js.map +1 -0
- package/apps/syncSystem/api/index.d.ts +9 -0
- package/apps/syncSystem/api/index.js +65 -0
- package/apps/syncSystem/api/index.js.map +1 -0
- package/apps/syncSystem/constants.d.ts +1 -0
- package/apps/syncSystem/constants.js +9 -0
- package/apps/syncSystem/constants.js.map +1 -0
- package/apps/syncSystem/createSyncResourceName.d.ts +4 -0
- package/apps/syncSystem/createSyncResourceName.js +17 -0
- package/apps/syncSystem/createSyncResourceName.js.map +1 -0
- package/apps/syncSystem/createSyncSystemPulumiApp.d.ts +75 -0
- package/apps/syncSystem/createSyncSystemPulumiApp.js +136 -0
- package/apps/syncSystem/createSyncSystemPulumiApp.js.map +1 -0
- package/apps/syncSystem/customApp.d.ts +6 -0
- package/apps/syncSystem/customApp.js +26 -0
- package/apps/syncSystem/customApp.js.map +1 -0
- package/apps/syncSystem/getSyncSystemOutput.d.ts +6 -0
- package/apps/syncSystem/getSyncSystemOutput.js +28 -0
- package/apps/syncSystem/getSyncSystemOutput.js.map +1 -0
- package/apps/syncSystem/lambda/createSyncSystemResolverLambdaPolicy.d.ts +7 -0
- package/apps/syncSystem/lambda/createSyncSystemResolverLambdaPolicy.js +55 -0
- package/apps/syncSystem/lambda/createSyncSystemResolverLambdaPolicy.js.map +1 -0
- package/apps/syncSystem/types.d.ts +55 -0
- package/apps/syncSystem/types.js +7 -0
- package/apps/syncSystem/types.js.map +1 -0
- package/apps/tenantRouter.d.ts +5 -0
- package/apps/tenantRouter.js +121 -0
- package/apps/tenantRouter.js.map +1 -0
- package/apps/website/WebsitePrerendering.d.ts +40 -0
- package/apps/website/WebsitePrerendering.js +291 -0
- package/apps/website/WebsitePrerendering.js.map +1 -0
- package/apps/website/createWebsitePulumiApp.d.ts +88 -0
- package/apps/website/createWebsitePulumiApp.js +343 -0
- package/apps/website/createWebsitePulumiApp.js.map +1 -0
- package/apps/website/deliveryViewerRequest.d.ts +2 -0
- package/apps/website/deliveryViewerRequest.js +35 -0
- package/apps/website/deliveryViewerRequest.js.map +1 -0
- package/apps/website/index.d.ts +1 -0
- package/apps/website/index.js +18 -0
- package/apps/website/index.js.map +1 -0
- package/components/tenantRouter/WebsiteTenantRouter.d.ts +2 -0
- package/components/tenantRouter/WebsiteTenantRouter.js +20 -33
- package/components/tenantRouter/WebsiteTenantRouter.js.map +1 -0
- package/components/tenantRouter/functions/origin/request.js +111 -19
- package/components/tenantRouter/functions/origin/request.js.map +1 -0
- package/constants.d.ts +2 -0
- package/constants.js +11 -0
- package/constants.js.map +1 -0
- package/enterprise/api/handleGuardDutyEvents.d.ts +2 -0
- package/enterprise/api/handleGuardDutyEvents.js +60 -0
- package/enterprise/api/handleGuardDutyEvents.js.map +1 -0
- package/enterprise/core/configureS3BucketMalwareProtection.d.ts +2 -0
- package/enterprise/core/configureS3BucketMalwareProtection.js +203 -0
- package/enterprise/core/configureS3BucketMalwareProtection.js.map +1 -0
- package/enterprise/createAdminPulumiApp.d.ts +1 -0
- package/enterprise/createAdminPulumiApp.js +26 -0
- package/enterprise/createAdminPulumiApp.js.map +1 -0
- package/enterprise/createApiPulumiApp.d.ts +88 -0
- package/enterprise/createApiPulumiApp.js +87 -0
- package/enterprise/createApiPulumiApp.js.map +1 -0
- package/enterprise/createCorePulumiApp.d.ts +55 -0
- package/enterprise/createCorePulumiApp.js +170 -0
- package/enterprise/createCorePulumiApp.js.map +1 -0
- package/enterprise/createSyncSystemPulumiApp.d.ts +31 -0
- package/enterprise/createSyncSystemPulumiApp.js +71 -0
- package/enterprise/createSyncSystemPulumiApp.js.map +1 -0
- package/enterprise/createWebsitePulumiApp.d.ts +65 -0
- package/enterprise/createWebsitePulumiApp.js +79 -0
- package/enterprise/createWebsitePulumiApp.js.map +1 -0
- package/enterprise/index.d.ts +4 -0
- package/enterprise/index.js +51 -0
- package/enterprise/index.js.map +1 -0
- package/env/awsRegion.d.ts +1 -0
- package/env/awsRegion.js +12 -0
- package/env/awsRegion.js.map +1 -0
- package/env/base.d.ts +15 -0
- package/env/base.js +37 -0
- package/env/base.js.map +1 -0
- package/env/env.d.ts +1 -0
- package/env/env.js +12 -0
- package/env/env.js.map +1 -0
- package/env/projectName.d.ts +1 -0
- package/env/projectName.js +12 -0
- package/env/projectName.js.map +1 -0
- package/env/variant.d.ts +1 -0
- package/env/variant.js +13 -0
- package/env/variant.js.map +1 -0
- package/index.d.ts +3 -0
- package/index.js +41 -1
- package/index.js.map +1 -0
- package/package.json +31 -19
- package/utils/addDomainsUrlsOutputs.d.ts +18 -0
- package/utils/addDomainsUrlsOutputs.js +48 -0
- package/utils/addDomainsUrlsOutputs.js.map +1 -0
- package/utils/addServiceManifestTableItem.d.ts +12 -0
- package/utils/addServiceManifestTableItem.js +36 -0
- package/utils/addServiceManifestTableItem.js.map +1 -0
- package/utils/crawlDirectory.d.ts +1 -0
- package/utils/crawlDirectory.js +27 -0
- package/utils/crawlDirectory.js.map +1 -0
- package/utils/createAssetArchive.d.ts +2 -0
- package/utils/createAssetArchive.js +16 -0
- package/utils/createAssetArchive.js.map +1 -0
- package/utils/dynamodb.d.ts +14 -0
- package/utils/dynamodb.js +36 -0
- package/utils/dynamodb.js.map +1 -0
- package/utils/getPresignedPost.d.ts +11 -0
- package/utils/getPresignedPost.js +41 -0
- package/utils/getPresignedPost.js.map +1 -0
- package/utils/index.d.ts +5 -0
- package/utils/index.js +68 -0
- package/utils/index.js.map +1 -0
- package/utils/lambdaEnvVariables.d.ts +20 -0
- package/utils/lambdaEnvVariables.js +65 -0
- package/utils/lambdaEnvVariables.js.map +1 -0
- package/utils/storageMigrate.d.ts +0 -0
- package/utils/storageMigrate.js +294 -0
- package/utils/storageMigrate.js.map +1 -0
- package/utils/tagResources.d.ts +5 -0
- package/utils/tagResources.js +39 -0
- package/utils/tagResources.js.map +1 -0
- package/utils/uploadFolderToS3.d.ts +26 -0
- package/utils/uploadFolderToS3.js +156 -0
- package/utils/uploadFolderToS3.js.map +1 -0
- package/utils/withServiceManifest.d.ts +14 -0
- package/utils/withServiceManifest.js +52 -0
- package/utils/withServiceManifest.js.map +1 -0
package/README.md
CHANGED
|
@@ -1,16 +1,321 @@
|
|
|
1
|
-
#
|
|
1
|
+
# `@webiny/pulumi-aws`
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@webiny/pulumi-aws)
|
|
4
4
|
[](https://www.npmjs.com/package/@webiny/pulumi-aws)
|
|
5
5
|
[](https://github.com/prettier/prettier)
|
|
6
6
|
[](http://makeapullrequest.com)
|
|
7
7
|
|
|
8
|
-
A set of
|
|
8
|
+
A set of Pulumi apps that deploy Webiny CMS into Amazon Web Services (AWS).
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
## Table of Contents
|
|
11
|
+
|
|
12
|
+
- [Installation](#installation)
|
|
13
|
+
- [Overview](#overview)
|
|
14
|
+
- [Examples](#examples)
|
|
15
|
+
- [Reference](#reference)
|
|
16
|
+
- [Apps](#functions)
|
|
17
|
+
- [`createCoreApp`](#createCoreApp)
|
|
18
|
+
- [`createApiApp`](#createApiApp)
|
|
19
|
+
- [`createAdminApp`](#createAdminApp)
|
|
20
|
+
- [`createWebsiteApp`](#createWebsiteApp)
|
|
21
|
+
|
|
22
|
+
## Installation
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
npm install --save @webiny/pulumi-aws
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Or if you prefer yarn:
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
yarn add @webiny/pulumi-aws
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Overview
|
|
35
|
+
|
|
36
|
+
A set of Pulumi apps that deploy Webiny CMS into Amazon Web Services (AWS).
|
|
37
|
+
|
|
38
|
+
> 💡 **TIP**
|
|
39
|
+
>
|
|
40
|
+
> Pulumi apps included in this package are automatically included in every Webiny project that's configured to be deployed into Amazon Web Services (AWS).
|
|
41
|
+
|
|
42
|
+
## Examples
|
|
43
|
+
|
|
44
|
+
| Example | Description |
|
|
45
|
+
| --------------------------------- | --------------------------------------------------------------- |
|
|
46
|
+
| [Initialization and Running the Apps](./docs/examples/initializationAndRunningTheApps.md) | Shows how the included apps are initialized and run. |
|
|
47
|
+
|
|
48
|
+
## Reference
|
|
49
|
+
|
|
50
|
+
### Apps
|
|
51
|
+
|
|
52
|
+
#### `createCoreApp`
|
|
53
|
+
|
|
54
|
+
<details>
|
|
55
|
+
<summary>Type Declaration</summary>
|
|
56
|
+
<p>
|
|
57
|
+
|
|
58
|
+
```ts
|
|
59
|
+
export interface CreateCoreAppParams {
|
|
60
|
+
/**
|
|
61
|
+
* Secures against deleting database by accident.
|
|
62
|
+
* By default enabled in production environments.
|
|
63
|
+
*/
|
|
64
|
+
protect?: PulumiAppParam<boolean>;
|
|
65
|
+
/**
|
|
66
|
+
* Enables ElasticSearch infrastructure.
|
|
67
|
+
* Note that it requires also changes in application code.
|
|
68
|
+
*/
|
|
69
|
+
elasticSearch?: PulumiAppParam<boolean>;
|
|
70
|
+
/**
|
|
71
|
+
* Enables VPC for the application.
|
|
72
|
+
* By default enabled in production environments.
|
|
73
|
+
*/
|
|
74
|
+
vpc?: PulumiAppParam<boolean>;
|
|
75
|
+
/**
|
|
76
|
+
* Additional settings for backwards compatibility.
|
|
77
|
+
*/
|
|
78
|
+
legacy?: PulumiAppParam<CoreAppLegacyConfig>;
|
|
79
|
+
|
|
80
|
+
pulumi?: (app: ReturnType<typeof createStoragePulumiApp>) => void;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface CoreAppLegacyConfig {
|
|
84
|
+
useEmailAsUsername?: boolean;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export declare function createCoreApp(projectAppParams?: CreateCoreAppParams): import("@webiny/pulumi").PulumiApp<{
|
|
88
|
+
fileManagerBucket: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/s3").Bucket>;
|
|
89
|
+
eventBus: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/cloudwatch").EventBus>;
|
|
90
|
+
elasticSearch: {
|
|
91
|
+
domain: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/elasticsearch").Domain>;
|
|
92
|
+
domainPolicy: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/elasticsearch").DomainPolicy>;
|
|
93
|
+
table: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/dynamodb").Table>;
|
|
94
|
+
dynamoToElastic: {
|
|
95
|
+
role: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/iam").Role>;
|
|
96
|
+
policy: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/iam").Policy>;
|
|
97
|
+
lambda: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/lambda").Function>;
|
|
98
|
+
eventSourceMapping: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/lambda").EventSourceMapping>;
|
|
99
|
+
};
|
|
100
|
+
} | null;
|
|
101
|
+
userPool: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/cognito").UserPool>;
|
|
102
|
+
userPoolClient: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/cognito").UserPoolClient>;
|
|
103
|
+
dynamoDbTable: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/dynamodb").Table>;
|
|
104
|
+
vpc: {
|
|
105
|
+
vpc: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/ec2").Vpc>;
|
|
106
|
+
subnets: {
|
|
107
|
+
public: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/ec2").Subnet>[];
|
|
108
|
+
private: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/ec2").Subnet>[];
|
|
109
|
+
};
|
|
110
|
+
} | null;
|
|
111
|
+
}>;
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
</p>
|
|
115
|
+
</details>
|
|
116
|
+
|
|
117
|
+
Creates Storage Pulumi app.
|
|
11
118
|
|
|
12
119
|
```ts
|
|
13
|
-
|
|
120
|
+
// This is imported in our Pulumi program's entrypoint file (index.ts).
|
|
121
|
+
import { createStoragePulumiApp } from "@webiny/pulumi-aws";
|
|
122
|
+
|
|
123
|
+
export = async () => {
|
|
124
|
+
const coreApp = createCoreApp();
|
|
125
|
+
|
|
126
|
+
return coreApp.run();
|
|
127
|
+
};
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
#### `createApiApp`
|
|
131
|
+
|
|
132
|
+
<details>
|
|
133
|
+
<summary>Type Declaration</summary>
|
|
134
|
+
<p>
|
|
135
|
+
|
|
136
|
+
```ts
|
|
137
|
+
export interface CreateApiAppParams {
|
|
138
|
+
/**
|
|
139
|
+
* Enables or disables VPC for the API.
|
|
140
|
+
* For VPC to work you also have to enable it in the Storage application.
|
|
141
|
+
*/
|
|
142
|
+
vpc?: PulumiAppParam<boolean>;
|
|
143
|
+
/** Custom domain configuration */
|
|
144
|
+
domain?(app: PulumiApp): CustomDomainParams | undefined | void;
|
|
145
|
+
pulumi?: (app: ReturnType<typeof createApiPulumiApp>) => void;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export declare const createApiPulumiApp: (projectAppParams?: CreateApiAppParams) => PulumiApp<{
|
|
149
|
+
fileManager: {
|
|
150
|
+
functions: {
|
|
151
|
+
transform: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/lambda").Function>;
|
|
152
|
+
manage: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/lambda").Function>;
|
|
153
|
+
download: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/lambda").Function>;
|
|
154
|
+
};
|
|
155
|
+
bucketNotification: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/s3").BucketNotification>;
|
|
156
|
+
};
|
|
157
|
+
graphql: {
|
|
158
|
+
role: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/iam").Role>;
|
|
159
|
+
policy: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/iam").Policy>;
|
|
160
|
+
functions: {
|
|
161
|
+
graphql: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/lambda").Function>;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
apiGateway: {
|
|
165
|
+
api: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/apigatewayv2").Api>;
|
|
166
|
+
stage: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/apigatewayv2").Stage>;
|
|
167
|
+
routes: Record<string, {
|
|
168
|
+
integration: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/apigatewayv2").Integration>;
|
|
169
|
+
route: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/apigatewayv2").Route>;
|
|
170
|
+
permission: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/lambda").Permission>;
|
|
171
|
+
}>;
|
|
172
|
+
addRoute: (name: string, params: import("..").ApiRouteParams) => void;
|
|
173
|
+
};
|
|
174
|
+
cloudfront: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/cloudfront").Distribution>;
|
|
175
|
+
apwScheduler: {
|
|
176
|
+
executeAction: {
|
|
177
|
+
role: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/iam").Role>;
|
|
178
|
+
policy: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/iam").Policy>;
|
|
179
|
+
lambda: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/lambda").Function>;
|
|
180
|
+
};
|
|
181
|
+
scheduleAction: {
|
|
182
|
+
role: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/iam").Role>;
|
|
183
|
+
policy: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/iam").Policy>;
|
|
184
|
+
lambda: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/lambda").Function>;
|
|
185
|
+
};
|
|
186
|
+
eventRule: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/cloudwatch").EventRule>;
|
|
187
|
+
eventTarget: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/cloudwatch").EventTarget>;
|
|
188
|
+
};
|
|
189
|
+
}>;
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
</p>
|
|
193
|
+
</details>
|
|
194
|
+
|
|
195
|
+
Creates API Pulumi app.
|
|
196
|
+
|
|
197
|
+
```ts
|
|
198
|
+
// This is imported in our Pulumi program's entrypoint file (index.ts).
|
|
199
|
+
import { createApiPulumiApp } from "@webiny/pulumi-aws";
|
|
200
|
+
|
|
201
|
+
export = async () => {
|
|
202
|
+
const apiApp = createApiApp();
|
|
203
|
+
|
|
204
|
+
return apiApp.run();
|
|
205
|
+
};
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
#### `createAdminApp`
|
|
209
|
+
|
|
210
|
+
<details>
|
|
211
|
+
<summary>Type Declaration</summary>
|
|
212
|
+
<p>
|
|
213
|
+
|
|
214
|
+
```ts
|
|
215
|
+
import * as aws from "@pulumi/aws";
|
|
216
|
+
import { PulumiApp } from "@webiny/pulumi";
|
|
217
|
+
import { CustomDomainParams } from "../customDomain";
|
|
218
|
+
|
|
219
|
+
export interface CreateAdminAppParams {
|
|
220
|
+
/** Custom domain configuration */
|
|
221
|
+
domain?(app: PulumiApp): CustomDomainParams | undefined | void;
|
|
222
|
+
pulumi?: (app: ReturnType<typeof createAdminPulumiApp>) => void;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export declare const createAdminPulumiApp: (projectAppParams: CreateAdminAppParams) => PulumiApp<{
|
|
226
|
+
cloudfront: import("@webiny/pulumi").PulumiAppResource<typeof aws.cloudfront.Distribution>;
|
|
227
|
+
bucket: import("@webiny/pulumi").PulumiAppResource<typeof aws.s3.Bucket>;
|
|
228
|
+
origin: aws.types.input.cloudfront.DistributionOrigin;
|
|
229
|
+
}>;
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
</p>
|
|
233
|
+
</details>
|
|
234
|
+
|
|
235
|
+
Creates Admin Pulumi app.
|
|
236
|
+
|
|
237
|
+
```ts
|
|
238
|
+
// This is imported in our Pulumi program's entrypoint file (index.ts).
|
|
239
|
+
import { createAdminPulumiApp } from "@webiny/pulumi-aws";
|
|
240
|
+
|
|
241
|
+
export = async () => {
|
|
242
|
+
const adminApp = createAdminApp();
|
|
243
|
+
|
|
244
|
+
return adminApp.run();
|
|
245
|
+
};
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
#### `createWebsiteApp`
|
|
249
|
+
|
|
250
|
+
<details>
|
|
251
|
+
<summary>Type Declaration</summary>
|
|
252
|
+
<p>
|
|
253
|
+
|
|
254
|
+
```ts
|
|
255
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
256
|
+
import * as aws from "@pulumi/aws";
|
|
257
|
+
import { PulumiApp, PulumiAppParam } from "@webiny/pulumi";
|
|
258
|
+
import { CustomDomainParams } from "../customDomain";
|
|
259
|
+
export interface CreateWebsiteAppParams {
|
|
260
|
+
/** Custom domain configuration */
|
|
261
|
+
domain?(app: PulumiApp): CustomDomainParams | undefined | void;
|
|
262
|
+
/**
|
|
263
|
+
* Enables or disables VPC for the API.
|
|
264
|
+
* For VPC to work you also have to enable it in the `storage` application.
|
|
265
|
+
*/
|
|
266
|
+
vpc?: PulumiAppParam<boolean | undefined>;
|
|
267
|
+
pulumi?: (app: ReturnType<typeof createWebsitePulumiApp>) => void;
|
|
268
|
+
}
|
|
269
|
+
export declare const createWebsitePulumiApp: (projectAppParams?: CreateWebsiteAppParams) => PulumiApp<{
|
|
270
|
+
prerendering: {
|
|
271
|
+
subscriber: {
|
|
272
|
+
policy: pulumi.Output<aws.iam.Policy>;
|
|
273
|
+
role: import("@webiny/pulumi").PulumiAppResource<typeof aws.iam.Role>;
|
|
274
|
+
lambda: import("@webiny/pulumi").PulumiAppResource<typeof aws.lambda.Function>;
|
|
275
|
+
eventRule: import("@webiny/pulumi").PulumiAppResource<typeof aws.cloudwatch.EventRule>;
|
|
276
|
+
eventPermission: import("@webiny/pulumi").PulumiAppResource<typeof aws.lambda.Permission>;
|
|
277
|
+
eventTarget: import("@webiny/pulumi").PulumiAppResource<typeof aws.cloudwatch.EventTarget>;
|
|
278
|
+
};
|
|
279
|
+
renderer: {
|
|
280
|
+
policy: pulumi.Output<aws.iam.Policy>;
|
|
281
|
+
role: import("@webiny/pulumi").PulumiAppResource<typeof aws.iam.Role>;
|
|
282
|
+
lambda: import("@webiny/pulumi").PulumiAppResource<typeof aws.lambda.Function>;
|
|
283
|
+
eventSourceMapping: import("@webiny/pulumi").PulumiAppResource<typeof aws.lambda.EventSourceMapping>;
|
|
284
|
+
};
|
|
285
|
+
flush: {
|
|
286
|
+
policy: pulumi.Output<aws.iam.Policy>;
|
|
287
|
+
role: import("@webiny/pulumi").PulumiAppResource<typeof aws.iam.Role>;
|
|
288
|
+
lambda: import("@webiny/pulumi").PulumiAppResource<typeof aws.lambda.Function>;
|
|
289
|
+
eventRule: import("@webiny/pulumi").PulumiAppResource<typeof aws.cloudwatch.EventRule>;
|
|
290
|
+
eventPermission: import("@webiny/pulumi").PulumiAppResource<typeof aws.lambda.Permission>;
|
|
291
|
+
eventTarget: import("@webiny/pulumi").PulumiAppResource<typeof aws.cloudwatch.EventTarget>;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
app: {
|
|
295
|
+
cloudfront: import("@webiny/pulumi").PulumiAppResource<typeof aws.cloudfront.Distribution>;
|
|
296
|
+
bucket: import("@webiny/pulumi").PulumiAppResource<typeof aws.s3.Bucket>;
|
|
297
|
+
origin: aws.types.input.cloudfront.DistributionOrigin;
|
|
298
|
+
};
|
|
299
|
+
delivery: {
|
|
300
|
+
cloudfront: import("@webiny/pulumi").PulumiAppResource<typeof aws.cloudfront.Distribution>;
|
|
301
|
+
bucket: import("@webiny/pulumi").PulumiAppResource<typeof aws.s3.Bucket>;
|
|
302
|
+
origin: aws.types.input.cloudfront.DistributionOrigin;
|
|
303
|
+
};
|
|
304
|
+
}>;
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
</p>
|
|
308
|
+
</details>
|
|
309
|
+
|
|
310
|
+
Creates Website Pulumi app.
|
|
311
|
+
|
|
312
|
+
```ts
|
|
313
|
+
// This is imported in our Pulumi program's entrypoint file (index.ts).
|
|
314
|
+
import { createWebsitePulumiApp } from "@webiny/pulumi-aws";
|
|
315
|
+
|
|
316
|
+
export = async () => {
|
|
317
|
+
const websiteApp = createWebsiteApp();
|
|
14
318
|
|
|
15
|
-
|
|
319
|
+
return websiteApp.run();
|
|
320
|
+
};
|
|
16
321
|
```
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { PulumiAppParam, PulumiAppParamCallback } from "@webiny/pulumi";
|
|
2
|
+
import type { CustomDomainParams } from "..";
|
|
3
|
+
import { createReactPulumiApp } from "..";
|
|
4
|
+
export type AdminPulumiApp = ReturnType<typeof createReactPulumiApp>;
|
|
5
|
+
export interface CreateAdminPulumiAppParams {
|
|
6
|
+
/** Custom domain configuration */
|
|
7
|
+
domains?: PulumiAppParamCallback<CustomDomainParams>;
|
|
8
|
+
/**
|
|
9
|
+
* Provides a way to adjust existing Pulumi code (cloud infrastructure resources)
|
|
10
|
+
* or add additional ones into the mix.
|
|
11
|
+
*/
|
|
12
|
+
pulumi?: (app: AdminPulumiApp) => void | Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Prefixes names of all Pulumi cloud infrastructure resource with given prefix.
|
|
15
|
+
*/
|
|
16
|
+
pulumiResourceNamePrefix?: PulumiAppParam<string>;
|
|
17
|
+
/**
|
|
18
|
+
* Treats provided environments as production environments, which
|
|
19
|
+
* are deployed in production deployment mode.
|
|
20
|
+
* https://www.webiny.com/docs/architecture/deployment-modes/production
|
|
21
|
+
*/
|
|
22
|
+
productionEnvironments?: PulumiAppParam<string[]>;
|
|
23
|
+
}
|
|
24
|
+
export declare const createAdminPulumiApp: (projectAppParams: CreateAdminPulumiAppParams) => import("@webiny/pulumi").PulumiApp<{
|
|
25
|
+
cloudfront: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/cloudfront/distribution").Distribution>;
|
|
26
|
+
bucket: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/s3/bucket").Bucket>;
|
|
27
|
+
originIdentity: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/cloudfront/originAccessIdentity").OriginAccessIdentity>;
|
|
28
|
+
origin: import("@pulumi/aws/types/input").cloudfront.DistributionOrigin;
|
|
29
|
+
bucketPublicAccessBlock: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/s3/bucketPublicAccessBlock").BucketPublicAccessBlock>;
|
|
30
|
+
bucketPolicy: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/s3/bucketPolicy").BucketPolicy>;
|
|
31
|
+
}> & import("../../utils/withServiceManifest").WithServiceManifest;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.createAdminPulumiApp = void 0;
|
|
7
|
+
var _ = require("./..");
|
|
8
|
+
const createAdminPulumiApp = projectAppParams => {
|
|
9
|
+
const adminApp = (0, _.createReactPulumiApp)({
|
|
10
|
+
name: "admin",
|
|
11
|
+
folder: "apps/admin",
|
|
12
|
+
...projectAppParams
|
|
13
|
+
});
|
|
14
|
+
adminApp.addHandler(() => {
|
|
15
|
+
const cdn = adminApp.resources.cloudfront;
|
|
16
|
+
cdn.config.waitForDeployment(true);
|
|
17
|
+
adminApp.addServiceManifest({
|
|
18
|
+
name: "admin",
|
|
19
|
+
manifest: {
|
|
20
|
+
cloudfront: {
|
|
21
|
+
distributionId: cdn.output.id,
|
|
22
|
+
domainName: cdn.output.domainName
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
return adminApp;
|
|
28
|
+
};
|
|
29
|
+
exports.createAdminPulumiApp = createAdminPulumiApp;
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=createAdminPulumiApp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_","require","createAdminPulumiApp","projectAppParams","adminApp","createReactPulumiApp","name","folder","addHandler","cdn","resources","cloudfront","config","waitForDeployment","addServiceManifest","manifest","distributionId","output","id","domainName","exports"],"sources":["createAdminPulumiApp.ts"],"sourcesContent":["import type { PulumiAppParam, PulumiAppParamCallback } from \"@webiny/pulumi\";\nimport type { CustomDomainParams } from \"~/apps\";\nimport { createReactPulumiApp } from \"~/apps\";\n\nexport type AdminPulumiApp = ReturnType<typeof createReactPulumiApp>;\n\nexport interface CreateAdminPulumiAppParams {\n /** Custom domain configuration */\n domains?: PulumiAppParamCallback<CustomDomainParams>;\n\n /**\n * Provides a way to adjust existing Pulumi code (cloud infrastructure resources)\n * or add additional ones into the mix.\n */\n pulumi?: (app: AdminPulumiApp) => void | Promise<void>;\n\n /**\n * Prefixes names of all Pulumi cloud infrastructure resource with given prefix.\n */\n pulumiResourceNamePrefix?: PulumiAppParam<string>;\n\n /**\n * Treats provided environments as production environments, which\n * are deployed in production deployment mode.\n * https://www.webiny.com/docs/architecture/deployment-modes/production\n */\n productionEnvironments?: PulumiAppParam<string[]>;\n}\n\nexport const createAdminPulumiApp = (projectAppParams: CreateAdminPulumiAppParams) => {\n const adminApp = createReactPulumiApp({\n name: \"admin\",\n folder: \"apps/admin\",\n ...projectAppParams\n });\n\n adminApp.addHandler(() => {\n const cdn = adminApp.resources.cloudfront;\n\n cdn.config.waitForDeployment(true);\n\n adminApp.addServiceManifest({\n name: \"admin\",\n manifest: {\n cloudfront: {\n distributionId: cdn.output.id,\n domainName: cdn.output.domainName\n }\n }\n });\n });\n\n return adminApp;\n};\n"],"mappings":";;;;;;AAEA,IAAAA,CAAA,GAAAC,OAAA;AA2BO,MAAMC,oBAAoB,GAAIC,gBAA4C,IAAK;EAClF,MAAMC,QAAQ,GAAG,IAAAC,sBAAoB,EAAC;IAClCC,IAAI,EAAE,OAAO;IACbC,MAAM,EAAE,YAAY;IACpB,GAAGJ;EACP,CAAC,CAAC;EAEFC,QAAQ,CAACI,UAAU,CAAC,MAAM;IACtB,MAAMC,GAAG,GAAGL,QAAQ,CAACM,SAAS,CAACC,UAAU;IAEzCF,GAAG,CAACG,MAAM,CAACC,iBAAiB,CAAC,IAAI,CAAC;IAElCT,QAAQ,CAACU,kBAAkB,CAAC;MACxBR,IAAI,EAAE,OAAO;MACbS,QAAQ,EAAE;QACNJ,UAAU,EAAE;UACRK,cAAc,EAAEP,GAAG,CAACQ,MAAM,CAACC,EAAE;UAC7BC,UAAU,EAAEV,GAAG,CAACQ,MAAM,CAACE;QAC3B;MACJ;IACJ,CAAC,CAAC;EACN,CAAC,CAAC;EAEF,OAAOf,QAAQ;AACnB,CAAC;AAACgB,OAAA,CAAAlB,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./createAdminPulumiApp";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _createAdminPulumiApp = require("./createAdminPulumiApp");
|
|
7
|
+
Object.keys(_createAdminPulumiApp).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _createAdminPulumiApp[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _createAdminPulumiApp[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_createAdminPulumiApp","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["index.ts"],"sourcesContent":["export * from \"./createAdminPulumiApp\";\n"],"mappings":";;;;;AAAA,IAAAA,qBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,qBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,qBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,qBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { PulumiAppModule } from "@webiny/pulumi";
|
|
2
|
+
interface ScheduleActionParams {
|
|
3
|
+
env: Record<string, any>;
|
|
4
|
+
}
|
|
5
|
+
export type ApiApwScheduler = PulumiAppModule<typeof ApiApwScheduler>;
|
|
6
|
+
export declare const ApiApwScheduler: import("@webiny/pulumi").PulumiAppModuleDefinition<{
|
|
7
|
+
executeAction: {
|
|
8
|
+
role: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/iam/role").Role>;
|
|
9
|
+
policy: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/iam/policy").Policy>;
|
|
10
|
+
lambda: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/lambda/function").Function>;
|
|
11
|
+
};
|
|
12
|
+
scheduleAction: {
|
|
13
|
+
role: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/iam/role").Role>;
|
|
14
|
+
policy: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/iam/policy").Policy>;
|
|
15
|
+
lambda: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/lambda/function").Function>;
|
|
16
|
+
};
|
|
17
|
+
eventRule: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/cloudwatch/eventRule").EventRule>;
|
|
18
|
+
eventTarget: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/cloudwatch/eventTarget").EventTarget>;
|
|
19
|
+
}, ScheduleActionParams>;
|
|
20
|
+
export {};
|