|
5 | 5 | # Atlantis for AWS SAM Deployments |
6 | 6 | # Starter 02 - API Gateway and Lambda using Cache-Data (NodeJS) |
7 | 7 | # Author: Chad Kluck - 63klabs.net |
8 | | -# Version: v2.0.2/2025-07-26 |
| 8 | +# Version: v2.0.4/2025-09-03 |
9 | 9 |
|
10 | 10 | # Documentation, Issues/Feature Requests, Latest Updates, and Security Reports on GitHub: |
11 | 11 | # https://github.com/63Klabs/atlantis-starter-02-apigw-lambda-cache-data-nodejs |
@@ -57,13 +57,14 @@ Metadata: |
57 | 57 | - FunctionArchitecture |
58 | 58 | - |
59 | 59 | Label: |
60 | | - default: "Application Settings" |
| 60 | + default: "Application Parameters" |
61 | 61 | Parameters: |
62 | 62 | - ApiPathBase |
63 | 63 | - UserAgent |
64 | 64 | - LogRetentionInDaysForPROD |
65 | 65 | - LogRetentionInDaysForDEVTEST |
66 | 66 | - ApiGatewayLoggingEnabled |
| 67 | + - ApiGatewayLoggingEnabled |
67 | 68 | - |
68 | 69 | Label: |
69 | 70 | default: "Cache-Data Settings" |
@@ -198,7 +199,7 @@ Parameters: |
198 | 199 | AllowedValues: ["x86_64", "arm64"] |
199 | 200 |
|
200 | 201 | # --------------------------------------------------------------------------- |
201 | | - # Application Settings |
| 202 | + # Application Parameters |
202 | 203 |
|
203 | 204 | ApiPathBase: |
204 | 205 | Type: String |
@@ -384,7 +385,7 @@ Resources: |
384 | 385 | "Fn::Transform": |
385 | 386 | Name: "AWS::Include" |
386 | 387 | Parameters: |
387 | | - Location: ./template-swagger.yml |
| 388 | + Location: ./template-openapi-spec.yml |
388 | 389 |
|
389 | 390 | # -- The following adds two levels of logging to API Gateway -- |
390 | 391 | # -- However, an account admin will need to add a service role to allow API Gateway to write to CloudWatch logs -- |
@@ -424,7 +425,7 @@ Resources: |
424 | 425 | DeletionPolicy: !If [IsProduction, Retain, Delete] |
425 | 426 | UpdateReplacePolicy: Retain |
426 | 427 | Properties: |
427 | | - LogGroupName: !Sub '/aws/apigateway/${Prefix}-${ProjectId}-${StageId}-WebApi-execution-logs' # <-- consistent naming | aws default --> 'API-Gateway-Execution-Logs_${WebApi}/${ApiPathBase}' |
| 428 | + LogGroupName: !Sub 'API-Gateway-Execution-Logs_${WebApi}/${ApiPathBase}' # AWS default |
428 | 429 | RetentionInDays: !If [ IsProduction, !Ref LogRetentionInDaysForPROD, !Ref LogRetentionInDaysForDEVTEST] |
429 | 430 |
|
430 | 431 | # --------------------------------------------------------------------------- |
@@ -697,7 +698,7 @@ Outputs: |
697 | 698 | CloudWatchApiGatewayExecutionLogGroup: |
698 | 699 | Condition: ApiGatewayLoggingIsEnabled |
699 | 700 | Description: "Cloud Watch Log Group for API Gateway Execution Logs" |
700 | | - Value: !Sub "https://console.aws.amazon.com/cloudwatch/home?region=${AWS::Region}#logStream:group=%2Faws%2Fapigateway%2F${Prefix}-${ProjectId}-${StageId}-WebApi-execution-logs" |
| 701 | + Value: !Sub "https://console.aws.amazon.com/cloudwatch/home?region=${AWS::Region}#logStream:group=%2Faws%2Fapigateway%2FAPI-Gateway-Execution-Logs_${WebApi}/${ApiPathBase}" |
701 | 702 |
|
702 | 703 | CloudWatchApiGatewayAccessLogGroup: |
703 | 704 | Condition: ApiGatewayLoggingIsEnabled |
|
0 commit comments