@byaga/cdk-patterns 0.9.0 → 0.9.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/lib/IStackArguments.d.ts
CHANGED
package/lib/SsmParameter.d.ts
CHANGED
package/lib/SsmParameter.js
CHANGED
@@ -12,7 +12,7 @@ class SsmParameter {
|
|
12
12
|
constructor(stack, name, options) {
|
13
13
|
if (name[0] !== '/')
|
14
14
|
name = '/' + name;
|
15
|
-
this.parameterName = `/${stack.name}${name}`;
|
15
|
+
this.parameterName = `/${options?.parameterGroup ?? stack.name}${name}`;
|
16
16
|
this.parameterArn = `arn:aws:ssm:${stack.region}:${stack.account}:parameter${this.parameterName}`;
|
17
17
|
this._stack = stack;
|
18
18
|
this.decryptWithKey = options?.decryptWithKey;
|
package/lib/StaticWebSite.js
CHANGED
@@ -90,7 +90,7 @@ class StaticWebSite {
|
|
90
90
|
return {
|
91
91
|
customOriginSource: {
|
92
92
|
domainName: domainName,
|
93
|
-
originPath: stack.stage
|
93
|
+
originPath: `/${stack.stage}`,
|
94
94
|
originProtocolPolicy: aws_cloudfront_1.OriginProtocolPolicy.HTTPS_ONLY
|
95
95
|
},
|
96
96
|
behaviors: [{
|
@@ -108,13 +108,9 @@ class StaticWebSite {
|
|
108
108
|
"X-Trace-Id",
|
109
109
|
"X-Span-Id",
|
110
110
|
"X-Correlation-Id",
|
111
|
-
'Referrer',
|
112
111
|
'Referer',
|
113
|
-
'Host',
|
114
112
|
"User-Agent",
|
115
113
|
"Accept-Language",
|
116
|
-
"Cache-Control",
|
117
|
-
'X-Viewer-Country',
|
118
114
|
'Content-Type',
|
119
115
|
'Content-Length'
|
120
116
|
]
|
package/package.json
CHANGED