@examplary/schemas 0.0.1 → 1.3.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.
@@ -0,0 +1,178 @@
1
+ {
2
+ "AWSTemplateFormatVersion": "2010-09-09",
3
+ "Description": "The AWS CloudFormation template for this Serverless application",
4
+ "Resources": {
5
+ "schemasBucketBE9E7D9F": {
6
+ "Type": "AWS::S3::Bucket",
7
+ "Properties": {
8
+ "PublicAccessBlockConfiguration": {
9
+ "BlockPublicAcls": false,
10
+ "BlockPublicPolicy": false,
11
+ "IgnorePublicAcls": false,
12
+ "RestrictPublicBuckets": false
13
+ },
14
+ "WebsiteConfiguration": {
15
+ "IndexDocument": "index.html"
16
+ }
17
+ },
18
+ "UpdateReplacePolicy": "Delete",
19
+ "DeletionPolicy": "Delete"
20
+ },
21
+ "schemasBucketPolicy7504DC0B": {
22
+ "Type": "AWS::S3::BucketPolicy",
23
+ "Properties": {
24
+ "Bucket": {
25
+ "Ref": "schemasBucketBE9E7D9F"
26
+ },
27
+ "PolicyDocument": {
28
+ "Statement": [
29
+ {
30
+ "Action": "s3:GetObject",
31
+ "Effect": "Allow",
32
+ "Principal": {
33
+ "AWS": "*"
34
+ },
35
+ "Resource": {
36
+ "Fn::Join": [
37
+ "",
38
+ [
39
+ {
40
+ "Fn::GetAtt": [
41
+ "schemasBucketBE9E7D9F",
42
+ "Arn"
43
+ ]
44
+ },
45
+ "/*"
46
+ ]
47
+ ]
48
+ }
49
+ }
50
+ ],
51
+ "Version": "2012-10-17"
52
+ }
53
+ }
54
+ },
55
+ "schemasResponseFunctionC5B753EB": {
56
+ "Type": "AWS::CloudFront::Function",
57
+ "Properties": {
58
+ "AutoPublish": true,
59
+ "FunctionCode": "function handler(event) {\n var response = event.response;\n response.headers = Object.assign({}, {\n \"x-frame-options\": {\n \"value\": \"SAMEORIGIN\"\n },\n \"x-content-type-options\": {\n \"value\": \"nosniff\"\n },\n \"x-xss-protection\": {\n \"value\": \"1; mode=block\"\n },\n \"strict-transport-security\": {\n \"value\": \"max-age=63072000\"\n }\n}, response.headers);\n return response;\n}",
60
+ "FunctionConfig": {
61
+ "Comment": "schemas-staging-eu-central-1-schemas-response",
62
+ "Runtime": "cloudfront-js-1.0"
63
+ },
64
+ "Name": "schemas-staging-eu-central-1-schemas-response"
65
+ }
66
+ },
67
+ "schemasCDNE849A679": {
68
+ "Type": "AWS::CloudFront::Distribution",
69
+ "Properties": {
70
+ "DistributionConfig": {
71
+ "Aliases": [
72
+ "schemas-staging.examplary.ai"
73
+ ],
74
+ "Comment": "schemas-staging schemas website CDN",
75
+ "CustomErrorResponses": [
76
+ {
77
+ "ErrorCachingMinTTL": 0,
78
+ "ErrorCode": 404,
79
+ "ResponseCode": 200,
80
+ "ResponsePagePath": "/index.html"
81
+ }
82
+ ],
83
+ "DefaultCacheBehavior": {
84
+ "AllowedMethods": [
85
+ "GET",
86
+ "HEAD",
87
+ "OPTIONS"
88
+ ],
89
+ "CachePolicyId": "658327ea-f89d-4fab-a63d-7e88639e58f6",
90
+ "Compress": true,
91
+ "FunctionAssociations": [
92
+ {
93
+ "EventType": "viewer-response",
94
+ "FunctionARN": {
95
+ "Fn::GetAtt": [
96
+ "schemasResponseFunctionC5B753EB",
97
+ "FunctionARN"
98
+ ]
99
+ }
100
+ }
101
+ ],
102
+ "TargetOriginId": "schemasCDNOrigin1ED98F1D0",
103
+ "ViewerProtocolPolicy": "redirect-to-https"
104
+ },
105
+ "DefaultRootObject": "index.html",
106
+ "Enabled": true,
107
+ "HttpVersion": "http2",
108
+ "IPV6Enabled": true,
109
+ "Origins": [
110
+ {
111
+ "CustomOriginConfig": {
112
+ "OriginProtocolPolicy": "http-only",
113
+ "OriginSSLProtocols": [
114
+ "TLSv1.2"
115
+ ]
116
+ },
117
+ "DomainName": {
118
+ "Fn::Select": [
119
+ 2,
120
+ {
121
+ "Fn::Split": [
122
+ "/",
123
+ {
124
+ "Fn::GetAtt": [
125
+ "schemasBucketBE9E7D9F",
126
+ "WebsiteURL"
127
+ ]
128
+ }
129
+ ]
130
+ }
131
+ ]
132
+ },
133
+ "Id": "schemasCDNOrigin1ED98F1D0"
134
+ }
135
+ ],
136
+ "ViewerCertificate": {
137
+ "AcmCertificateArn": "arn:aws:acm:us-east-1:864899853846:certificate/98929ce6-38a5-41ec-ac3c-6abd2f46087f",
138
+ "MinimumProtocolVersion": "TLSv1.2_2021",
139
+ "SslSupportMethod": "sni-only"
140
+ }
141
+ }
142
+ }
143
+ }
144
+ },
145
+ "Outputs": {
146
+ "ServerlessDeploymentBucketName": {
147
+ "Value": "serverless-framework-deployments-eu-central-1-fe769196-9095",
148
+ "Export": {
149
+ "Name": "sls-schemas-staging-ServerlessDeploymentBucketName"
150
+ }
151
+ },
152
+ "schemasBucketName814EA6EC": {
153
+ "Description": "Name of the bucket that stores the static website.",
154
+ "Value": {
155
+ "Ref": "schemasBucketBE9E7D9F"
156
+ }
157
+ },
158
+ "schemasDomainC1437202": {
159
+ "Description": "Website domain name.",
160
+ "Value": "schemas-staging.examplary.ai"
161
+ },
162
+ "schemasCloudFrontCName05CBFC31": {
163
+ "Description": "CloudFront CNAME.",
164
+ "Value": {
165
+ "Fn::GetAtt": [
166
+ "schemasCDNE849A679",
167
+ "DomainName"
168
+ ]
169
+ }
170
+ },
171
+ "schemasDistributionIdF843C7D9": {
172
+ "Description": "ID of the CloudFront distribution.",
173
+ "Value": {
174
+ "Ref": "schemasCDNE849A679"
175
+ }
176
+ }
177
+ }
178
+ }
@@ -0,0 +1,273 @@
1
+ {
2
+ "/home/runner/work/examplary/examplary/schemas/serverless.yml": {
3
+ "versionFramework": "4.18.0",
4
+ "servicePath": "/home/runner/work/examplary/examplary/schemas/serverless.yml",
5
+ "serviceConfigFileName": "serverless.yml",
6
+ "service": {
7
+ "service": "schemas",
8
+ "params": {
9
+ "default": {
10
+ "domain": "schemas-staging.examplary.ai",
11
+ "certificateArn": "arn:aws:acm:us-east-1:864899853846:certificate/98929ce6-38a5-41ec-ac3c-6abd2f46087f"
12
+ }
13
+ },
14
+ "provider": {
15
+ "name": "aws",
16
+ "region": "eu-central-1",
17
+ "stage": "staging",
18
+ "deploymentMethod": "direct",
19
+ "versionFunctions": true
20
+ },
21
+ "plugins": [
22
+ "serverless-lift"
23
+ ],
24
+ "constructs": {
25
+ "schemas": {
26
+ "type": "static-website",
27
+ "path": "dist/schemas",
28
+ "domain": "schemas-staging.examplary.ai",
29
+ "certificate": "arn:aws:acm:us-east-1:864899853846:certificate/98929ce6-38a5-41ec-ac3c-6abd2f46087f"
30
+ }
31
+ }
32
+ },
33
+ "provider": {
34
+ "name": "aws",
35
+ "region": "eu-central-1",
36
+ "stage": "staging",
37
+ "deploymentMethod": "direct",
38
+ "versionFunctions": true
39
+ },
40
+ "dashboard": {
41
+ "isEnabledForService": false,
42
+ "requiredAuthentication": false,
43
+ "orgFeaturesInUse": null,
44
+ "orgObservabilityIntegrations": null,
45
+ "serviceAppId": null,
46
+ "serviceProvider": null,
47
+ "instanceParameters": null
48
+ },
49
+ "serviceRawFile": "service: schemas\n\nparams:\n default:\n domain: schemas-${sls:stage}.examplary.ai\n certificateArn: arn:aws:acm:us-east-1:864899853846:certificate/98929ce6-38a5-41ec-ac3c-6abd2f46087f\n production:\n domain: schemas.examplary.ai\n certificateArn: arn:aws:acm:us-east-1:864899853846:certificate/98929ce6-38a5-41ec-ac3c-6abd2f46087f\n\nprovider:\n name: aws\n region: eu-central-1\n stage: ${opt:stage, 'dev'}\n deploymentMethod: direct\n\nplugins:\n - serverless-lift\n\nconstructs:\n schemas:\n type: static-website\n path: dist/schemas\n domain: ${param:domain}\n certificate: ${param:certificateArn}\n",
50
+ "command": [
51
+ "deploy"
52
+ ],
53
+ "options": {
54
+ "verbose": true,
55
+ "stage": "staging"
56
+ },
57
+ "orgId": "5d3064e1-8166-4393-8f8f-cc3391651697",
58
+ "orgName": "examplary",
59
+ "userId": "1KmmvFzp9d3Ns75m6V",
60
+ "userName": "tschoffelen",
61
+ "serviceProviderAwsAccountId": "864899853846",
62
+ "serviceProviderAwsCfStackName": "schemas-staging",
63
+ "serviceProviderAwsCfStackId": "arn:aws:cloudformation:eu-central-1:864899853846:stack/schemas-staging/adb61dc0-4eeb-11f0-b2b2-02b88035ad11",
64
+ "serviceProviderAwsCfStackCreated": "2025-06-21T22:04:18.825Z",
65
+ "serviceProviderAwsCfStackUpdated": null,
66
+ "serviceProviderAwsCfStackStatus": "CREATE_COMPLETE",
67
+ "serviceProviderAwsCfStackOutputs": [
68
+ {
69
+ "OutputKey": "schemasBucketName814EA6EC",
70
+ "OutputValue": "schemas-staging-schemasbucketbe9e7d9f-bjwiggxeliry",
71
+ "Description": "Name of the bucket that stores the static website."
72
+ },
73
+ {
74
+ "OutputKey": "schemasCloudFrontCName05CBFC31",
75
+ "OutputValue": "d2ub43ytncf7pc.cloudfront.net",
76
+ "Description": "CloudFront CNAME."
77
+ },
78
+ {
79
+ "OutputKey": "schemasDistributionIdF843C7D9",
80
+ "OutputValue": "E2QF0CWOESW4D1",
81
+ "Description": "ID of the CloudFront distribution."
82
+ },
83
+ {
84
+ "OutputKey": "schemasDomainC1437202",
85
+ "OutputValue": "schemas-staging.examplary.ai",
86
+ "Description": "Website domain name."
87
+ },
88
+ {
89
+ "OutputKey": "ServerlessDeploymentBucketName",
90
+ "OutputValue": "serverless-framework-deployments-eu-central-1-fe769196-9095",
91
+ "ExportName": "sls-schemas-staging-ServerlessDeploymentBucketName"
92
+ }
93
+ ],
94
+ "compiledCloudFormationTemplate": {
95
+ "AWSTemplateFormatVersion": "2010-09-09",
96
+ "Description": "The AWS CloudFormation template for this Serverless application",
97
+ "Resources": {
98
+ "schemasBucketBE9E7D9F": {
99
+ "Type": "AWS::S3::Bucket",
100
+ "Properties": {
101
+ "PublicAccessBlockConfiguration": {
102
+ "BlockPublicAcls": false,
103
+ "BlockPublicPolicy": false,
104
+ "IgnorePublicAcls": false,
105
+ "RestrictPublicBuckets": false
106
+ },
107
+ "WebsiteConfiguration": {
108
+ "IndexDocument": "index.html"
109
+ }
110
+ },
111
+ "UpdateReplacePolicy": "Delete",
112
+ "DeletionPolicy": "Delete"
113
+ },
114
+ "schemasBucketPolicy7504DC0B": {
115
+ "Type": "AWS::S3::BucketPolicy",
116
+ "Properties": {
117
+ "Bucket": {
118
+ "Ref": "schemasBucketBE9E7D9F"
119
+ },
120
+ "PolicyDocument": {
121
+ "Statement": [
122
+ {
123
+ "Action": "s3:GetObject",
124
+ "Effect": "Allow",
125
+ "Principal": {
126
+ "AWS": "*"
127
+ },
128
+ "Resource": {
129
+ "Fn::Join": [
130
+ "",
131
+ [
132
+ {
133
+ "Fn::GetAtt": [
134
+ "schemasBucketBE9E7D9F",
135
+ "Arn"
136
+ ]
137
+ },
138
+ "/*"
139
+ ]
140
+ ]
141
+ }
142
+ }
143
+ ],
144
+ "Version": "2012-10-17"
145
+ }
146
+ }
147
+ },
148
+ "schemasResponseFunctionC5B753EB": {
149
+ "Type": "AWS::CloudFront::Function",
150
+ "Properties": {
151
+ "AutoPublish": true,
152
+ "FunctionCode": "function handler(event) {\n var response = event.response;\n response.headers = Object.assign({}, {\n \"x-frame-options\": {\n \"value\": \"SAMEORIGIN\"\n },\n \"x-content-type-options\": {\n \"value\": \"nosniff\"\n },\n \"x-xss-protection\": {\n \"value\": \"1; mode=block\"\n },\n \"strict-transport-security\": {\n \"value\": \"max-age=63072000\"\n }\n}, response.headers);\n return response;\n}",
153
+ "FunctionConfig": {
154
+ "Comment": "schemas-staging-eu-central-1-schemas-response",
155
+ "Runtime": "cloudfront-js-1.0"
156
+ },
157
+ "Name": "schemas-staging-eu-central-1-schemas-response"
158
+ }
159
+ },
160
+ "schemasCDNE849A679": {
161
+ "Type": "AWS::CloudFront::Distribution",
162
+ "Properties": {
163
+ "DistributionConfig": {
164
+ "Aliases": [
165
+ "schemas-staging.examplary.ai"
166
+ ],
167
+ "Comment": "schemas-staging schemas website CDN",
168
+ "CustomErrorResponses": [
169
+ {
170
+ "ErrorCachingMinTTL": 0,
171
+ "ErrorCode": 404,
172
+ "ResponseCode": 200,
173
+ "ResponsePagePath": "/index.html"
174
+ }
175
+ ],
176
+ "DefaultCacheBehavior": {
177
+ "AllowedMethods": [
178
+ "GET",
179
+ "HEAD",
180
+ "OPTIONS"
181
+ ],
182
+ "CachePolicyId": "658327ea-f89d-4fab-a63d-7e88639e58f6",
183
+ "Compress": true,
184
+ "FunctionAssociations": [
185
+ {
186
+ "EventType": "viewer-response",
187
+ "FunctionARN": {
188
+ "Fn::GetAtt": [
189
+ "schemasResponseFunctionC5B753EB",
190
+ "FunctionARN"
191
+ ]
192
+ }
193
+ }
194
+ ],
195
+ "TargetOriginId": "schemasCDNOrigin1ED98F1D0",
196
+ "ViewerProtocolPolicy": "redirect-to-https"
197
+ },
198
+ "DefaultRootObject": "index.html",
199
+ "Enabled": true,
200
+ "HttpVersion": "http2",
201
+ "IPV6Enabled": true,
202
+ "Origins": [
203
+ {
204
+ "CustomOriginConfig": {
205
+ "OriginProtocolPolicy": "http-only",
206
+ "OriginSSLProtocols": [
207
+ "TLSv1.2"
208
+ ]
209
+ },
210
+ "DomainName": {
211
+ "Fn::Select": [
212
+ 2,
213
+ {
214
+ "Fn::Split": [
215
+ "/",
216
+ {
217
+ "Fn::GetAtt": [
218
+ "schemasBucketBE9E7D9F",
219
+ "WebsiteURL"
220
+ ]
221
+ }
222
+ ]
223
+ }
224
+ ]
225
+ },
226
+ "Id": "schemasCDNOrigin1ED98F1D0"
227
+ }
228
+ ],
229
+ "ViewerCertificate": {
230
+ "AcmCertificateArn": "arn:aws:acm:us-east-1:864899853846:certificate/98929ce6-38a5-41ec-ac3c-6abd2f46087f",
231
+ "MinimumProtocolVersion": "TLSv1.2_2021",
232
+ "SslSupportMethod": "sni-only"
233
+ }
234
+ }
235
+ }
236
+ }
237
+ },
238
+ "Outputs": {
239
+ "ServerlessDeploymentBucketName": {
240
+ "Value": "serverless-framework-deployments-eu-central-1-fe769196-9095",
241
+ "Export": {
242
+ "Name": "sls-schemas-staging-ServerlessDeploymentBucketName"
243
+ }
244
+ },
245
+ "schemasBucketName814EA6EC": {
246
+ "Description": "Name of the bucket that stores the static website.",
247
+ "Value": {
248
+ "Ref": "schemasBucketBE9E7D9F"
249
+ }
250
+ },
251
+ "schemasDomainC1437202": {
252
+ "Description": "Website domain name.",
253
+ "Value": "schemas-staging.examplary.ai"
254
+ },
255
+ "schemasCloudFrontCName05CBFC31": {
256
+ "Description": "CloudFront CNAME.",
257
+ "Value": {
258
+ "Fn::GetAtt": [
259
+ "schemasCDNE849A679",
260
+ "DomainName"
261
+ ]
262
+ }
263
+ },
264
+ "schemasDistributionIdF843C7D9": {
265
+ "Description": "ID of the CloudFront distribution.",
266
+ "Value": {
267
+ "Ref": "schemasCDNE849A679"
268
+ }
269
+ }
270
+ }
271
+ }
272
+ }
273
+ }