Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
chore: bump Lambda insights version to 1.0.98.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoutschen committed Nov 18, 2021
1 parent a2b5b4f commit 68c164c
Show file tree
Hide file tree
Showing 12 changed files with 200 additions and 190 deletions.
4 changes: 2 additions & 2 deletions delivery-pricing/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Globals:
POWERTOOLS_TRACE_DISABLED: "false"
LOG_LEVEL: !Ref LogLevel
Layers:
- !Sub "arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension:2"
- !Sub "arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension-Arm64:1"


Resources:
Expand Down Expand Up @@ -90,4 +90,4 @@ Resources:
Properties:
Name: !Sub /ecommerce/${Environment}/delivery-pricing/api/domain
Type: String
Value: !Sub "${Api}.execute-api.${AWS::Region}.amazonaws.com"
Value: !Sub "${Api}.execute-api.${AWS::Region}.amazonaws.com"
2 changes: 1 addition & 1 deletion delivery/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Globals:
POWERTOOLS_TRACE_DISABLED: "false"
LOG_LEVEL: !Ref LogLevel
Layers:
- !Sub "arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension:2"
- !Sub "arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension-Arm64:1"


Resources:
Expand Down
2 changes: 1 addition & 1 deletion frontend-api/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -861,4 +861,4 @@ Resources:
ResponseMappingTemplate: |
{
"success": true
}
}
4 changes: 2 additions & 2 deletions orders/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Globals:
POWERTOOLS_TRACE_DISABLED: "false"
LOG_LEVEL: !Ref LogLevel
Layers:
- !Sub "arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension:2"
- !Sub "arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension-Arm64:1"


Resources:
Expand Down Expand Up @@ -1009,4 +1009,4 @@ Resources:
Stat: Sum
ThresholdMetricId: ad1
TreatMissingData: notBreaching


351 changes: 178 additions & 173 deletions payment-3p/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions payment/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Globals:
POWERTOOLS_TRACE_DISABLED: "false"
LOG_LEVEL: !Ref LogLevel
Layers:
- !Sub "arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension:2"
- !Sub "arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension-Arm64:1"

Resources:
#########
Expand Down Expand Up @@ -746,4 +746,4 @@ Resources:
]
}
2 changes: 1 addition & 1 deletion pipeline/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -257,4 +257,4 @@ Resources:
ArtifactPrefix: "templates/"
ServiceName: warehouse
CodeRepositoryName: !GetAtt CodeRepository.Name
CodeRepositoryArn: !GetAtt CodeRepository.Arn
CodeRepositoryArn: !GetAtt CodeRepository.Arn
4 changes: 2 additions & 2 deletions platform/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Globals:
POWERTOOLS_TRACE_DISABLED: "false"
LOG_LEVEL: !Ref LogLevel
Layers:
- !Sub "arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension:2"
- !Sub "arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension-Arm64:1"


Conditions:
Expand Down Expand Up @@ -349,4 +349,4 @@ Resources:
AlarmTopic:
Type: AWS::SNS::Topic
Properties:
DisplayName: Orders Alarm
DisplayName: Orders Alarm
4 changes: 2 additions & 2 deletions products/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Globals:
POWERTOOLS_TRACE_DISABLED: "false"
LOG_LEVEL: !Ref LogLevel
Layers:
- !Sub "arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension:2"
- !Sub "arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension-Arm64:1"


Resources:
Expand Down Expand Up @@ -176,4 +176,4 @@ Resources:
Properties:
# The path starts with '../..' as this will be evaluated from the
# products/build folder, not the products folder.
TemplateURL: ../../shared/templates/dlq.yaml
TemplateURL: ../../shared/templates/dlq.yaml
7 changes: 6 additions & 1 deletion shared/lint/rules/custom_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,12 @@ class LambdaInsightsLayer(CloudFormationLintRule):
description = "Ensure that Lambda functions use the CloudWatch Lambda Insights Layer"

_message = "Function {} does not use the CloudWatch Lambda Insights layer"
_layer_pattern = { "Fn::Sub": "arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension:2" }
# REMARK:
# This will only work in the following AWS regions:
# us-east-1, us-east-2, us-west-1, us-west-2, ap-south-1, ap-northeast-1,
# ap-northeast-2, ap-southeast-1, ap-southeast-2, ca-central-1, eu-central-1,
# eu-west-1, eu-west-2, eu-west-3, eu-north-1, or sa-east-1
_layer_pattern = { "Fn::Sub": "arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension-Arm64:1" }

def match(self, cfn):
"""
Expand Down
4 changes: 2 additions & 2 deletions users/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Globals:
POWERTOOLS_TRACE_DISABLED: "false"
LOG_LEVEL: !Ref LogLevel
Layers:
- !Sub "arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension:2"
- !Sub "arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension-Arm64:1"


Resources:
Expand Down Expand Up @@ -100,4 +100,4 @@ Resources:
Type: AWS::Logs::LogGroup
Properties:
LogGroupName: !Sub "/aws/lambda/${SignUpFunction}"
RetentionInDays: !Ref RetentionInDays
RetentionInDays: !Ref RetentionInDays
2 changes: 1 addition & 1 deletion warehouse/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Globals:
POWERTOOLS_TRACE_DISABLED: "false"
LOG_LEVEL: !Ref LogLevel
Layers:
- !Sub "arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension:2"
- !Sub "arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension-Arm64:1"


Resources:
Expand Down

0 comments on commit 68c164c

Please sign in to comment.