Skip to content

Commit b99abb5

Browse files
authored
[chore] add liveness configs and generate for all entities (#108)
1 parent cbaa5e5 commit b99abb5

File tree

158 files changed

+503
-151
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+503
-151
lines changed

dist/aws-api-gateway/MANIFEST

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
REPO aws-api-gateway
2-
VERSION_HASH bb0ae1e78148
2+
VERSION_HASH f8a1056483b8
33
DESCRIPTION API management for building and securing APIs.
44
HOSTING managed
55
TAGS aws,api,gateway

dist/aws-api-gateway/api-gateway-sync.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,18 @@ var _APIGateway = class _APIGateway extends (_a = AWSAPIGatewayEntity, _syncRout
299299
return false;
300300
}
301301
}
302+
checkLiveness() {
303+
const id = this.state.api_id;
304+
if (!id) {
305+
throw new Error("API ID is missing");
306+
}
307+
const res = this.makeV2Request("GET", `/v2/apis/${encodeURIComponent(id)}`);
308+
const endpoint = res.ApiEndpoint ?? res.apiEndpoint;
309+
if (!endpoint) {
310+
throw new Error(`API ${id} has no endpoint yet`);
311+
}
312+
return true;
313+
}
302314
getEndpoint() {
303315
}
304316
listRoutes() {

dist/aws-api-gateway/api-gateway.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ api-gateway:
33
defines: entity
44
metadata:
55
name: APIGateway
6-
version-hash: bb0ae1e78148
6+
version-hash: f8a1056483b8
77
schema:
88
region:
99
type: string
@@ -44,6 +44,8 @@ api-gateway:
4444
period: 5
4545
initialDelay: 2
4646
attempts: 10
47+
liveness:
48+
period: 300
4749
requires:
4850
- aws-api-gateway/base
4951
- monkec/base

dist/aws-api-gateway/base.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ namespace: aws-api-gateway
33
base:
44
defines: module
55
metadata:
6-
version-hash: bb0ae1e78148
6+
version-hash: f8a1056483b8
77
source: <<< base.js

dist/aws-cloudfront/MANIFEST

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
REPO aws-cloudfront
2-
VERSION_HASH 27944340f50e
2+
VERSION_HASH c41e66ec7d8a
33
DESCRIPTION Global CDN and edge delivery.
44
HOSTING managed
55
TAGS aws,cloudfront,cdn,edge
6-
LOAD common.yaml base.yaml cloud-front-distribution.yaml
7-
RESOURCES cloud-front-distribution-sync.js base.js common.js
6+
LOAD base.yaml cloud-front-distribution.yaml common.yaml
7+
RESOURCES base.js cloud-front-distribution-sync.js common.js

dist/aws-cloudfront/base.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ namespace: aws-cloudfront
33
base:
44
defines: module
55
metadata:
6-
version-hash: 27944340f50e
6+
version-hash: c41e66ec7d8a
77
source: <<< base.js

dist/aws-cloudfront/cloud-front-distribution-sync.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,9 @@ var _CloudFrontDistribution = class _CloudFrontDistribution extends (_a = AWSClo
291291
return false;
292292
}
293293
}
294+
checkLiveness() {
295+
return this.checkReadiness();
296+
}
294297
getDistributionInfo(_args) {
295298
if (!this.state.distribution_id) {
296299
cli.output("Distribution not created yet");

dist/aws-cloudfront/cloud-front-distribution.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cloud-front-distribution:
33
defines: entity
44
metadata:
55
name: CloudFrontDistribution
6-
version-hash: 27944340f50e
6+
version-hash: c41e66ec7d8a
77
schema:
88
region:
99
type: string
@@ -372,6 +372,8 @@ cloud-front-distribution:
372372
period: 30
373373
initialDelay: 30
374374
attempts: 40
375+
liveness:
376+
period: 300
375377
requires:
376378
- aws-cloudfront/base
377379
- monkec/base

dist/aws-cloudfront/common.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ namespace: aws-cloudfront
33
common:
44
defines: module
55
metadata:
6-
version-hash: 27944340f50e
6+
version-hash: c41e66ec7d8a
77
source: <<< common.js

dist/aws-dynamo-db/MANIFEST

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
REPO aws-dynamo-db
2-
VERSION_HASH 5357a1b47caa
2+
VERSION_HASH 919d1a0a41af
33
DESCRIPTION Fully managed NoSQL database.
44
HOSTING managed
55
TAGS aws,dynamodb,nosql,database,key-value
6-
LOAD common.yaml base.yaml dynamo-db-table.yaml
6+
LOAD base.yaml common.yaml dynamo-db-table.yaml
77
RESOURCES base.js common.js dynamo-db-table-sync.js

0 commit comments

Comments
 (0)