Skip to content

Commit 27f5f94

Browse files
committed
update
1 parent 4d0c3e2 commit 27f5f94

File tree

5 files changed

+42
-71
lines changed

5 files changed

+42
-71
lines changed

src/main/resources/cloudformation/api/api.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ Resources:
5050
Type: AWS::ApiGatewayV2::Api
5151
Properties:
5252
FailOnWarnings: "true"
53-
DisableExecuteApiEndpoint:
54-
Fn::If:
55-
- HasCertificateStackNameHttpApiDomain
56-
- true
57-
- false
5853

5954
Outputs:
6055
DocumentsHttpApi:

src/main/resources/cloudformation/api/openapi-iam.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ Resources:
132132
servers:
133133
- url: http://localhost
134134
description: Local development server
135+
x-amazon-apigateway-endpoint-configuration:
136+
disableExecuteApiEndpoint:
137+
Fn::If:
138+
- HasCertificateStackNameIamApiDomain
139+
- true
140+
- false
135141
paths:
136142

137143
/version:
@@ -14324,4 +14330,4 @@ Resources:
1432414330
allowMethods:
1432514331
- "*"
1432614332
allowHeaders:
14327-
- "*"
14333+
- "*"

src/main/resources/cloudformation/api/openapi-jwt.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ Resources:
132132
servers:
133133
- url: http://localhost
134134
description: Local development server
135+
x-amazon-apigateway-endpoint-configuration:
136+
disableExecuteApiEndpoint:
137+
Fn::If:
138+
- HasCertificateStackNameHttpApiDomain
139+
- true
140+
- false
135141
paths:
136142

137143
/version:
@@ -14330,4 +14336,4 @@ Resources:
1433014336
allowMethods:
1433114337
- "*"
1433214338
allowHeaders:
14333-
- "*"
14339+
- "*"

src/main/resources/cloudformation/api/openapi-key.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ Resources:
132132
servers:
133133
- url: http://localhost
134134
description: Local development server
135+
x-amazon-apigateway-endpoint-configuration:
136+
disableExecuteApiEndpoint:
137+
Fn::If:
138+
- HasCertificateStackNameKeyApiDomain
139+
- true
140+
- false
135141
paths:
136142

137143
/version:
@@ -14332,4 +14338,4 @@ Resources:
1433214338
allowMethods:
1433314339
- "*"
1433414340
allowHeaders:
14335-
- "*"
14341+
- "*"

src/main/resources/cloudformation/api/template.yaml

Lines changed: 21 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -551,15 +551,9 @@ Resources:
551551
Fn::Sub: "/formkiq/${AppEnvironment}/api/DocumentsHttpUrl"
552552
Type: String
553553
Value:
554-
Fn::If:
555-
- HasCertificateStackNameHttpApiDomain
556-
- Fn::Join:
557-
- ''
558-
- - 'https://'
559-
- Ref: CertificateStackNameHttpApiDomain
560-
- Fn::GetAtt:
561-
- HttpApi
562-
- Outputs.DocumentsHttpApiUrl
554+
Fn::GetAtt:
555+
- HttpApi
556+
- Outputs.DocumentsHttpApiUrl
563557
Tags:
564558
Application: "FormKiQ"
565559
AppEnvironment:
@@ -573,15 +567,9 @@ Resources:
573567
Fn::Sub: "/formkiq/${AppEnvironment}/api/DocumentsPublicHttpUrl"
574568
Type: String
575569
Value:
576-
Fn::If:
577-
- HasCertificateStackNameHttpApiDomain
578-
- Fn::Join:
579-
- ''
580-
- - 'https://'
581-
- Ref: CertificateStackNameHttpApiDomain
582-
- Fn::GetAtt:
583-
- HttpApi
584-
- Outputs.DocumentsHttpApiUrl
570+
Fn::GetAtt:
571+
- HttpApi
572+
- Outputs.DocumentsHttpApiUrl
585573
Tags:
586574
Application: "FormKiQ"
587575
AppEnvironment:
@@ -595,15 +583,9 @@ Resources:
595583
Fn::Sub: "/formkiq/${AppEnvironment}/api/DocumentsIamUrl"
596584
Type: String
597585
Value:
598-
Fn::If:
599-
- HasCertificateStackNameIamApiDomain
600-
- Fn::Join:
601-
- ''
602-
- - 'https://'
603-
- Ref: CertificateStackNameIamApiDomain
604-
- Fn::GetAtt:
605-
- IamApi
606-
- Outputs.DocumentsIamApiUrl
586+
Fn::GetAtt:
587+
- IamApi
588+
- Outputs.DocumentsIamApiUrl
607589
Tags:
608590
Application: "FormKiQ"
609591
AppEnvironment:
@@ -633,15 +615,9 @@ Resources:
633615
Fn::Sub: "/formkiq/${AppEnvironment}/api/DocumentsKeyUrl"
634616
Type: String
635617
Value:
636-
Fn::If:
637-
- HasCertificateStackNameKeyApiDomain
638-
- Fn::Join:
639-
- ''
640-
- - 'https://'
641-
- Ref: CertificateStackNameKeyApiDomain
642-
- Fn::GetAtt:
643-
- KeyApi
644-
- Outputs.DocumentsKeyApiUrl
618+
Fn::GetAtt:
619+
- KeyApi
620+
- Outputs.DocumentsKeyApiUrl
645621
Tags:
646622
Application: "FormKiQ"
647623
AppEnvironment:
@@ -807,39 +783,21 @@ Outputs:
807783
DocumentsIamApiUrl:
808784
Description: "The endpoint url for the IAM API"
809785
Value:
810-
Fn::If:
811-
- HasCertificateStackNameIamApiDomain
812-
- Fn::Join:
813-
- ''
814-
- - 'https://'
815-
- Ref: CertificateStackNameIamApiDomain
816-
- Fn::GetAtt:
817-
- IamApi
818-
- Outputs.DocumentsIamApiUrl
786+
Fn::GetAtt:
787+
- IamApi
788+
- Outputs.DocumentsIamApiUrl
819789
DocumentsKeyApiUrl:
820790
Description: "The endpoint url for the Key API"
821791
Value:
822-
Fn::If:
823-
- HasCertificateStackNameKeyApiDomain
824-
- Fn::Join:
825-
- ''
826-
- - 'https://'
827-
- Ref: CertificateStackNameKeyApiDomain
828-
- Fn::GetAtt:
829-
- KeyApi
830-
- Outputs.DocumentsKeyApiUrl
792+
Fn::GetAtt:
793+
- KeyApi
794+
- Outputs.DocumentsKeyApiUrl
831795
DocumentsHttpApiUrl:
832796
Description: "The endpoint url for the Http API"
833797
Value:
834-
Fn::If:
835-
- HasCertificateStackNameHttpApiDomain
836-
- Fn::Join:
837-
- ''
838-
- - 'https://'
839-
- Ref: CertificateStackNameHttpApiDomain
840-
- Fn::GetAtt:
841-
- HttpApi
842-
- Outputs.DocumentsHttpApiUrl
798+
Fn::GetAtt:
799+
- HttpApi
800+
- Outputs.DocumentsHttpApiUrl
843801
#! AuthApiUrl:
844802
#! Description: "The endpoint url for the Auth API"
845803
#! Value:

0 commit comments

Comments
 (0)