@quadnix/octo-aws-cdk 0.1.0 → 0.2.1
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 +108 -21
- package/dist/anchors/aws-cloudfront/aws-cloudfront.anchor.d.ts +12 -0
- package/dist/anchors/{aws-ecs/aws-ecs-server.anchor.js → aws-cloudfront/aws-cloudfront.anchor.js} +5 -5
- package/dist/anchors/aws-cloudfront/aws-cloudfront.anchor.js.map +1 -0
- package/dist/anchors/aws-cloudfront/aws-cloudfront.anchor.schema.d.ts +26 -0
- package/dist/anchors/{aws-iam/aws-iam-role.anchor.schema.js → aws-cloudfront/aws-cloudfront.anchor.schema.js} +11 -7
- package/dist/anchors/aws-cloudfront/aws-cloudfront.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-deployment/aws-deployment.anchor.d.ts +12 -0
- package/dist/anchors/{aws-ecs/aws-ecs-task-definition.anchor.js → aws-deployment/aws-deployment.anchor.js} +5 -5
- package/dist/anchors/aws-deployment/aws-deployment.anchor.js.map +1 -0
- package/dist/anchors/aws-deployment/aws-deployment.anchor.schema.d.ts +100 -0
- package/dist/anchors/aws-deployment/aws-deployment.anchor.schema.js +149 -0
- package/dist/anchors/aws-deployment/aws-deployment.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-dynamodb/aws-dynamodb.anchor.schema.d.ts +4 -0
- package/dist/anchors/aws-dynamodb/aws-dynamodb.anchor.schema.js +7 -1
- package/dist/anchors/aws-dynamodb/aws-dynamodb.anchor.schema.js.map +1 -1
- package/dist/anchors/aws-environment/aws-serverless-environment.anchor.d.ts +12 -0
- package/dist/anchors/{aws-s3-storage-service/aws-s3-storage-service-directory.anchor.js → aws-environment/aws-serverless-environment.anchor.js} +5 -5
- package/dist/anchors/aws-environment/aws-serverless-environment.anchor.js.map +1 -0
- package/dist/anchors/aws-environment/aws-serverless-environment.anchor.schema.d.ts +31 -0
- package/dist/anchors/aws-environment/aws-serverless-environment.anchor.schema.js +58 -0
- package/dist/anchors/aws-environment/aws-serverless-environment.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-lambda/aws-lambda-execution.anchor.d.ts +12 -0
- package/dist/anchors/aws-lambda/aws-lambda-execution.anchor.js +27 -0
- package/dist/anchors/aws-lambda/aws-lambda-execution.anchor.js.map +1 -0
- package/dist/anchors/aws-lambda/aws-lambda-execution.anchor.schema.d.ts +28 -0
- package/dist/anchors/aws-lambda/aws-lambda-execution.anchor.schema.js +54 -0
- package/dist/anchors/aws-lambda/aws-lambda-execution.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-lambda/aws-lambda-function.anchor.d.ts +12 -0
- package/dist/anchors/aws-lambda/aws-lambda-function.anchor.js +27 -0
- package/dist/anchors/aws-lambda/aws-lambda-function.anchor.js.map +1 -0
- package/dist/anchors/aws-lambda/aws-lambda-function.anchor.schema.d.ts +28 -0
- package/dist/anchors/aws-lambda/aws-lambda-function.anchor.schema.js +47 -0
- package/dist/anchors/aws-lambda/aws-lambda-function.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-region/aws-serverless-region.anchor.d.ts +12 -0
- package/dist/anchors/aws-region/aws-serverless-region.anchor.js +27 -0
- package/dist/anchors/aws-region/aws-serverless-region.anchor.js.map +1 -0
- package/dist/anchors/aws-region/aws-serverless-region.anchor.schema.d.ts +30 -0
- package/dist/anchors/aws-region/aws-serverless-region.anchor.schema.js +49 -0
- package/dist/anchors/aws-region/aws-serverless-region.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-access-prefix.anchor.d.ts +12 -0
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-access-prefix.anchor.js +27 -0
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-access-prefix.anchor.js.map +1 -0
- package/dist/anchors/aws-s3-storage-service/{aws-s3-storage-service-directory.anchor.schema.d.ts → aws-s3-storage-service-access-prefix.anchor.schema.d.ts} +5 -4
- package/dist/anchors/aws-s3-storage-service/{aws-s3-storage-service-directory.anchor.schema.js → aws-s3-storage-service-access-prefix.anchor.schema.js} +7 -6
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-access-prefix.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service.anchor.schema.d.ts +3 -0
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service.anchor.schema.js +3 -0
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service.anchor.schema.js.map +1 -1
- package/dist/anchors/aws-security-group/aws-security-group.anchor.schema.d.ts +3 -2
- package/dist/anchors/aws-security-group/aws-security-group.anchor.schema.js +2 -1
- package/dist/anchors/aws-security-group/aws-security-group.anchor.schema.js.map +1 -1
- package/dist/anchors/aws-server/aws-server.anchor.d.ts +12 -0
- package/dist/anchors/{aws-iam/aws-iam-role.anchor.js → aws-server/aws-server.anchor.js} +5 -5
- package/dist/anchors/aws-server/aws-server.anchor.js.map +1 -0
- package/dist/anchors/aws-server/aws-server.anchor.schema.d.ts +50 -0
- package/dist/anchors/aws-server/aws-server.anchor.schema.js +51 -0
- package/dist/anchors/aws-server/aws-server.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-subnet/aws-serverless-subnet.anchor.d.ts +12 -0
- package/dist/anchors/aws-subnet/aws-serverless-subnet.anchor.js +27 -0
- package/dist/anchors/aws-subnet/aws-serverless-subnet.anchor.js.map +1 -0
- package/dist/anchors/aws-subnet/aws-serverless-subnet.anchor.schema.d.ts +28 -0
- package/dist/anchors/{aws-ecs/aws-ecs-server.anchor.schema.js → aws-subnet/aws-serverless-subnet.anchor.schema.js} +14 -12
- package/dist/anchors/aws-subnet/aws-serverless-subnet.anchor.schema.js.map +1 -0
- package/dist/factories/aws-client.factory.d.ts +28 -0
- package/dist/factories/aws-client.factory.js +36 -0
- package/dist/factories/aws-client.factory.js.map +1 -1
- package/dist/modules/account/aws-credentials-account/aws-credentials-account.module.d.ts +2 -1
- package/dist/modules/account/aws-credentials-account/aws-credentials-account.module.js +2 -1
- package/dist/modules/account/aws-credentials-account/aws-credentials-account.module.js.map +1 -1
- package/dist/modules/account/aws-ini-account/aws-ini-account.module.d.ts +2 -1
- package/dist/modules/account/aws-ini-account/aws-ini-account.module.js +2 -1
- package/dist/modules/account/aws-ini-account/aws-ini-account.module.js.map +1 -1
- package/dist/modules/account/aws-localstack-account/aws-localstack-account.module.d.ts +2 -1
- package/dist/modules/account/aws-localstack-account/aws-localstack-account.module.js +2 -1
- package/dist/modules/account/aws-localstack-account/aws-localstack-account.module.js.map +1 -1
- package/dist/modules/account/aws-moto-account/aws-moto-account.module.d.ts +2 -1
- package/dist/modules/account/aws-moto-account/aws-moto-account.module.js +2 -1
- package/dist/modules/account/aws-moto-account/aws-moto-account.module.js.map +1 -1
- package/dist/modules/app/simple-app/index.schema.d.ts +1 -1
- package/dist/modules/app/simple-app/index.schema.js +1 -1
- package/dist/modules/deployment/aws-deployment/aws-deployment.module.d.ts +45 -0
- package/dist/modules/deployment/aws-deployment/aws-deployment.module.js +96 -0
- package/dist/modules/deployment/aws-deployment/aws-deployment.module.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/index.d.ts +1 -0
- package/dist/modules/deployment/aws-deployment/index.js +2 -0
- package/dist/modules/deployment/aws-deployment/index.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/index.schema.d.ts +60 -0
- package/dist/modules/deployment/aws-deployment/index.schema.js +160 -0
- package/dist/modules/deployment/aws-deployment/index.schema.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/models/deployment/actions/add-aws-deployment.model.action.d.ts +27 -0
- package/dist/modules/deployment/{aws-ecs-deployment/models/deployment/actions/add-aws-ecs-deployment.model.action.js → aws-deployment/models/deployment/actions/add-aws-deployment.model.action.js} +16 -14
- package/dist/modules/deployment/aws-deployment/models/deployment/actions/add-aws-deployment.model.action.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/models/deployment/aws-deployment.model.d.ts +11 -0
- package/dist/modules/deployment/{aws-ecs-deployment/models/deployment/aws-ecs-deployment.model.js → aws-deployment/models/deployment/aws-deployment.model.js} +9 -9
- package/dist/modules/deployment/aws-deployment/models/deployment/aws-deployment.model.js.map +1 -0
- package/dist/modules/deployment/{aws-ecs-deployment/models/deployment/aws-ecs-deployment.schema.d.ts → aws-deployment/models/deployment/aws-deployment.schema.d.ts} +1 -1
- package/dist/modules/deployment/aws-deployment/models/deployment/aws-deployment.schema.js +7 -0
- package/dist/modules/deployment/aws-deployment/models/deployment/aws-deployment.schema.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/models/deployment/index.d.ts +2 -0
- package/dist/modules/deployment/aws-deployment/models/deployment/index.js +3 -0
- package/dist/modules/deployment/aws-deployment/models/deployment/index.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/actions/add-aws-deployment-image.overlay.action.d.ts +28 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/actions/add-aws-deployment-image.overlay.action.js +53 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/actions/add-aws-deployment-image.overlay.action.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/aws-deployment-image.overlay.d.ts +22 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/aws-deployment-image.overlay.js +37 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/aws-deployment-image.overlay.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/aws-deployment-image.schema.d.ts +12 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/aws-deployment-image.schema.js +32 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/aws-deployment-image.schema.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/index.d.ts +2 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/index.js +3 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/index.js.map +1 -0
- package/dist/modules/environment/aws-ecs-environment/aws-ecs-environment.module.d.ts +2 -1
- package/dist/modules/environment/aws-ecs-environment/aws-ecs-environment.module.js +2 -1
- package/dist/modules/environment/aws-ecs-environment/aws-ecs-environment.module.js.map +1 -1
- package/dist/modules/environment/aws-serverless-environment/aws-serverless-environment.module.d.ts +33 -0
- package/dist/modules/environment/aws-serverless-environment/aws-serverless-environment.module.js +60 -0
- package/dist/modules/environment/aws-serverless-environment/aws-serverless-environment.module.js.map +1 -0
- package/dist/modules/environment/aws-serverless-environment/index.d.ts +1 -0
- package/dist/modules/environment/aws-serverless-environment/index.js +2 -0
- package/dist/modules/environment/aws-serverless-environment/index.js.map +1 -0
- package/dist/modules/environment/aws-serverless-environment/index.schema.d.ts +27 -0
- package/dist/modules/environment/aws-serverless-environment/index.schema.js +73 -0
- package/dist/modules/environment/aws-serverless-environment/index.schema.js.map +1 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/actions/add-aws-serverless-environment.model.action.d.ts +28 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/actions/add-aws-serverless-environment.model.action.js +53 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/actions/add-aws-serverless-environment.model.action.js.map +1 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/aws-serverless-environment.model.d.ts +11 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/aws-serverless-environment.model.js +29 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/aws-serverless-environment.model.js.map +1 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/aws-serverless-environment.schema.d.ts +6 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/aws-serverless-environment.schema.js +7 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/aws-serverless-environment.schema.js.map +1 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/index.d.ts +2 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/index.js +3 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/index.js.map +1 -0
- package/dist/modules/execution/aws-ecs-execution/aws-ecs-execution.module.d.ts +7 -6
- package/dist/modules/execution/aws-ecs-execution/aws-ecs-execution.module.js +138 -63
- package/dist/modules/execution/aws-ecs-execution/aws-ecs-execution.module.js.map +1 -1
- package/dist/modules/execution/aws-ecs-execution/index.schema.d.ts +6 -6
- package/dist/modules/execution/aws-ecs-execution/index.schema.js +6 -6
- package/dist/modules/execution/aws-ecs-execution/index.schema.js.map +1 -1
- package/dist/modules/execution/aws-ecs-execution/models/execution/aws-ecs-execution.model.js +5 -0
- package/dist/modules/execution/aws-ecs-execution/models/execution/aws-ecs-execution.model.js.map +1 -1
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/actions/add-aws-ecs-execution.overlay.action.js +131 -40
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/actions/add-aws-ecs-execution.overlay.action.js.map +1 -1
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/aws-ecs-execution.overlay.d.ts +9 -5
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/aws-ecs-execution.overlay.js +4 -0
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/aws-ecs-execution.overlay.js.map +1 -1
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/aws-ecs-execution.schema.d.ts +20 -0
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/aws-ecs-execution.schema.js +5 -0
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/aws-ecs-execution.schema.js.map +1 -1
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution-server-security-group/actions/add-aws-ecs-execution-server-security-group.overlay.action.js +32 -20
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution-server-security-group/actions/add-aws-ecs-execution-server-security-group.overlay.action.js.map +1 -1
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution-server-security-group/aws-ecs-execution-server-security-group.overlay.d.ts +10 -2
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution-server-security-group/aws-ecs-execution-server-security-group.overlay.js.map +1 -1
- package/dist/modules/execution/aws-lambda-execution/aws-lambda-execution.module.d.ts +57 -0
- package/dist/modules/execution/aws-lambda-execution/aws-lambda-execution.module.js +177 -0
- package/dist/modules/execution/aws-lambda-execution/aws-lambda-execution.module.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/index.d.ts +1 -0
- package/dist/modules/execution/aws-lambda-execution/index.js +2 -0
- package/dist/modules/execution/aws-lambda-execution/index.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/index.schema.d.ts +56 -0
- package/dist/modules/execution/aws-lambda-execution/index.schema.js +154 -0
- package/dist/modules/execution/aws-lambda-execution/index.schema.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/actions/add-aws-lambda-execution.model.action.d.ts +25 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/actions/add-aws-lambda-execution.model.action.js +51 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/actions/add-aws-lambda-execution.model.action.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/aws-lambda-execution.model.d.ts +28 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/aws-lambda-execution.model.js +85 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/aws-lambda-execution.model.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/aws-lambda-execution.schema.d.ts +7 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/aws-lambda-execution.schema.js +24 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/aws-lambda-execution.schema.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/index.d.ts +2 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/index.js +3 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/index.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/actions/add-aws-lambda-execution.overlay.action.d.ts +26 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/actions/add-aws-lambda-execution.overlay.action.js +172 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/actions/add-aws-lambda-execution.overlay.action.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/aws-lambda-execution.overlay.d.ts +38 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/aws-lambda-execution.overlay.js +37 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/aws-lambda-execution.overlay.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/aws-lambda-execution.schema.d.ts +41 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/aws-lambda-execution.schema.js +43 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/aws-lambda-execution.schema.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/index.d.ts +2 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/index.js +3 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/index.js.map +1 -0
- package/dist/modules/filesystem/aws-efs-filesystem/aws-efs-filesystem.module.d.ts +2 -1
- package/dist/modules/filesystem/aws-efs-filesystem/aws-efs-filesystem.module.js +2 -1
- package/dist/modules/filesystem/aws-efs-filesystem/aws-efs-filesystem.module.js.map +1 -1
- package/dist/modules/filesystem/aws-efs-filesystem/models/filesystem/actions/add-aws-efs-filesystem.model.action.js +1 -2
- package/dist/modules/filesystem/aws-efs-filesystem/models/filesystem/actions/add-aws-efs-filesystem.model.action.js.map +1 -1
- package/dist/modules/image/aws-ecr-image/aws-ecr-image.module.d.ts +10 -5
- package/dist/modules/image/aws-ecr-image/aws-ecr-image.module.js +31 -13
- package/dist/modules/image/aws-ecr-image/aws-ecr-image.module.js.map +1 -1
- package/dist/modules/image/aws-ecr-image/index.schema.d.ts +1 -1
- package/dist/modules/image/aws-ecr-image/index.schema.js +2 -3
- package/dist/modules/image/aws-ecr-image/index.schema.js.map +1 -1
- package/dist/modules/image/aws-ecr-image/models/image/actions/add-aws-ecr-image-region.model.action.d.ts +28 -0
- package/dist/modules/image/aws-ecr-image/models/image/actions/add-aws-ecr-image-region.model.action.js +53 -0
- package/dist/modules/image/aws-ecr-image/models/image/actions/add-aws-ecr-image-region.model.action.js.map +1 -0
- package/dist/modules/image/aws-ecr-image/models/image/actions/add-aws-ecr-image.model.action.js +1 -1
- package/dist/modules/image/aws-ecr-image/models/image/actions/add-aws-ecr-image.model.action.js.map +1 -1
- package/dist/modules/image/aws-ecr-image/models/image/index.d.ts +1 -0
- package/dist/modules/image/aws-ecr-image/models/image/index.js +1 -0
- package/dist/modules/image/aws-ecr-image/models/image/index.js.map +1 -1
- package/dist/modules/image/aws-ecr-image-tag/aws-ecr-image-tag.module.d.ts +5 -1
- package/dist/modules/image/aws-ecr-image-tag/aws-ecr-image-tag.module.js +12 -3
- package/dist/modules/image/aws-ecr-image-tag/aws-ecr-image-tag.module.js.map +1 -1
- package/dist/modules/image/aws-ecr-image-tag/index.schema.d.ts +18 -0
- package/dist/modules/image/aws-ecr-image-tag/index.schema.js +42 -0
- package/dist/modules/image/aws-ecr-image-tag/index.schema.js.map +1 -1
- package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/actions/add-aws-ecr-image-tag.overlay.action.js +3 -0
- package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/actions/add-aws-ecr-image-tag.overlay.action.js.map +1 -1
- package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/aws-ecr-image-tag.schema.d.ts +4 -0
- package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/aws-ecr-image-tag.schema.js +1 -0
- package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/aws-ecr-image-tag.schema.js.map +1 -1
- package/dist/modules/region/aws-multi-az-region/aws-multi-az-region.module.d.ts +3 -1
- package/dist/modules/region/aws-multi-az-region/aws-multi-az-region.module.js +3 -5
- package/dist/modules/region/aws-multi-az-region/aws-multi-az-region.module.js.map +1 -1
- package/dist/modules/region/aws-multi-az-region/models/region/aws-multi-az-region.model.d.ts +0 -4
- package/dist/modules/region/aws-multi-az-region/models/region/aws-multi-az-region.model.js +2 -11
- package/dist/modules/region/aws-multi-az-region/models/region/aws-multi-az-region.model.js.map +1 -1
- package/dist/modules/region/aws-serverless-region/aws-serverless-region.module.d.ts +35 -0
- package/dist/modules/region/aws-serverless-region/aws-serverless-region.module.js +58 -0
- package/dist/modules/region/aws-serverless-region/aws-serverless-region.module.js.map +1 -0
- package/dist/modules/region/aws-serverless-region/index.d.ts +1 -0
- package/dist/modules/region/aws-serverless-region/index.js +2 -0
- package/dist/modules/region/aws-serverless-region/index.js.map +1 -0
- package/dist/modules/region/aws-serverless-region/index.schema.d.ts +27 -0
- package/dist/modules/region/aws-serverless-region/index.schema.js +64 -0
- package/dist/modules/region/aws-serverless-region/index.schema.js.map +1 -0
- package/dist/modules/region/aws-serverless-region/models/region/actions/add-aws-serverless-region.model.action.d.ts +28 -0
- package/dist/modules/region/aws-serverless-region/models/region/actions/add-aws-serverless-region.model.action.js +53 -0
- package/dist/modules/region/aws-serverless-region/models/region/actions/add-aws-serverless-region.model.action.js.map +1 -0
- package/dist/modules/region/aws-serverless-region/models/region/aws-serverless-region.model.d.ts +30 -0
- package/dist/modules/region/aws-serverless-region/models/region/aws-serverless-region.model.js +56 -0
- package/dist/modules/region/aws-serverless-region/models/region/aws-serverless-region.model.js.map +1 -0
- package/dist/modules/region/aws-serverless-region/models/region/aws-serverless-region.schema.d.ts +7 -0
- package/dist/modules/region/aws-serverless-region/models/region/aws-serverless-region.schema.js +24 -0
- package/dist/modules/region/aws-serverless-region/models/region/aws-serverless-region.schema.js.map +1 -0
- package/dist/modules/region/aws-serverless-region/models/region/index.d.ts +2 -0
- package/dist/modules/region/aws-serverless-region/models/region/index.js +3 -0
- package/dist/modules/region/aws-serverless-region/models/region/index.js.map +1 -0
- package/dist/modules/region/aws-single-az-region/aws-single-az-region.module.d.ts +3 -1
- package/dist/modules/region/aws-single-az-region/aws-single-az-region.module.js +3 -5
- package/dist/modules/region/aws-single-az-region/aws-single-az-region.module.js.map +1 -1
- package/dist/modules/region/aws-single-az-region/models/region/aws-single-az-region.model.d.ts +0 -4
- package/dist/modules/region/aws-single-az-region/models/region/aws-single-az-region.model.js +3 -12
- package/dist/modules/region/aws-single-az-region/models/region/aws-single-az-region.model.js.map +1 -1
- package/dist/modules/server/aws-server/aws-server.module.d.ts +72 -0
- package/dist/modules/server/aws-server/aws-server.module.js +182 -0
- package/dist/modules/server/aws-server/aws-server.module.js.map +1 -0
- package/dist/modules/server/aws-server/index.d.ts +1 -0
- package/dist/modules/server/aws-server/index.js +2 -0
- package/dist/modules/server/aws-server/index.js.map +1 -0
- package/dist/modules/server/aws-server/index.schema.d.ts +123 -0
- package/dist/modules/server/aws-server/index.schema.js +246 -0
- package/dist/modules/server/aws-server/index.schema.js.map +1 -0
- package/dist/modules/server/aws-server/models/server/actions/add-aws-server.model.action.d.ts +27 -0
- package/dist/modules/server/aws-server/models/server/actions/add-aws-server.model.action.js +53 -0
- package/dist/modules/server/aws-server/models/server/actions/add-aws-server.model.action.js.map +1 -0
- package/dist/modules/server/aws-server/models/server/aws-server.model.d.ts +11 -0
- package/dist/modules/server/{aws-ecs-server/models/server/aws-ecs-server.model.js → aws-server/models/server/aws-server.model.js} +9 -9
- package/dist/modules/server/aws-server/models/server/aws-server.model.js.map +1 -0
- package/dist/modules/server/{aws-ecs-server/models/server/aws-ecs-server.schema.d.ts → aws-server/models/server/aws-server.schema.d.ts} +1 -1
- package/dist/modules/server/aws-server/models/server/aws-server.schema.js +7 -0
- package/dist/modules/server/aws-server/models/server/aws-server.schema.js.map +1 -0
- package/dist/modules/server/aws-server/models/server/index.d.ts +2 -0
- package/dist/modules/server/aws-server/models/server/index.js +3 -0
- package/dist/modules/server/aws-server/models/server/index.js.map +1 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/actions/add-aws-server-dynamodb-access.overlay.action.d.ts +28 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/actions/add-aws-server-dynamodb-access.overlay.action.js +53 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/actions/add-aws-server-dynamodb-access.overlay.action.js.map +1 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/aws-server-dynamodb-access.overlay.d.ts +22 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/aws-server-dynamodb-access.overlay.js +37 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/aws-server-dynamodb-access.overlay.js.map +1 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/aws-server-dynamodb-access.schema.d.ts +13 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/aws-server-dynamodb-access.schema.js +33 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/aws-server-dynamodb-access.schema.js.map +1 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/index.d.ts +2 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/index.js +3 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/index.js.map +1 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/actions/add-aws-server-s3-access.overlay.action.d.ts +28 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/actions/add-aws-server-s3-access.overlay.action.js +53 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/actions/add-aws-server-s3-access.overlay.action.js.map +1 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/aws-server-s3-access.overlay.d.ts +22 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/aws-server-s3-access.overlay.js +37 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/aws-server-s3-access.overlay.js.map +1 -0
- package/dist/modules/server/{aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.schema.d.ts → aws-server/overlays/aws-server-s3-access/aws-server-s3-access.schema.d.ts} +3 -4
- package/dist/modules/server/{aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.schema.js → aws-server/overlays/aws-server-s3-access/aws-server-s3-access.schema.js} +5 -6
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/aws-server-s3-access.schema.js.map +1 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/index.d.ts +2 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/index.js +3 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/index.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/aws-cloudfront-invalidation-service.module.d.ts +36 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/aws-cloudfront-invalidation-service.module.js +66 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/aws-cloudfront-invalidation-service.module.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/index.d.ts +1 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/index.js +2 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/index.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/index.schema.d.ts +23 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/index.schema.js +65 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/index.schema.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/actions/add-aws-cloudfront-invalidation.overlay.action.d.ts +26 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/actions/add-aws-cloudfront-invalidation.overlay.action.js +68 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/actions/add-aws-cloudfront-invalidation.overlay.action.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/aws-cloudfront-invalidation.overlay.d.ts +22 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/aws-cloudfront-invalidation.overlay.js +38 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/aws-cloudfront-invalidation.overlay.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/aws-cloudfront-invalidation.schema.d.ts +12 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/aws-cloudfront-invalidation.schema.js +32 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/aws-cloudfront-invalidation.schema.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/index.d.ts +2 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/index.js +3 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/index.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/aws-cloudfront-service.module.d.ts +76 -0
- package/dist/modules/service/aws-cloudfront-service/aws-cloudfront-service.module.js +192 -0
- package/dist/modules/service/aws-cloudfront-service/aws-cloudfront-service.module.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/index.d.ts +1 -0
- package/dist/modules/service/aws-cloudfront-service/index.js +2 -0
- package/dist/modules/service/aws-cloudfront-service/index.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/index.schema.d.ts +170 -0
- package/dist/modules/service/aws-cloudfront-service/index.schema.js +396 -0
- package/dist/modules/service/aws-cloudfront-service/index.schema.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/actions/add-aws-cloudfront-service.model.action.d.ts +26 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/actions/add-aws-cloudfront-service.model.action.js +137 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/actions/add-aws-cloudfront-service.model.action.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/aws-cloudfront-service.model.d.ts +20 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/aws-cloudfront-service.model.js +50 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/aws-cloudfront-service.model.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/aws-cloudfront-service.schema.d.ts +7 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/aws-cloudfront-service.schema.js +24 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/aws-cloudfront-service.schema.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/index.d.ts +2 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/index.js +3 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/index.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/actions/add-aws-cloudfront-alb-origin.overlay.action.d.ts +26 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/actions/add-aws-cloudfront-alb-origin.overlay.action.js +68 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/actions/add-aws-cloudfront-alb-origin.overlay.action.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/aws-cloudfront-alb-origin.overlay.d.ts +21 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/aws-cloudfront-alb-origin.overlay.js +36 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/aws-cloudfront-alb-origin.overlay.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/aws-cloudfront-alb-origin.schema.d.ts +9 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/aws-cloudfront-alb-origin.schema.js +11 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/aws-cloudfront-alb-origin.schema.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/index.d.ts +2 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/index.js +3 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/index.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/actions/add-aws-cloudfront-lambda-origin.overlay.action.d.ts +26 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/actions/add-aws-cloudfront-lambda-origin.overlay.action.js +73 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/actions/add-aws-cloudfront-lambda-origin.overlay.action.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/aws-cloudfront-lambda-origin.overlay.d.ts +21 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/aws-cloudfront-lambda-origin.overlay.js +36 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/aws-cloudfront-lambda-origin.overlay.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/aws-cloudfront-lambda-origin.schema.d.ts +9 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/aws-cloudfront-lambda-origin.schema.js +11 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/aws-cloudfront-lambda-origin.schema.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/index.d.ts +2 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/index.js +3 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/index.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/actions/add-aws-cloudfront-s3-origin.overlay.action.d.ts +26 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/actions/add-aws-cloudfront-s3-origin.overlay.action.js +80 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/actions/add-aws-cloudfront-s3-origin.overlay.action.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/aws-cloudfront-s3-origin.overlay.d.ts +20 -0
- package/dist/modules/{server/aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.overlay.js → service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/aws-cloudfront-s3-origin.overlay.js} +10 -8
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/aws-cloudfront-s3-origin.overlay.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/aws-cloudfront-s3-origin.schema.d.ts +9 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/aws-cloudfront-s3-origin.schema.js +11 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/aws-cloudfront-s3-origin.schema.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/index.d.ts +2 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/index.js +3 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/index.js.map +1 -0
- package/dist/modules/service/aws-dynamodb-global-service/aws-dynamodb-global-service.module.d.ts +9 -7
- package/dist/modules/service/aws-dynamodb-global-service/aws-dynamodb-global-service.module.js +32 -11
- package/dist/modules/service/aws-dynamodb-global-service/aws-dynamodb-global-service.module.js.map +1 -1
- package/dist/modules/service/aws-dynamodb-global-service/index.schema.d.ts +3 -2
- package/dist/modules/service/aws-dynamodb-global-service/index.schema.js +3 -2
- package/dist/modules/service/aws-dynamodb-global-service/index.schema.js.map +1 -1
- package/dist/modules/service/aws-dynamodb-global-service/models/service/actions/add-aws-dynamodb-global-service-replica-region.model.action.d.ts +29 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/actions/add-aws-dynamodb-global-service-replica-region.model.action.js +54 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/actions/add-aws-dynamodb-global-service-replica-region.model.action.js.map +1 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/actions/add-aws-dynamodb-global-service.model.action.js +12 -3
- package/dist/modules/service/aws-dynamodb-global-service/models/service/actions/add-aws-dynamodb-global-service.model.action.js.map +1 -1
- package/dist/modules/service/aws-dynamodb-global-service/models/service/aws-dynamodb-global-service.model.d.ts +7 -3
- package/dist/modules/service/aws-dynamodb-global-service/models/service/aws-dynamodb-global-service.model.js +14 -7
- package/dist/modules/service/aws-dynamodb-global-service/models/service/aws-dynamodb-global-service.model.js.map +1 -1
- package/dist/modules/service/aws-dynamodb-global-service/models/service/index.d.ts +1 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/index.js +1 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/index.js.map +1 -1
- package/dist/modules/service/aws-dynamodb-service/aws-dynamodb-service.module.d.ts +5 -4
- package/dist/modules/service/aws-dynamodb-service/aws-dynamodb-service.module.js +17 -12
- package/dist/modules/service/aws-dynamodb-service/aws-dynamodb-service.module.js.map +1 -1
- package/dist/modules/service/aws-dynamodb-service/index.schema.d.ts +1 -2
- package/dist/modules/service/aws-dynamodb-service/index.schema.js +2 -4
- package/dist/modules/service/aws-dynamodb-service/index.schema.js.map +1 -1
- package/dist/modules/service/aws-dynamodb-service/models/service/aws-dynamodb-service.model.d.ts +3 -3
- package/dist/modules/service/aws-dynamodb-service/models/service/aws-dynamodb-service.model.js +8 -7
- package/dist/modules/service/aws-dynamodb-service/models/service/aws-dynamodb-service.model.js.map +1 -1
- package/dist/modules/service/aws-ecs-alb-service/aws-ecs-alb-service.module.d.ts +20 -10
- package/dist/modules/service/aws-ecs-alb-service/aws-ecs-alb-service.module.js +23 -17
- package/dist/modules/service/aws-ecs-alb-service/aws-ecs-alb-service.module.js.map +1 -1
- package/dist/modules/service/aws-ecs-alb-service/models/service/actions/add-aws-ecs-alb-service.model.action.js +2 -2
- package/dist/modules/service/aws-ecs-alb-service/models/service/actions/add-aws-ecs-alb-service.model.action.js.map +1 -1
- package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.model.d.ts +1 -5
- package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.model.js +4 -22
- package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.model.js.map +1 -1
- package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.schema.d.ts +1 -2
- package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.schema.js +0 -1
- package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.schema.js.map +1 -1
- package/dist/modules/service/aws-ecs-alb-service/overlays/aws-ecs-alb-service/actions/add-aws-ecs-alb-service.overlay.action.js +7 -8
- package/dist/modules/service/aws-ecs-alb-service/overlays/aws-ecs-alb-service/actions/add-aws-ecs-alb-service.overlay.action.js.map +1 -1
- package/dist/modules/service/aws-s3-static-website-service/aws-s3-static-website-service.module.d.ts +9 -8
- package/dist/modules/service/aws-s3-static-website-service/aws-s3-static-website-service.module.js +18 -13
- package/dist/modules/service/aws-s3-static-website-service/aws-s3-static-website-service.module.js.map +1 -1
- package/dist/modules/service/aws-s3-static-website-service/index.schema.d.ts +5 -10
- package/dist/modules/service/aws-s3-static-website-service/index.schema.js +20 -31
- package/dist/modules/service/aws-s3-static-website-service/index.schema.js.map +1 -1
- package/dist/modules/service/aws-s3-static-website-service/models/service/actions/add-aws-s3-static-website-service.model.action.js +6 -3
- package/dist/modules/service/aws-s3-static-website-service/models/service/actions/add-aws-s3-static-website-service.model.action.js.map +1 -1
- package/dist/modules/service/aws-s3-static-website-service/models/service/actions/update-aws-s3-static-website-service-source-paths.model.action.d.ts +2 -1
- package/dist/modules/service/aws-s3-static-website-service/models/service/actions/update-aws-s3-static-website-service-source-paths.model.action.js +2 -1
- package/dist/modules/service/aws-s3-static-website-service/models/service/actions/update-aws-s3-static-website-service-source-paths.model.action.js.map +1 -1
- package/dist/modules/service/aws-s3-static-website-service/models/service/aws-s3-static-website-service.model.d.ts +6 -24
- package/dist/modules/service/aws-s3-static-website-service/models/service/aws-s3-static-website-service.model.js +11 -86
- package/dist/modules/service/aws-s3-static-website-service/models/service/aws-s3-static-website-service.model.js.map +1 -1
- package/dist/modules/service/aws-s3-storage-service/aws-s3-storage-service.module.d.ts +19 -8
- package/dist/modules/service/aws-s3-storage-service/aws-s3-storage-service.module.js +44 -20
- package/dist/modules/service/aws-s3-storage-service/aws-s3-storage-service.module.js.map +1 -1
- package/dist/modules/service/aws-s3-storage-service/index.schema.d.ts +53 -7
- package/dist/modules/service/aws-s3-storage-service/index.schema.js +126 -11
- package/dist/modules/service/aws-s3-storage-service/index.schema.js.map +1 -1
- package/dist/modules/service/aws-s3-storage-service/models/service/actions/add-aws-s3-storage-service.model.action.js +4 -0
- package/dist/modules/service/aws-s3-storage-service/models/service/actions/add-aws-s3-storage-service.model.action.js.map +1 -1
- package/dist/modules/service/aws-s3-storage-service/models/service/actions/update-aws-s3-storage-service-source-paths.model.action.d.ts +27 -0
- package/dist/modules/service/aws-s3-storage-service/models/service/actions/update-aws-s3-storage-service-source-paths.model.action.js +56 -0
- package/dist/modules/service/aws-s3-storage-service/models/service/actions/update-aws-s3-storage-service-source-paths.model.action.js.map +1 -0
- package/dist/modules/service/aws-s3-storage-service/models/service/aws-s3-storage-service.model.d.ts +26 -8
- package/dist/modules/service/aws-s3-storage-service/models/service/aws-s3-storage-service.model.js +56 -20
- package/dist/modules/service/aws-s3-storage-service/models/service/aws-s3-storage-service.model.js.map +1 -1
- package/dist/modules/service/aws-s3-storage-service/models/service/aws-s3-storage-service.schema.d.ts +13 -3
- package/dist/modules/service/aws-s3-storage-service/models/service/aws-s3-storage-service.schema.js +19 -3
- package/dist/modules/service/aws-s3-storage-service/models/service/aws-s3-storage-service.schema.js.map +1 -1
- package/dist/modules/service/aws-s3-storage-service/models/service/index.d.ts +1 -0
- package/dist/modules/service/aws-s3-storage-service/models/service/index.js +1 -0
- package/dist/modules/service/aws-s3-storage-service/models/service/index.js.map +1 -1
- package/dist/modules/subnet/aws-serverless-subnet/aws-serverless-subnet.module.d.ts +31 -0
- package/dist/modules/subnet/aws-serverless-subnet/aws-serverless-subnet.module.js +55 -0
- package/dist/modules/subnet/aws-serverless-subnet/aws-serverless-subnet.module.js.map +1 -0
- package/dist/modules/subnet/aws-serverless-subnet/index.d.ts +1 -0
- package/dist/modules/subnet/aws-serverless-subnet/index.js +2 -0
- package/dist/modules/subnet/aws-serverless-subnet/index.js.map +1 -0
- package/dist/modules/subnet/aws-serverless-subnet/index.schema.d.ts +17 -0
- package/dist/modules/subnet/aws-serverless-subnet/index.schema.js +46 -0
- package/dist/modules/subnet/aws-serverless-subnet/index.schema.js.map +1 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/actions/add-aws-serverless-subnet.model.action.d.ts +28 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/actions/add-aws-serverless-subnet.model.action.js +53 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/actions/add-aws-serverless-subnet.model.action.js.map +1 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/aws-serverless-subnet.model.d.ts +11 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/aws-serverless-subnet.model.js +26 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/aws-serverless-subnet.model.js.map +1 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/aws-serverless-subnet.schema.d.ts +6 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/aws-serverless-subnet.schema.js +7 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/aws-serverless-subnet.schema.js.map +1 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/index.d.ts +2 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/index.js +3 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/index.js.map +1 -0
- package/dist/modules/subnet/aws-simple-subnet/aws-simple-subnet.module.d.ts +4 -3
- package/dist/modules/subnet/aws-simple-subnet/aws-simple-subnet.module.js +7 -4
- package/dist/modules/subnet/aws-simple-subnet/aws-simple-subnet.module.js.map +1 -1
- package/dist/modules/subnet/aws-simple-subnet/models/subnet/actions/add-aws-simple-subnet.model.action.js +9 -9
- package/dist/modules/subnet/aws-simple-subnet/models/subnet/actions/add-aws-simple-subnet.model.action.js.map +1 -1
- package/dist/modules/subnet/aws-simple-subnet/overlays/aws-simple-subnet-local-filesystem-mount/actions/add-aws-simple-subnet-local-filesystem-mount.overlay.action.js +11 -9
- package/dist/modules/subnet/aws-simple-subnet/overlays/aws-simple-subnet-local-filesystem-mount/actions/add-aws-simple-subnet-local-filesystem-mount.overlay.action.js.map +1 -1
- package/dist/modules/subnet/aws-simple-subnet/overlays/aws-simple-subnet-local-filesystem-mount/aws-simple-subnet-local-filesystem-mount.overlay.d.ts +1 -0
- package/dist/modules/subnet/aws-simple-subnet/overlays/aws-simple-subnet-local-filesystem-mount/aws-simple-subnet-local-filesystem-mount.overlay.js.map +1 -1
- package/dist/resources/alb/alb.resource.js +3 -1
- package/dist/resources/alb/alb.resource.js.map +1 -1
- package/dist/resources/alb-listener/index.schema.d.ts +2 -2
- package/dist/resources/alb-listener/index.schema.js +2 -2
- package/dist/resources/alb-target-group/alb-target-group.resource.js +3 -1
- package/dist/resources/alb-target-group/alb-target-group.resource.js.map +1 -1
- package/dist/resources/cloudfront-distribution/cloudfront-behavior.schema.d.ts +136 -0
- package/dist/resources/cloudfront-distribution/cloudfront-behavior.schema.js +215 -0
- package/dist/resources/cloudfront-distribution/cloudfront-behavior.schema.js.map +1 -0
- package/dist/resources/cloudfront-distribution/cloudfront-distribution.resource.d.ts +129 -0
- package/dist/resources/cloudfront-distribution/cloudfront-distribution.resource.js +693 -0
- package/dist/resources/cloudfront-distribution/cloudfront-distribution.resource.js.map +1 -0
- package/dist/resources/cloudfront-distribution/cloudfront-origin.schema.d.ts +93 -0
- package/dist/resources/cloudfront-distribution/cloudfront-origin.schema.js +136 -0
- package/dist/resources/cloudfront-distribution/cloudfront-origin.schema.js.map +1 -0
- package/dist/resources/cloudfront-distribution/cloudfront-policy.schema.d.ts +361 -0
- package/dist/resources/cloudfront-distribution/cloudfront-policy.schema.js +467 -0
- package/dist/resources/cloudfront-distribution/cloudfront-policy.schema.js.map +1 -0
- package/dist/resources/cloudfront-distribution/cloudfront-response.schema.d.ts +29 -0
- package/dist/resources/cloudfront-distribution/cloudfront-response.schema.js +58 -0
- package/dist/resources/cloudfront-distribution/cloudfront-response.schema.js.map +1 -0
- package/dist/resources/cloudfront-distribution/index.d.ts +1 -0
- package/dist/resources/cloudfront-distribution/index.js +2 -0
- package/dist/resources/cloudfront-distribution/index.js.map +1 -0
- package/dist/resources/cloudfront-distribution/index.schema.d.ts +150 -0
- package/dist/resources/cloudfront-distribution/index.schema.js +217 -0
- package/dist/resources/cloudfront-distribution/index.schema.js.map +1 -0
- package/dist/resources/cloudfront-invalidation/actions/add-cloudfront-invalidation.resource.action.d.ts +36 -0
- package/dist/resources/cloudfront-invalidation/actions/add-cloudfront-invalidation.resource.action.js +90 -0
- package/dist/resources/cloudfront-invalidation/actions/add-cloudfront-invalidation.resource.action.js.map +1 -0
- package/dist/resources/cloudfront-invalidation/actions/delete-cloudfront-invalidation.resource.action.d.ts +39 -0
- package/dist/resources/cloudfront-invalidation/actions/delete-cloudfront-invalidation.resource.action.js +69 -0
- package/dist/resources/cloudfront-invalidation/actions/delete-cloudfront-invalidation.resource.action.js.map +1 -0
- package/dist/resources/cloudfront-invalidation/actions/update-cloudfront-invalidation.resource.action.d.ts +37 -0
- package/dist/resources/cloudfront-invalidation/actions/update-cloudfront-invalidation.resource.action.js +91 -0
- package/dist/resources/cloudfront-invalidation/actions/update-cloudfront-invalidation.resource.action.js.map +1 -0
- package/dist/resources/cloudfront-invalidation/cloudfront-invalidation.resource.d.ts +66 -0
- package/dist/resources/cloudfront-invalidation/cloudfront-invalidation.resource.js +92 -0
- package/dist/resources/cloudfront-invalidation/cloudfront-invalidation.resource.js.map +1 -0
- package/dist/resources/cloudfront-invalidation/index.d.ts +5 -0
- package/dist/resources/cloudfront-invalidation/index.js +6 -0
- package/dist/resources/cloudfront-invalidation/index.js.map +1 -0
- package/dist/resources/cloudfront-invalidation/index.schema.d.ts +64 -0
- package/dist/resources/cloudfront-invalidation/index.schema.js +113 -0
- package/dist/resources/cloudfront-invalidation/index.schema.js.map +1 -0
- package/dist/resources/dynamodb/dynamodb.resource.js +16 -4
- package/dist/resources/dynamodb/dynamodb.resource.js.map +1 -1
- package/dist/resources/dynamodb-global/dynamodb-global.resource.js +1 -1
- package/dist/resources/dynamodb-global/dynamodb-global.resource.js.map +1 -1
- package/dist/resources/ecr/ecr-image.resource.js +4 -1
- package/dist/resources/ecr/ecr-image.resource.js.map +1 -1
- package/dist/resources/ecr-image-tag/actions/add-ecr-image-tag.resource.action.d.ts +1 -1
- package/dist/resources/ecr-image-tag/actions/add-ecr-image-tag.resource.action.js +15 -5
- package/dist/resources/ecr-image-tag/actions/add-ecr-image-tag.resource.action.js.map +1 -1
- package/dist/resources/ecr-image-tag/actions/delete-ecr-image-tag.resource.action.js +1 -1
- package/dist/resources/ecr-image-tag/actions/delete-ecr-image-tag.resource.action.js.map +1 -1
- package/dist/resources/ecr-image-tag/ecr-image-tag.resource.js +3 -1
- package/dist/resources/ecr-image-tag/ecr-image-tag.resource.js.map +1 -1
- package/dist/resources/ecr-image-tag/index.schema.d.ts +11 -0
- package/dist/resources/ecr-image-tag/index.schema.js +26 -11
- package/dist/resources/ecr-image-tag/index.schema.js.map +1 -1
- package/dist/resources/ecs-cluster/ecs-cluster.resource.js +3 -1
- package/dist/resources/ecs-cluster/ecs-cluster.resource.js.map +1 -1
- package/dist/resources/ecs-service/ecs-service.resource.js +0 -4
- package/dist/resources/ecs-service/ecs-service.resource.js.map +1 -1
- package/dist/resources/ecs-task-definition/ecs-task-definition.resource.d.ts +9 -6
- package/dist/resources/ecs-task-definition/ecs-task-definition.resource.js +18 -8
- package/dist/resources/ecs-task-definition/ecs-task-definition.resource.js.map +1 -1
- package/dist/resources/ecs-task-definition/index.schema.d.ts +5 -6
- package/dist/resources/ecs-task-definition/index.schema.js +9 -6
- package/dist/resources/ecs-task-definition/index.schema.js.map +1 -1
- package/dist/resources/efs/efs.resource.js +1 -1
- package/dist/resources/efs/efs.resource.js.map +1 -1
- package/dist/resources/efs-mount-target/index.schema.d.ts +1 -1
- package/dist/resources/efs-mount-target/index.schema.js +1 -1
- package/dist/resources/iam-role/iam-role.resource.d.ts +29 -2
- package/dist/resources/iam-role/iam-role.resource.js +163 -37
- package/dist/resources/iam-role/iam-role.resource.js.map +1 -1
- package/dist/resources/iam-role/index.schema.d.ts +45 -11
- package/dist/resources/iam-role/index.schema.js.map +1 -1
- package/dist/resources/iam-user/iam-user.resource.d.ts +23 -2
- package/dist/resources/iam-user/iam-user.resource.js +130 -27
- package/dist/resources/iam-user/iam-user.resource.js.map +1 -1
- package/dist/resources/iam-user/index.schema.d.ts +33 -5
- package/dist/resources/iam-user/index.schema.js.map +1 -1
- package/dist/resources/lambda-function/index.d.ts +1 -0
- package/dist/resources/lambda-function/index.js +2 -0
- package/dist/resources/lambda-function/index.js.map +1 -0
- package/dist/resources/lambda-function/index.schema.d.ts +75 -0
- package/dist/resources/lambda-function/index.schema.js +139 -0
- package/dist/resources/lambda-function/index.schema.js.map +1 -0
- package/dist/resources/lambda-function/lambda-function.resource.d.ts +50 -0
- package/dist/resources/lambda-function/lambda-function.resource.js +199 -0
- package/dist/resources/lambda-function/lambda-function.resource.js.map +1 -0
- package/dist/resources/nat-gateway/nat-gateway.resource.d.ts +2 -7
- package/dist/resources/nat-gateway/nat-gateway.resource.js +2 -2
- package/dist/resources/nat-gateway/nat-gateway.resource.js.map +1 -1
- package/dist/resources/s3-storage/index.schema.d.ts +118 -6
- package/dist/resources/s3-storage/index.schema.js +200 -7
- package/dist/resources/s3-storage/index.schema.js.map +1 -1
- package/dist/resources/s3-storage/s3-storage.resource.d.ts +25 -12
- package/dist/resources/s3-storage/s3-storage.resource.js +211 -110
- package/dist/resources/s3-storage/s3-storage.resource.js.map +1 -1
- package/dist/resources/s3-website/index.schema.d.ts +2 -0
- package/dist/resources/s3-website/index.schema.js +5 -0
- package/dist/resources/s3-website/index.schema.js.map +1 -1
- package/dist/resources/s3-website/s3-website.resource.d.ts +1 -11
- package/dist/resources/s3-website/s3-website.resource.js +6 -3
- package/dist/resources/s3-website/s3-website.resource.js.map +1 -1
- package/dist/resources/security-group/security-group.resource.js +13 -2
- package/dist/resources/security-group/security-group.resource.js.map +1 -1
- package/dist/services/docker/docker.service.d.ts +28 -7
- package/dist/services/docker/docker.service.js +53 -17
- package/dist/services/docker/docker.service.js.map +1 -1
- package/dist/utilities/aws-region/aws-region.utility.d.ts +15 -0
- package/dist/utilities/aws-region/aws-region.utility.js +19 -0
- package/dist/utilities/aws-region/aws-region.utility.js.map +1 -0
- package/dist/utilities/file/file.utility.d.ts +0 -4
- package/dist/utilities/file/file.utility.js +0 -6
- package/dist/utilities/file/file.utility.js.map +1 -1
- package/dist/utilities/retry/retry.utility.d.ts +5 -9
- package/dist/utilities/retry/retry.utility.js +0 -20
- package/dist/utilities/retry/retry.utility.js.map +1 -1
- package/dist/utilities/s3-file-source/s3-file-source.utility.d.ts +53 -0
- package/dist/utilities/s3-file-source/s3-file-source.utility.js +112 -0
- package/dist/utilities/s3-file-source/s3-file-source.utility.js.map +1 -0
- package/package.json +33 -10
- package/dist/anchors/aws-ecs/aws-ecs-server.anchor.d.ts +0 -12
- package/dist/anchors/aws-ecs/aws-ecs-server.anchor.js.map +0 -1
- package/dist/anchors/aws-ecs/aws-ecs-server.anchor.schema.d.ts +0 -27
- package/dist/anchors/aws-ecs/aws-ecs-server.anchor.schema.js.map +0 -1
- package/dist/anchors/aws-ecs/aws-ecs-task-definition.anchor.d.ts +0 -12
- package/dist/anchors/aws-ecs/aws-ecs-task-definition.anchor.js.map +0 -1
- package/dist/anchors/aws-ecs/aws-ecs-task-definition.anchor.schema.d.ts +0 -88
- package/dist/anchors/aws-ecs/aws-ecs-task-definition.anchor.schema.js +0 -138
- package/dist/anchors/aws-ecs/aws-ecs-task-definition.anchor.schema.js.map +0 -1
- package/dist/anchors/aws-iam/aws-iam-role.anchor.d.ts +0 -12
- package/dist/anchors/aws-iam/aws-iam-role.anchor.js.map +0 -1
- package/dist/anchors/aws-iam/aws-iam-role.anchor.schema.d.ts +0 -24
- package/dist/anchors/aws-iam/aws-iam-role.anchor.schema.js.map +0 -1
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-directory.anchor.d.ts +0 -12
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-directory.anchor.js.map +0 -1
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-directory.anchor.schema.js.map +0 -1
- package/dist/modules/deployment/aws-ecs-deployment/aws-ecs-deployment.module.d.ts +0 -41
- package/dist/modules/deployment/aws-ecs-deployment/aws-ecs-deployment.module.js +0 -61
- package/dist/modules/deployment/aws-ecs-deployment/aws-ecs-deployment.module.js.map +0 -1
- package/dist/modules/deployment/aws-ecs-deployment/index.d.ts +0 -1
- package/dist/modules/deployment/aws-ecs-deployment/index.js +0 -2
- package/dist/modules/deployment/aws-ecs-deployment/index.js.map +0 -1
- package/dist/modules/deployment/aws-ecs-deployment/index.schema.d.ts +0 -33
- package/dist/modules/deployment/aws-ecs-deployment/index.schema.js +0 -71
- package/dist/modules/deployment/aws-ecs-deployment/index.schema.js.map +0 -1
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/actions/add-aws-ecs-deployment.model.action.d.ts +0 -25
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/actions/add-aws-ecs-deployment.model.action.js.map +0 -1
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/aws-ecs-deployment.model.d.ts +0 -11
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/aws-ecs-deployment.model.js.map +0 -1
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/aws-ecs-deployment.schema.js +0 -7
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/aws-ecs-deployment.schema.js.map +0 -1
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/index.d.ts +0 -2
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/index.js +0 -3
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/index.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/aws-ecs-server.module.d.ts +0 -58
- package/dist/modules/server/aws-ecs-server/aws-ecs-server.module.js +0 -148
- package/dist/modules/server/aws-ecs-server/aws-ecs-server.module.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/index.d.ts +0 -1
- package/dist/modules/server/aws-ecs-server/index.js +0 -2
- package/dist/modules/server/aws-ecs-server/index.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/index.schema.d.ts +0 -83
- package/dist/modules/server/aws-ecs-server/index.schema.js +0 -153
- package/dist/modules/server/aws-ecs-server/index.schema.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/models/server/actions/add-aws-ecs-server.model.action.d.ts +0 -25
- package/dist/modules/server/aws-ecs-server/models/server/actions/add-aws-ecs-server.model.action.js +0 -71
- package/dist/modules/server/aws-ecs-server/models/server/actions/add-aws-ecs-server.model.action.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/models/server/aws-ecs-server.model.d.ts +0 -11
- package/dist/modules/server/aws-ecs-server/models/server/aws-ecs-server.model.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/models/server/aws-ecs-server.schema.js +0 -7
- package/dist/modules/server/aws-ecs-server/models/server/aws-ecs-server.schema.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/models/server/index.d.ts +0 -2
- package/dist/modules/server/aws-ecs-server/models/server/index.js +0 -3
- package/dist/modules/server/aws-ecs-server/models/server/index.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/actions/add-aws-ecs-server-s3-access.overlay.action.d.ts +0 -26
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/actions/add-aws-ecs-server-s3-access.overlay.action.js +0 -73
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/actions/add-aws-ecs-server-s3-access.overlay.action.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.overlay.d.ts +0 -19
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.overlay.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.schema.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/index.d.ts +0 -2
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/index.js +0 -3
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/index.js.map +0 -1
- package/dist/utilities/common/common.utility.d.ts +0 -13
- package/dist/utilities/common/common.utility.js +0 -28
- package/dist/utilities/common/common.utility.js.map +0 -1
- package/dist/utilities/hcl/hcl.utility.d.ts +0 -34
- package/dist/utilities/hcl/hcl.utility.js +0 -163
- package/dist/utilities/hcl/hcl.utility.js.map +0 -1
|
@@ -0,0 +1,693 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
var CloudFrontDistribution_1;
|
|
11
|
+
import { ATerraformResource, Diff, DiffAction, DiffUtility, Resource, ResourceError, StringUtility, } from '@quadnix/octo';
|
|
12
|
+
import { PolicyUtility } from '../../utilities/policy/policy.utility.js';
|
|
13
|
+
import { CloudFrontDistributionSchema, } from './index.schema.js';
|
|
14
|
+
/**
|
|
15
|
+
* The only region CloudFront reads a certificate from, whichever region the origins behind it live
|
|
16
|
+
* in. AWS rejects anything else at apply, so it is worth catching here.
|
|
17
|
+
*
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
const CLOUD_FRONT_GLOBAL_REGION = 'us-east-1';
|
|
21
|
+
/**
|
|
22
|
+
* The longest name AWS accepts for an origin access control.
|
|
23
|
+
*
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
const ORIGIN_ACCESS_CONTROL_NAME_MAX_LENGTH = 64;
|
|
27
|
+
/**
|
|
28
|
+
* What an unset optional field means at render time.
|
|
29
|
+
*
|
|
30
|
+
* A schema default only fires for a value octo instantiated through the schema, and the nested
|
|
31
|
+
* members of `properties` are plain objects a module author wrote by hand. So the renderer supplies
|
|
32
|
+
* its own values rather than trusting a default that would never run - otherwise a policy
|
|
33
|
+
* declared as `{ name: 'x' }`, which the schema says is legal, renders as `undefined`.
|
|
34
|
+
*
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
const RENDER_DEFAULTS = {
|
|
38
|
+
behavior: {
|
|
39
|
+
allowedMethods: ['GET', 'HEAD'],
|
|
40
|
+
cachedMethods: ['GET', 'HEAD'],
|
|
41
|
+
compress: true,
|
|
42
|
+
functionAssociations: [],
|
|
43
|
+
viewerProtocolPolicy: 'redirect-to-https',
|
|
44
|
+
},
|
|
45
|
+
customErrorResponse: { errorCachingMinTtl: 10 },
|
|
46
|
+
origins: {
|
|
47
|
+
alb: {
|
|
48
|
+
http_port: 80,
|
|
49
|
+
https_port: 443,
|
|
50
|
+
origin_keepalive_timeout: 5,
|
|
51
|
+
origin_protocol_policy: 'http-only',
|
|
52
|
+
origin_read_timeout: 30,
|
|
53
|
+
// eslint-disable-next-line spellcheck/spell-checker
|
|
54
|
+
origin_ssl_protocols: ['TLSv1.2'],
|
|
55
|
+
},
|
|
56
|
+
lambda: {
|
|
57
|
+
http_port: 80,
|
|
58
|
+
https_port: 443,
|
|
59
|
+
origin_keepalive_timeout: 5,
|
|
60
|
+
origin_protocol_policy: 'https-only',
|
|
61
|
+
origin_read_timeout: 60,
|
|
62
|
+
// eslint-disable-next-line spellcheck/spell-checker
|
|
63
|
+
origin_ssl_protocols: ['TLSv1.2'],
|
|
64
|
+
},
|
|
65
|
+
options: { connectionAttempts: 3, connectionTimeout: 10, customHeaders: {} },
|
|
66
|
+
},
|
|
67
|
+
policies: {
|
|
68
|
+
cache: { defaultTtl: 86400, enableBrotli: true, enableGzip: true, maxTtl: 31536000, minTtl: 1 },
|
|
69
|
+
securityHeaders: { contentTypeOptions: true, frameOptions: 'SAMEORIGIN', strictTransportSecurityMaxAge: 31536000 },
|
|
70
|
+
valueSelection: { kind: 'none' },
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
let CloudFrontDistribution = CloudFrontDistribution_1 = class CloudFrontDistribution extends ATerraformResource {
|
|
77
|
+
/**
|
|
78
|
+
* A distribution is built with no parents. The functions and ALBs it serves are attached later,
|
|
79
|
+
* with `addLambdaOrigin()` and `addAlbOrigin()`, by the actions that find them.
|
|
80
|
+
*
|
|
81
|
+
* @internal
|
|
82
|
+
*/
|
|
83
|
+
constructor(resourceId, properties) {
|
|
84
|
+
super(resourceId, properties, []);
|
|
85
|
+
this.validateReferences();
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* How a policy reference is looked up once every policy has been emitted.
|
|
89
|
+
*
|
|
90
|
+
* @internal
|
|
91
|
+
*/
|
|
92
|
+
static policyKey(slot, reference) {
|
|
93
|
+
return `${slot}/${reference.kind}/${reference.name}`;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Attaches an ALB to the `alb` origin `originId`, making the ALB a parent of this distribution.
|
|
97
|
+
* The origin reads its host name off the ALB, which AWS assigns when the ALB is created, so the ALB
|
|
98
|
+
* has to exist first.
|
|
99
|
+
*
|
|
100
|
+
* The origin itself is declared with the distribution, since behaviors name it from the start.
|
|
101
|
+
* This method only supplies the ALB behind it.
|
|
102
|
+
*
|
|
103
|
+
* @internal
|
|
104
|
+
*/
|
|
105
|
+
addAlbOrigin(originId, alb) {
|
|
106
|
+
this.attachOriginParent(originId, 'alb', alb);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Attaches a Lambda function to the `lambda` origin `originId`, making the function a parent of
|
|
110
|
+
* this distribution. The origin reads its host name off the function's URL, which AWS assigns when
|
|
111
|
+
* the URL is created, so the function has to exist first.
|
|
112
|
+
*
|
|
113
|
+
* The origin itself is declared with the distribution, since behaviors name it from the start.
|
|
114
|
+
* This method only supplies the function behind it.
|
|
115
|
+
*
|
|
116
|
+
* CloudFront waits 60 seconds for the function to answer, so a function allowed to run longer is
|
|
117
|
+
* refused: CloudFront would give up on a request the function is still serving.
|
|
118
|
+
*
|
|
119
|
+
* @internal
|
|
120
|
+
*/
|
|
121
|
+
addLambdaOrigin(originId, lambdaFunction) {
|
|
122
|
+
const { functionName, timeoutInSeconds } = lambdaFunction.getSchemaInstanceInResourceAction().properties;
|
|
123
|
+
if (timeoutInSeconds > RENDER_DEFAULTS.origins.lambda.origin_read_timeout) {
|
|
124
|
+
throw new ResourceError(`Lambda function "${functionName}" times out after ${timeoutInSeconds} seconds, but CloudFront waits ${RENDER_DEFAULTS.origins.lambda.origin_read_timeout}!`, this);
|
|
125
|
+
}
|
|
126
|
+
this.attachOriginParent(originId, 'lambda', lambdaFunction);
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Nothing about a distribution is force-new. Origins, behaviors, aliases, the certificate, the WAF
|
|
130
|
+
* association - AWS edits all of them in place on a live distribution, so every change is an
|
|
131
|
+
* update. What is left is identity, and the distribution's name is already in the resource id, so
|
|
132
|
+
* only the account can move a distribution to being a different one.
|
|
133
|
+
*
|
|
134
|
+
* @internal
|
|
135
|
+
*/
|
|
136
|
+
async diffProperties(previous) {
|
|
137
|
+
if (previous.properties.awsAccountId !== this.properties.awsAccountId) {
|
|
138
|
+
return [
|
|
139
|
+
new Diff(this, DiffAction.REPLACE, 'resourceId', this.getContext(), 'a distribution belongs to one account; a change recreates it'),
|
|
140
|
+
];
|
|
141
|
+
}
|
|
142
|
+
if (!DiffUtility.isObjectDeepEquals(previous.properties, this.properties)) {
|
|
143
|
+
return [new Diff(this, DiffAction.UPDATE, 'properties', this.properties)];
|
|
144
|
+
}
|
|
145
|
+
return [];
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* @internal
|
|
149
|
+
*/
|
|
150
|
+
async toHCL(terraform) {
|
|
151
|
+
const distributionOctoResource = terraform.addOctoTerraformResource(this, {
|
|
152
|
+
provider: { accountId: this.properties.awsAccountId },
|
|
153
|
+
});
|
|
154
|
+
const providerRef = terraform.getProviderAliasRef(this.properties.awsAccountId);
|
|
155
|
+
const policyIdByReference = this.renderPolicies(terraform, distributionOctoResource, providerRef);
|
|
156
|
+
const originAccessControlIdByOriginId = this.renderOriginAccessControls(terraform, distributionOctoResource);
|
|
157
|
+
const distributionTFResource = distributionOctoResource.addTerraformResource('aws_cloudfront_distribution', `${this.resourceId}_distribution`, {
|
|
158
|
+
...(this.properties.aliases.length > 0 ? { aliases: this.properties.aliases } : {}),
|
|
159
|
+
comment: this.properties.comment,
|
|
160
|
+
...(this.properties.customErrorResponses.length > 0
|
|
161
|
+
? {
|
|
162
|
+
custom_error_response: this.properties.customErrorResponses.map((customErrorResponse) => ({
|
|
163
|
+
error_caching_min_ttl: customErrorResponse.errorCachingMinTtl ?? RENDER_DEFAULTS.customErrorResponse.errorCachingMinTtl,
|
|
164
|
+
error_code: customErrorResponse.errorCode,
|
|
165
|
+
response_code: customErrorResponse.responseCode,
|
|
166
|
+
response_page_path: customErrorResponse.responsePagePath,
|
|
167
|
+
})),
|
|
168
|
+
}
|
|
169
|
+
: {}),
|
|
170
|
+
default_cache_behavior: this.renderBehavior(this.getDefaultBehavior(), policyIdByReference),
|
|
171
|
+
...(this.properties.defaultRootObject ? { default_root_object: this.properties.defaultRootObject } : {}),
|
|
172
|
+
enabled: this.properties.enabled,
|
|
173
|
+
http_version: this.properties.httpVersion,
|
|
174
|
+
is_ipv6_enabled: true,
|
|
175
|
+
...(this.getOrderedBehaviors().length > 0
|
|
176
|
+
? {
|
|
177
|
+
ordered_cache_behavior: this.getOrderedBehaviors().map((behavior) => ({
|
|
178
|
+
...this.renderBehavior(behavior, policyIdByReference),
|
|
179
|
+
path_pattern: behavior.pathPattern,
|
|
180
|
+
})),
|
|
181
|
+
}
|
|
182
|
+
: {}),
|
|
183
|
+
origin: this.properties.origins.map((origin) => this.renderOrigin(terraform, origin, originAccessControlIdByOriginId)),
|
|
184
|
+
...(this.properties.originGroups.length > 0
|
|
185
|
+
? {
|
|
186
|
+
origin_group: this.properties.originGroups.map((originGroup) => ({
|
|
187
|
+
failover_criteria: { status_codes: originGroup.failoverStatusCodes },
|
|
188
|
+
member: [{ origin_id: originGroup.primaryOriginId }, { origin_id: originGroup.failoverOriginId }],
|
|
189
|
+
origin_id: originGroup.originGroupId,
|
|
190
|
+
})),
|
|
191
|
+
}
|
|
192
|
+
: {}),
|
|
193
|
+
price_class: this.properties.priceClass,
|
|
194
|
+
restrictions: {
|
|
195
|
+
geo_restriction: this.properties.geoRestriction.kind === 'none'
|
|
196
|
+
? { restriction_type: 'none' }
|
|
197
|
+
: {
|
|
198
|
+
locations: this.properties.geoRestriction.countries,
|
|
199
|
+
restriction_type: this.properties.geoRestriction.kind === 'allow' ? 'whitelist' : 'blacklist',
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
viewer_certificate: this.properties.viewerCertificate.kind === 'acm'
|
|
203
|
+
? {
|
|
204
|
+
acm_certificate_arn: this.properties.viewerCertificate.certificateArn,
|
|
205
|
+
minimum_protocol_version: this.properties.viewerCertificate.minimumProtocolVersion,
|
|
206
|
+
ssl_support_method: 'sni-only',
|
|
207
|
+
}
|
|
208
|
+
: { cloudfront_default_certificate: true },
|
|
209
|
+
});
|
|
210
|
+
distributionOctoResource.output({
|
|
211
|
+
Arn: terraform.raw(`${distributionTFResource.address}.arn`),
|
|
212
|
+
DistributionId: terraform.raw(`${distributionTFResource.address}.id`),
|
|
213
|
+
DomainName: terraform.raw(`${distributionTFResource.address}.domain_name`),
|
|
214
|
+
HostedZoneId: terraform.raw(`${distributionTFResource.address}.hosted_zone_id`),
|
|
215
|
+
});
|
|
216
|
+
if (Object.keys(this.tags).length > 0) {
|
|
217
|
+
distributionTFResource.attribute('tags', this.tags);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Makes the resource behind an `alb` or `lambda` origin a parent of this distribution, and records
|
|
222
|
+
* its resource id on the origin.
|
|
223
|
+
*
|
|
224
|
+
* @internal
|
|
225
|
+
*/
|
|
226
|
+
attachOriginParent(originId, kind, parent) {
|
|
227
|
+
const origin = this.properties.origins.find((o) => o.originId === originId);
|
|
228
|
+
if (origin?.kind.kind !== kind) {
|
|
229
|
+
throw new ResourceError(`No ${kind} origin "${originId}"!`, this);
|
|
230
|
+
}
|
|
231
|
+
const parentResourceId = parent.getActual().resourceId;
|
|
232
|
+
origin.kind.resourceId = parentResourceId;
|
|
233
|
+
if (this.parents.some((p) => p.getActual().resourceId === parentResourceId)) {
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
parent.addChild('resourceId', this, 'resourceId');
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Every managed policy a behavior names, paired with the slot it fills.
|
|
240
|
+
*
|
|
241
|
+
* @internal
|
|
242
|
+
*/
|
|
243
|
+
collectManagedPolicyReferences() {
|
|
244
|
+
const references = [];
|
|
245
|
+
for (const behavior of this.properties.behaviors) {
|
|
246
|
+
if (behavior.cachePolicy.kind === 'managed') {
|
|
247
|
+
references.push(['cache', behavior.cachePolicy]);
|
|
248
|
+
}
|
|
249
|
+
if (behavior.originRequestPolicy?.kind === 'managed') {
|
|
250
|
+
references.push(['originRequest', behavior.originRequestPolicy]);
|
|
251
|
+
}
|
|
252
|
+
if (behavior.responseHeadersPolicy?.kind === 'managed') {
|
|
253
|
+
references.push(['responseHeaders', behavior.responseHeadersPolicy]);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
return references;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* The behavior claiming everything no other behavior did.
|
|
260
|
+
*
|
|
261
|
+
* @internal
|
|
262
|
+
*/
|
|
263
|
+
getDefaultBehavior() {
|
|
264
|
+
return this.properties.behaviors.find((behavior) => !behavior.pathPattern);
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* The behaviors matched, in order, before the default one.
|
|
268
|
+
*
|
|
269
|
+
* @internal
|
|
270
|
+
*/
|
|
271
|
+
getOrderedBehaviors() {
|
|
272
|
+
return this.properties.behaviors.filter((behavior) => !!behavior.pathPattern);
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* The parent an origin reads its hostname from.
|
|
276
|
+
*
|
|
277
|
+
* @internal
|
|
278
|
+
*/
|
|
279
|
+
getOriginParent(origin) {
|
|
280
|
+
const { resourceId } = origin.kind;
|
|
281
|
+
const parent = this.parents.find((p) => p.getSchemaInstanceInResourceAction().resourceId === resourceId);
|
|
282
|
+
if (!parent) {
|
|
283
|
+
throw new ResourceError(`CloudFront origin "${origin.originId}" has nothing attached to it!`, this);
|
|
284
|
+
}
|
|
285
|
+
return parent;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* @internal
|
|
289
|
+
*/
|
|
290
|
+
renderBehavior(behavior, policyIdByReference) {
|
|
291
|
+
const functionAssociations = behavior.functionAssociations ?? RENDER_DEFAULTS.behavior.functionAssociations;
|
|
292
|
+
const cloudFrontFunctions = functionAssociations.filter((f) => f.kind === 'cloudfront-function');
|
|
293
|
+
const lambdaEdgeFunctions = functionAssociations.filter((f) => f.kind === 'lambda-edge');
|
|
294
|
+
return {
|
|
295
|
+
allowed_methods: behavior.allowedMethods ?? RENDER_DEFAULTS.behavior.allowedMethods,
|
|
296
|
+
cache_policy_id: policyIdByReference.get(CloudFrontDistribution_1.policyKey('cache', behavior.cachePolicy)),
|
|
297
|
+
cached_methods: behavior.cachedMethods ?? RENDER_DEFAULTS.behavior.cachedMethods,
|
|
298
|
+
compress: behavior.compress ?? RENDER_DEFAULTS.behavior.compress,
|
|
299
|
+
...(cloudFrontFunctions.length > 0
|
|
300
|
+
? {
|
|
301
|
+
function_association: cloudFrontFunctions.map((f) => ({
|
|
302
|
+
event_type: f.eventType,
|
|
303
|
+
function_arn: f.arn,
|
|
304
|
+
})),
|
|
305
|
+
}
|
|
306
|
+
: {}),
|
|
307
|
+
...(lambdaEdgeFunctions.length > 0
|
|
308
|
+
? {
|
|
309
|
+
lambda_function_association: lambdaEdgeFunctions.map((f) => ({
|
|
310
|
+
event_type: f.eventType,
|
|
311
|
+
lambda_arn: f.arn,
|
|
312
|
+
})),
|
|
313
|
+
}
|
|
314
|
+
: {}),
|
|
315
|
+
...(behavior.originRequestPolicy
|
|
316
|
+
? {
|
|
317
|
+
origin_request_policy_id: policyIdByReference.get(CloudFrontDistribution_1.policyKey('originRequest', behavior.originRequestPolicy)),
|
|
318
|
+
}
|
|
319
|
+
: {}),
|
|
320
|
+
...(behavior.responseHeadersPolicy
|
|
321
|
+
? {
|
|
322
|
+
response_headers_policy_id: policyIdByReference.get(CloudFrontDistribution_1.policyKey('responseHeaders', behavior.responseHeadersPolicy)),
|
|
323
|
+
}
|
|
324
|
+
: {}),
|
|
325
|
+
target_origin_id: behavior.targetOriginId,
|
|
326
|
+
viewer_protocol_policy: behavior.viewerProtocolPolicy ?? RENDER_DEFAULTS.behavior.viewerProtocolPolicy,
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* @internal
|
|
331
|
+
*/
|
|
332
|
+
renderOrigin(terraform, origin, originAccessControlIdByOriginId) {
|
|
333
|
+
const customHeaders = Object.entries(origin.customHeaders ?? RENDER_DEFAULTS.origins.options.customHeaders);
|
|
334
|
+
const kind = origin.kind;
|
|
335
|
+
let originSpec;
|
|
336
|
+
if (kind.kind === 's3') {
|
|
337
|
+
// An S3 origin's hostname is written down rather than referenced, because the bucket's own
|
|
338
|
+
// policy already references this distribution's ARN. Referencing it back would close a cycle
|
|
339
|
+
// between the two folders, which terragrunt cannot order.
|
|
340
|
+
originSpec = {
|
|
341
|
+
domain_name: `${kind.bucketName}.s3.${kind.bucketRegion}.amazonaws.com`,
|
|
342
|
+
origin_access_control_id: originAccessControlIdByOriginId.get(origin.originId),
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
else if (kind.kind === 'lambda') {
|
|
346
|
+
originSpec = {
|
|
347
|
+
custom_origin_config: RENDER_DEFAULTS.origins.lambda,
|
|
348
|
+
domain_name: terraform.getRef(this.getOriginParent(origin), 'FunctionUrlDomainName'),
|
|
349
|
+
origin_access_control_id: originAccessControlIdByOriginId.get(origin.originId),
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
else if (kind.kind === 'alb') {
|
|
353
|
+
originSpec = {
|
|
354
|
+
custom_origin_config: RENDER_DEFAULTS.origins.alb,
|
|
355
|
+
domain_name: terraform.getRef(this.getOriginParent(origin), 'DNSName'),
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
else {
|
|
359
|
+
originSpec = {
|
|
360
|
+
custom_origin_config: {
|
|
361
|
+
http_port: kind.httpPort,
|
|
362
|
+
https_port: kind.httpsPort,
|
|
363
|
+
origin_keepalive_timeout: kind.keepaliveTimeout,
|
|
364
|
+
origin_protocol_policy: kind.originProtocolPolicy,
|
|
365
|
+
origin_read_timeout: kind.readTimeout,
|
|
366
|
+
origin_ssl_protocols: kind.sslProtocols,
|
|
367
|
+
},
|
|
368
|
+
domain_name: kind.domainName,
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
return {
|
|
372
|
+
connection_attempts: origin.connectionAttempts ?? RENDER_DEFAULTS.origins.options.connectionAttempts,
|
|
373
|
+
connection_timeout: origin.connectionTimeout ?? RENDER_DEFAULTS.origins.options.connectionTimeout,
|
|
374
|
+
...(customHeaders.length > 0 ? { custom_header: customHeaders.map(([name, value]) => ({ name, value })) } : {}),
|
|
375
|
+
...(originSpec.custom_origin_config ? { custom_origin_config: originSpec.custom_origin_config } : {}),
|
|
376
|
+
...(originSpec.origin_access_control_id ? { origin_access_control_id: originSpec.origin_access_control_id } : {}),
|
|
377
|
+
domain_name: originSpec.domain_name,
|
|
378
|
+
origin_id: origin.originId,
|
|
379
|
+
...(origin.originPath ? { origin_path: origin.originPath } : {}),
|
|
380
|
+
};
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* One origin access control per S3 or Lambda origin. It is what lets the distribution sign its
|
|
384
|
+
* requests to a bucket or a function URL that admits nothing else.
|
|
385
|
+
*
|
|
386
|
+
* @internal
|
|
387
|
+
*/
|
|
388
|
+
renderOriginAccessControls(terraform, distributionOctoResource) {
|
|
389
|
+
const originAccessControlIdByOriginId = new Map();
|
|
390
|
+
for (const origin of this.properties.origins) {
|
|
391
|
+
if (origin.kind.kind !== 's3' && origin.kind.kind !== 'lambda') {
|
|
392
|
+
continue;
|
|
393
|
+
}
|
|
394
|
+
const label = PolicyUtility.getSafeSid(origin.originId);
|
|
395
|
+
const originAccessControlTFResource = distributionOctoResource.addTerraformResource('aws_cloudfront_origin_access_control', `${this.resourceId}_origin_access_control_${label}`, {
|
|
396
|
+
name: StringUtility.boundedName(`${this.localResourceId}-${origin.originId}`, ORIGIN_ACCESS_CONTROL_NAME_MAX_LENGTH),
|
|
397
|
+
origin_access_control_origin_type: origin.kind.kind,
|
|
398
|
+
signing_behavior: 'always',
|
|
399
|
+
signing_protocol: 'sigv4',
|
|
400
|
+
});
|
|
401
|
+
originAccessControlIdByOriginId.set(origin.originId, terraform.raw(`${originAccessControlTFResource.address}.id`));
|
|
402
|
+
}
|
|
403
|
+
return originAccessControlIdByOriginId;
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* Emits every policy the behaviors reach for, and returns the id expression each reference
|
|
407
|
+
* resolves to.
|
|
408
|
+
*
|
|
409
|
+
* A managed policy is read by name through a `data` block, so the id AWS assigns is never written
|
|
410
|
+
* down here. A custom policy is created, and only the behaviors of this distribution can name it.
|
|
411
|
+
*
|
|
412
|
+
* @internal
|
|
413
|
+
*/
|
|
414
|
+
renderPolicies(terraform, distributionOctoResource, providerRef) {
|
|
415
|
+
const policyIdByReference = new Map();
|
|
416
|
+
for (const cachePolicy of this.properties.cachePolicies) {
|
|
417
|
+
const tfResource = distributionOctoResource.addTerraformResource('aws_cloudfront_cache_policy', `${this.resourceId}_cache_policy_${PolicyUtility.getSafeSid(cachePolicy.name)}`, {
|
|
418
|
+
default_ttl: cachePolicy.defaultTtl ?? RENDER_DEFAULTS.policies.cache.defaultTtl,
|
|
419
|
+
max_ttl: cachePolicy.maxTtl ?? RENDER_DEFAULTS.policies.cache.maxTtl,
|
|
420
|
+
min_ttl: cachePolicy.minTtl ?? RENDER_DEFAULTS.policies.cache.minTtl,
|
|
421
|
+
name: cachePolicy.name,
|
|
422
|
+
parameters_in_cache_key_and_forwarded_to_origin: {
|
|
423
|
+
cookies_config: renderCookiesConfig(cachePolicy.cookies),
|
|
424
|
+
enable_accept_encoding_brotli: cachePolicy.enableBrotli ?? RENDER_DEFAULTS.policies.cache.enableBrotli,
|
|
425
|
+
enable_accept_encoding_gzip: cachePolicy.enableGzip ?? RENDER_DEFAULTS.policies.cache.enableGzip,
|
|
426
|
+
headers_config: renderHeadersConfig(cachePolicy.headers),
|
|
427
|
+
query_strings_config: renderQueryStringsConfig(cachePolicy.queryStrings),
|
|
428
|
+
},
|
|
429
|
+
});
|
|
430
|
+
policyIdByReference.set(CloudFrontDistribution_1.policyKey('cache', { kind: 'custom', name: cachePolicy.name }), terraform.raw(`${tfResource.address}.id`));
|
|
431
|
+
}
|
|
432
|
+
for (const originRequestPolicy of this.properties.originRequestPolicies) {
|
|
433
|
+
const tfResource = distributionOctoResource.addTerraformResource('aws_cloudfront_origin_request_policy', `${this.resourceId}_origin_request_policy_${PolicyUtility.getSafeSid(originRequestPolicy.name)}`, {
|
|
434
|
+
cookies_config: renderCookiesConfig(originRequestPolicy.cookies),
|
|
435
|
+
headers_config: renderHeadersConfig(originRequestPolicy.headers),
|
|
436
|
+
name: originRequestPolicy.name,
|
|
437
|
+
query_strings_config: renderQueryStringsConfig(originRequestPolicy.queryStrings),
|
|
438
|
+
});
|
|
439
|
+
policyIdByReference.set(CloudFrontDistribution_1.policyKey('originRequest', { kind: 'custom', name: originRequestPolicy.name }), terraform.raw(`${tfResource.address}.id`));
|
|
440
|
+
}
|
|
441
|
+
for (const responseHeadersPolicy of this.properties.responseHeadersPolicies) {
|
|
442
|
+
const tfResource = distributionOctoResource.addTerraformResource('aws_cloudfront_response_headers_policy', `${this.resourceId}_response_headers_policy_${PolicyUtility.getSafeSid(responseHeadersPolicy.name)}`, renderResponseHeadersPolicy(responseHeadersPolicy));
|
|
443
|
+
policyIdByReference.set(CloudFrontDistribution_1.policyKey('responseHeaders', { kind: 'custom', name: responseHeadersPolicy.name }), terraform.raw(`${tfResource.address}.id`));
|
|
444
|
+
}
|
|
445
|
+
const managedDataTypes = {
|
|
446
|
+
cache: 'aws_cloudfront_cache_policy',
|
|
447
|
+
originRequest: 'aws_cloudfront_origin_request_policy',
|
|
448
|
+
responseHeaders: 'aws_cloudfront_response_headers_policy',
|
|
449
|
+
};
|
|
450
|
+
for (const [slot, reference] of this.collectManagedPolicyReferences()) {
|
|
451
|
+
const key = CloudFrontDistribution_1.policyKey(slot, reference);
|
|
452
|
+
if (policyIdByReference.has(key)) {
|
|
453
|
+
continue;
|
|
454
|
+
}
|
|
455
|
+
const dataSource = terraform.addTerraformData(managedDataTypes[slot], `${this.resourceId}_managed_${slot}_${PolicyUtility.getSafeSid(reference.name)}`, { name: reference.name, provider: providerRef });
|
|
456
|
+
policyIdByReference.set(key, dataSource.ref('id'));
|
|
457
|
+
}
|
|
458
|
+
return policyIdByReference;
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* Everything a distribution says about itself that terraform would only reject later, or that AWS
|
|
462
|
+
* would accept and then serve wrongly.
|
|
463
|
+
*
|
|
464
|
+
* @internal
|
|
465
|
+
* @throws If ids collide or do not resolve, if an alias has no certificate to serve it, if the
|
|
466
|
+
* certificate is not one CloudFront can read, if a behavior caches a method it does not allow, or if
|
|
467
|
+
* a CloudFront Function is bound to an event it cannot run on.
|
|
468
|
+
*/
|
|
469
|
+
validateReferences() {
|
|
470
|
+
const originIds = this.properties.origins.map((origin) => origin.originId);
|
|
471
|
+
const originGroupIds = this.properties.originGroups.map((originGroup) => originGroup.originGroupId);
|
|
472
|
+
const targetIds = [...originIds, ...originGroupIds];
|
|
473
|
+
// Behaviors and origin groups name origins out of one namespace, so a duplicate would silently
|
|
474
|
+
// resolve to whichever came first.
|
|
475
|
+
const duplicateIds = targetIds.filter((id, index) => targetIds.indexOf(id) !== index);
|
|
476
|
+
if (duplicateIds.length > 0) {
|
|
477
|
+
throw new Error(`CloudFront origin id "${duplicateIds[0]}" is declared more than once!`);
|
|
478
|
+
}
|
|
479
|
+
const s3BucketNames = this.properties.origins
|
|
480
|
+
.filter((origin) => origin.kind.kind === 's3')
|
|
481
|
+
.map((origin) => origin.kind.bucketName);
|
|
482
|
+
const duplicateBucketNames = s3BucketNames.filter((name, index) => s3BucketNames.indexOf(name) !== index);
|
|
483
|
+
if (duplicateBucketNames.length > 0) {
|
|
484
|
+
throw new Error(`CloudFront bucket "${duplicateBucketNames[0]}" is claimed by more than one origin!`);
|
|
485
|
+
}
|
|
486
|
+
// An S3 origin is reached over HTTPS at `<bucket>.s3.<region>.amazonaws.com`, and the certificate
|
|
487
|
+
// AWS serves there covers one label in front of `s3`. A bucket named with a dot is accepted by
|
|
488
|
+
// every step up to the first request, which then fails the handshake and answers 502.
|
|
489
|
+
const dottedBucketName = s3BucketNames.find((name) => name.includes('.'));
|
|
490
|
+
if (dottedBucketName) {
|
|
491
|
+
throw new Error(`CloudFront cannot reach an S3 origin whose bucket name holds a dot, "${dottedBucketName}"!`);
|
|
492
|
+
}
|
|
493
|
+
for (const originGroup of this.properties.originGroups) {
|
|
494
|
+
for (const memberId of [originGroup.primaryOriginId, originGroup.failoverOriginId]) {
|
|
495
|
+
if (!originIds.includes(memberId)) {
|
|
496
|
+
throw new Error(`CloudFront origin group "${originGroup.originGroupId}" names unknown origin "${memberId}"!`);
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
const defaultBehaviors = this.properties.behaviors.filter((behavior) => !behavior.pathPattern);
|
|
501
|
+
if (defaultBehaviors.length !== 1) {
|
|
502
|
+
throw new Error('A CloudFront distribution needs exactly one behavior without a path pattern!');
|
|
503
|
+
}
|
|
504
|
+
const customPolicyNames = {
|
|
505
|
+
cache: this.properties.cachePolicies.map((p) => p.name),
|
|
506
|
+
originRequest: this.properties.originRequestPolicies.map((p) => p.name),
|
|
507
|
+
responseHeaders: this.properties.responseHeadersPolicies.map((p) => p.name),
|
|
508
|
+
};
|
|
509
|
+
for (const behavior of this.properties.behaviors) {
|
|
510
|
+
if (!targetIds.includes(behavior.targetOriginId)) {
|
|
511
|
+
throw new Error(`CloudFront behavior names unknown origin "${behavior.targetOriginId}"!`);
|
|
512
|
+
}
|
|
513
|
+
const referenced = [
|
|
514
|
+
['cache', behavior.cachePolicy],
|
|
515
|
+
['originRequest', behavior.originRequestPolicy],
|
|
516
|
+
['responseHeaders', behavior.responseHeadersPolicy],
|
|
517
|
+
];
|
|
518
|
+
for (const [slot, reference] of referenced) {
|
|
519
|
+
if (reference?.kind === 'custom' && !customPolicyNames[slot].includes(reference.name)) {
|
|
520
|
+
throw new Error(`CloudFront behavior names unknown custom policy "${reference.name}"!`);
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
const allowedMethods = behavior.allowedMethods ?? RENDER_DEFAULTS.behavior.allowedMethods;
|
|
524
|
+
const cachedMethods = behavior.cachedMethods ?? RENDER_DEFAULTS.behavior.cachedMethods;
|
|
525
|
+
if (!cachedMethods.every((method) => allowedMethods.includes(method))) {
|
|
526
|
+
throw new Error('CloudFront cannot cache a method it does not allow!');
|
|
527
|
+
}
|
|
528
|
+
for (const functionAssociation of behavior.functionAssociations ?? []) {
|
|
529
|
+
if (functionAssociation.kind === 'cloudfront-function' &&
|
|
530
|
+
!functionAssociation.eventType.startsWith('viewer-')) {
|
|
531
|
+
throw new Error(`A CloudFront Function cannot run on "${functionAssociation.eventType}"! Use Lambda@Edge instead.`);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
if (this.properties.aliases.length > 0 && this.properties.viewerCertificate.kind !== 'acm') {
|
|
536
|
+
throw new Error('A CloudFront alias needs a certificate covering it!');
|
|
537
|
+
}
|
|
538
|
+
// CloudFront reads a certificate from us-east-1 alone, wherever the origins live. Left to AWS,
|
|
539
|
+
// this surfaces as a failed apply rather than as anything a caller can act on.
|
|
540
|
+
if (this.properties.viewerCertificate.kind === 'acm' &&
|
|
541
|
+
this.properties.viewerCertificate.certificateArn.split(':')[3] !== CLOUD_FRONT_GLOBAL_REGION) {
|
|
542
|
+
throw new Error(`CloudFront only reads a certificate from "${CLOUD_FRONT_GLOBAL_REGION}"!`);
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
};
|
|
546
|
+
CloudFrontDistribution = CloudFrontDistribution_1 = __decorate([
|
|
547
|
+
Resource('@octo', 'cloudfront-distribution', CloudFrontDistributionSchema, {
|
|
548
|
+
uniqueProperties: [
|
|
549
|
+
{ path: 'cachePolicies[].name', within: ['awsAccountId'] },
|
|
550
|
+
{ path: 'originRequestPolicies[].name', within: ['awsAccountId'] },
|
|
551
|
+
{ path: 'responseHeadersPolicies[].name', within: ['awsAccountId'] },
|
|
552
|
+
],
|
|
553
|
+
}),
|
|
554
|
+
__metadata("design:paramtypes", [String, Object])
|
|
555
|
+
], CloudFrontDistribution);
|
|
556
|
+
export { CloudFrontDistribution };
|
|
557
|
+
/**
|
|
558
|
+
* @internal
|
|
559
|
+
*/
|
|
560
|
+
function renderCookiesConfig(input) {
|
|
561
|
+
const selection = input ?? RENDER_DEFAULTS.policies.valueSelection;
|
|
562
|
+
return {
|
|
563
|
+
cookie_behavior: cookieBehavior(selection),
|
|
564
|
+
...(selection.kind === 'allowList' ? { cookies: { items: selection.values } } : {}),
|
|
565
|
+
};
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* @internal
|
|
569
|
+
*/
|
|
570
|
+
function renderHeadersConfig(input) {
|
|
571
|
+
const selection = input ?? RENDER_DEFAULTS.policies.valueSelection;
|
|
572
|
+
return {
|
|
573
|
+
header_behavior: headerBehavior(selection),
|
|
574
|
+
...(selection.kind === 'allowList' ? { headers: { items: selection.values } } : {}),
|
|
575
|
+
};
|
|
576
|
+
}
|
|
577
|
+
/**
|
|
578
|
+
* @internal
|
|
579
|
+
*/
|
|
580
|
+
function renderQueryStringsConfig(input) {
|
|
581
|
+
const selection = input ?? RENDER_DEFAULTS.policies.valueSelection;
|
|
582
|
+
return {
|
|
583
|
+
query_string_behavior: cookieBehavior(selection),
|
|
584
|
+
...(selection.kind === 'allowList' ? { query_strings: { items: selection.values } } : {}),
|
|
585
|
+
};
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* Cookies and query strings share a vocabulary; headers do not, because only a header selection can
|
|
589
|
+
* mean "everything the viewer sent".
|
|
590
|
+
*
|
|
591
|
+
* @internal
|
|
592
|
+
*/
|
|
593
|
+
function cookieBehavior(selection) {
|
|
594
|
+
switch (selection.kind) {
|
|
595
|
+
case 'all':
|
|
596
|
+
case 'allViewerAndWhitelistCloudFront':
|
|
597
|
+
return 'all';
|
|
598
|
+
case 'allowList':
|
|
599
|
+
return 'whitelist';
|
|
600
|
+
default:
|
|
601
|
+
return 'none';
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
/**
|
|
605
|
+
* @internal
|
|
606
|
+
*/
|
|
607
|
+
function headerBehavior(selection) {
|
|
608
|
+
switch (selection.kind) {
|
|
609
|
+
case 'all':
|
|
610
|
+
return 'allViewer';
|
|
611
|
+
case 'allViewerAndWhitelistCloudFront':
|
|
612
|
+
return 'allViewerAndWhitelistCloudFront';
|
|
613
|
+
case 'allowList':
|
|
614
|
+
return 'whitelist';
|
|
615
|
+
default:
|
|
616
|
+
return 'none';
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
/**
|
|
620
|
+
* @internal
|
|
621
|
+
*/
|
|
622
|
+
function renderResponseHeadersPolicy(policy) {
|
|
623
|
+
const securityHeaders = policy.securityHeaders;
|
|
624
|
+
return {
|
|
625
|
+
...(policy.cors
|
|
626
|
+
? {
|
|
627
|
+
cors_config: {
|
|
628
|
+
access_control_allow_credentials: policy.cors.allowCredentials,
|
|
629
|
+
access_control_allow_headers: { items: policy.cors.allowHeaders },
|
|
630
|
+
access_control_allow_methods: { items: policy.cors.allowMethods },
|
|
631
|
+
access_control_allow_origins: { items: policy.cors.allowOrigins },
|
|
632
|
+
access_control_max_age_sec: policy.cors.maxAgeSeconds,
|
|
633
|
+
origin_override: true,
|
|
634
|
+
},
|
|
635
|
+
}
|
|
636
|
+
: {}),
|
|
637
|
+
...((policy.customHeaders ?? []).length > 0
|
|
638
|
+
? {
|
|
639
|
+
custom_headers_config: {
|
|
640
|
+
items: (policy.customHeaders ?? []).map((h) => ({
|
|
641
|
+
header: h.header,
|
|
642
|
+
override: h.override,
|
|
643
|
+
value: h.value,
|
|
644
|
+
})),
|
|
645
|
+
},
|
|
646
|
+
}
|
|
647
|
+
: {}),
|
|
648
|
+
name: policy.name,
|
|
649
|
+
...((policy.removeHeaders ?? []).length > 0
|
|
650
|
+
? { remove_headers_config: { items: (policy.removeHeaders ?? []).map((header) => ({ header })) } }
|
|
651
|
+
: {}),
|
|
652
|
+
...(securityHeaders
|
|
653
|
+
? {
|
|
654
|
+
security_headers_config: {
|
|
655
|
+
...(securityHeaders.contentSecurityPolicy
|
|
656
|
+
? {
|
|
657
|
+
content_security_policy: {
|
|
658
|
+
content_security_policy: securityHeaders.contentSecurityPolicy,
|
|
659
|
+
override: true,
|
|
660
|
+
},
|
|
661
|
+
}
|
|
662
|
+
: {}),
|
|
663
|
+
...((securityHeaders.contentTypeOptions ?? RENDER_DEFAULTS.policies.securityHeaders.contentTypeOptions)
|
|
664
|
+
? { content_type_options: { override: true } }
|
|
665
|
+
: {}),
|
|
666
|
+
...(securityHeaders.frameOptions === null
|
|
667
|
+
? {}
|
|
668
|
+
: {
|
|
669
|
+
frame_options: {
|
|
670
|
+
frame_option: securityHeaders.frameOptions ?? RENDER_DEFAULTS.policies.securityHeaders.frameOptions,
|
|
671
|
+
override: true,
|
|
672
|
+
},
|
|
673
|
+
}),
|
|
674
|
+
...(securityHeaders.referrerPolicy
|
|
675
|
+
? { referrer_policy: { override: true, referrer_policy: securityHeaders.referrerPolicy } }
|
|
676
|
+
: {}),
|
|
677
|
+
...(securityHeaders.strictTransportSecurityMaxAge !== null
|
|
678
|
+
? {
|
|
679
|
+
strict_transport_security: {
|
|
680
|
+
access_control_max_age_sec: securityHeaders.strictTransportSecurityMaxAge ??
|
|
681
|
+
RENDER_DEFAULTS.policies.securityHeaders.strictTransportSecurityMaxAge,
|
|
682
|
+
include_subdomains: true,
|
|
683
|
+
override: true,
|
|
684
|
+
preload: false,
|
|
685
|
+
},
|
|
686
|
+
}
|
|
687
|
+
: {}),
|
|
688
|
+
},
|
|
689
|
+
}
|
|
690
|
+
: {}),
|
|
691
|
+
};
|
|
692
|
+
}
|
|
693
|
+
//# sourceMappingURL=cloudfront-distribution.resource.js.map
|