@gradientedge/cdk-utils 6.3.1 → 6.6.0
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/dist/src/lib/construct/static-site/main.d.ts +6 -1
- package/dist/src/lib/construct/static-site/main.js +6 -0
- package/dist/src/lib/manager/aws/cloudfront-manager.d.ts +0 -2
- package/dist/src/lib/manager/aws/cloudfront-manager.js +0 -2
- package/dist/src/lib/manager/aws/lambda-manager.js +2 -0
- package/package.json +9 -9
- package/src/lib/construct/static-site/main.ts +8 -1
- package/src/lib/manager/aws/cloudfront-manager.ts +0 -2
- package/src/lib/manager/aws/lambda-manager.ts +2 -0
|
@@ -33,7 +33,7 @@ export declare class StaticSite extends CommonConstruct {
|
|
|
33
33
|
siteARecord: route53.ARecord;
|
|
34
34
|
siteBucket: s3.IBucket;
|
|
35
35
|
siteOrigin: origins.S3Origin;
|
|
36
|
-
siteDistribution: cloudfront.
|
|
36
|
+
siteDistribution: cloudfront.IDistribution;
|
|
37
37
|
siteLogBucket: s3.IBucket;
|
|
38
38
|
siteOriginAccessIdentity: cloudfront.OriginAccessIdentity;
|
|
39
39
|
siteCloudfrontFunction: cloudfront.Function;
|
|
@@ -75,6 +75,11 @@ export declare class StaticSite extends CommonConstruct {
|
|
|
75
75
|
* @protected
|
|
76
76
|
*/
|
|
77
77
|
protected resolveSiteFunctionAssociations(): void;
|
|
78
|
+
/**
|
|
79
|
+
* @summary Method to create a site origin access identity
|
|
80
|
+
* @protected
|
|
81
|
+
*/
|
|
82
|
+
protected createSiteOriginAccessIdentity(): void;
|
|
78
83
|
/**
|
|
79
84
|
* @summary Method to create a site cloudfront distribution
|
|
80
85
|
* @protected
|
|
@@ -78,6 +78,7 @@ class StaticSite extends common_1.CommonConstruct {
|
|
|
78
78
|
this.createSiteOrigin();
|
|
79
79
|
this.createSiteCloudfrontFunction();
|
|
80
80
|
this.resolveSiteFunctionAssociations();
|
|
81
|
+
this.createSiteOriginAccessIdentity();
|
|
81
82
|
this.createSiteDistribution();
|
|
82
83
|
this.createSiteRouteAssets();
|
|
83
84
|
this.deploySite();
|
|
@@ -142,6 +143,11 @@ class StaticSite extends common_1.CommonConstruct {
|
|
|
142
143
|
];
|
|
143
144
|
}
|
|
144
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* @summary Method to create a site origin access identity
|
|
148
|
+
* @protected
|
|
149
|
+
*/
|
|
150
|
+
createSiteOriginAccessIdentity() { }
|
|
145
151
|
/**
|
|
146
152
|
* @summary Method to create a site cloudfront distribution
|
|
147
153
|
* @protected
|
|
@@ -38,8 +38,6 @@ import * as types from '../../types';
|
|
|
38
38
|
export declare class CloudFrontManager {
|
|
39
39
|
createOriginAccessIdentity(id: string, scope: common.CommonConstruct, accessBucket?: s3.IBucket): cdk.aws_cloudfront.OriginAccessIdentity;
|
|
40
40
|
/**
|
|
41
|
-
* @deprecated Use `createDistributionWithS3Origin` instead
|
|
42
|
-
*
|
|
43
41
|
* @summary Method to create a cloudfront distribution
|
|
44
42
|
* @param {string} id scoped id of the resource
|
|
45
43
|
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
@@ -67,8 +67,6 @@ class CloudFrontManager {
|
|
|
67
67
|
return oai;
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
|
-
* @deprecated Use `createDistributionWithS3Origin` instead
|
|
71
|
-
*
|
|
72
70
|
* @summary Method to create a cloudfront distribution
|
|
73
71
|
* @param {string} id scoped id of the resource
|
|
74
72
|
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradientedge/cdk-utils",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.6.0",
|
|
4
4
|
"description": "Utilities for AWS CDK provisioning",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"engines": {
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@types/lodash": "^4.14.
|
|
49
|
-
"@types/node": "^18.7.
|
|
48
|
+
"@types/lodash": "^4.14.184",
|
|
49
|
+
"@types/node": "^18.7.9",
|
|
50
50
|
"app-root-path": "^3.1.0",
|
|
51
|
-
"aws-cdk-lib": "^2.
|
|
52
|
-
"aws-sdk": "^2.
|
|
53
|
-
"constructs": "^10.1.
|
|
51
|
+
"aws-cdk-lib": "^2.38.1",
|
|
52
|
+
"aws-sdk": "^2.1199.0",
|
|
53
|
+
"constructs": "^10.1.83",
|
|
54
54
|
"lodash": "^4.17.21",
|
|
55
55
|
"moment": "^2.29.4",
|
|
56
56
|
"nconf": "^0.12.0",
|
|
@@ -78,11 +78,11 @@
|
|
|
78
78
|
"jsdoc": "^3.6.11",
|
|
79
79
|
"jsdoc-babel": "^0.5.0",
|
|
80
80
|
"jsdoc-mermaid": "^1.0.0",
|
|
81
|
-
"lerna": "^5.4.
|
|
81
|
+
"lerna": "^5.4.3",
|
|
82
82
|
"prettier": "^2.7.1",
|
|
83
|
-
"prettier-plugin-organize-imports": "^3.0
|
|
83
|
+
"prettier-plugin-organize-imports": "^3.1.0",
|
|
84
84
|
"rimraf": "^3.0.2",
|
|
85
|
-
"semantic-release": "^19.0.
|
|
85
|
+
"semantic-release": "^19.0.4",
|
|
86
86
|
"ts-jest": "^28.0.8",
|
|
87
87
|
"ts-node": "^10.9.1",
|
|
88
88
|
"typescript": "4.7.4"
|
|
@@ -37,7 +37,7 @@ export class StaticSite extends CommonConstruct {
|
|
|
37
37
|
siteARecord: route53.ARecord
|
|
38
38
|
siteBucket: s3.IBucket
|
|
39
39
|
siteOrigin: origins.S3Origin
|
|
40
|
-
siteDistribution: cloudfront.
|
|
40
|
+
siteDistribution: cloudfront.IDistribution
|
|
41
41
|
siteLogBucket: s3.IBucket
|
|
42
42
|
siteOriginAccessIdentity: cloudfront.OriginAccessIdentity
|
|
43
43
|
siteCloudfrontFunction: cloudfront.Function
|
|
@@ -62,6 +62,7 @@ export class StaticSite extends CommonConstruct {
|
|
|
62
62
|
this.createSiteOrigin()
|
|
63
63
|
this.createSiteCloudfrontFunction()
|
|
64
64
|
this.resolveSiteFunctionAssociations()
|
|
65
|
+
this.createSiteOriginAccessIdentity()
|
|
65
66
|
this.createSiteDistribution()
|
|
66
67
|
this.createSiteRouteAssets()
|
|
67
68
|
this.deploySite()
|
|
@@ -153,6 +154,12 @@ export class StaticSite extends CommonConstruct {
|
|
|
153
154
|
}
|
|
154
155
|
}
|
|
155
156
|
|
|
157
|
+
/**
|
|
158
|
+
* @summary Method to create a site origin access identity
|
|
159
|
+
* @protected
|
|
160
|
+
*/
|
|
161
|
+
protected createSiteOriginAccessIdentity() {}
|
|
162
|
+
|
|
156
163
|
/**
|
|
157
164
|
* @summary Method to create a site cloudfront distribution
|
|
158
165
|
* @protected
|
|
@@ -50,8 +50,6 @@ export class CloudFrontManager {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
* @deprecated Use `createDistributionWithS3Origin` instead
|
|
54
|
-
*
|
|
55
53
|
* @summary Method to create a cloudfront distribution
|
|
56
54
|
* @param {string} id scoped id of the resource
|
|
57
55
|
* @param {common.CommonConstruct} scope scope in which this resource is defined
|