Skip to content

Commit 020d801

Browse files
committed
add Health endpoint checking
1 parent 1f50248 commit 020d801

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

products/server/product.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,19 @@ Parameters:
3636
- 'true'
3737
- 'false'
3838
Default: 'false'
39+
HealthActionAvailable:
40+
Type: String
41+
Description: Whether the admin scope is available
42+
AllowedValues:
43+
- 'true'
44+
- 'false'
45+
Default: 'true'
3946

4047
Conditions:
4148
HasReadAction: !Equals [!Ref ReadActionAvailable, 'true']
4249
HasWriteAction: !Equals [!Ref WriteActionAvailable, 'true']
4350
HasAdminAction: !Equals [!Ref AdminActionAvailable, 'true']
51+
HasHealthAction: !Equals [!Ref HealthActionAvailable, 'true']
4452

4553
Resources:
4654
CognitoResourceServer:
@@ -65,3 +73,8 @@ Resources:
6573
- ScopeName: !Sub '${ScopeName}.admin'
6674
ScopeDescription: Admin access
6775
- Ref: AWS::NoValue
76+
- Fn::If:
77+
- HasHealthAction
78+
- ScopeName: !Sub 'health.read'
79+
ScopeDescription: Health access
80+
- Ref: AWS::NoValue

0 commit comments

Comments
 (0)