Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jplock committed Jan 3, 2025
1 parent 5d80350 commit cf28daa
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 20 deletions.
1 change: 1 addition & 0 deletions api/dependencies/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
aws-lambda-powertools[tracer,parser]==3.4.0
cryptography==43.0.3
hpke==0.3.2
pksuid==1.1.2
Expand Down
1 change: 0 additions & 1 deletion api/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,6 @@ Resources:
Handler: app.lambda_handler.handler
Layers:
- !Ref rDependencyLayer
- "{{resolve:ssm:/aws/service/powertools/python/arm64/python3.13/latest}}"
MemorySize: 1024 # megabytes
PropagateTags: true
Role: !GetAtt rApiFunctionRole.Arn
Expand Down
31 changes: 15 additions & 16 deletions canary/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ Globals:
TABLE_NAME: !Ref pTableName
Handler: app.lambda_handler.handler
Layers:
#- !Ref rDependencyLayer
- "{{resolve:ssm:/aws/service/powertools/python/arm64/python3.13/latest}}"
- !Ref rDependencyLayer
MemorySize: 128 # megabytes
PropagateTags: true
ReservedConcurrentExecutions: 1
Expand Down Expand Up @@ -295,20 +294,20 @@ Resources:
Roles:
- !Ref rEventBridgeSchedulerRole

#rDependencyLayer:
# Type: "AWS::Serverless::LayerVersion"
# Metadata:
# BuildMethod: python3.12
# BuildArchitecture: arm64
# Properties:
# LicenseInfo: MIT-0
# CompatibleArchitectures:
# - arm64
# CompatibleRuntimes:
# - python3.12
# ContentUri: dependencies
# Description: !Sub "DO NOT DELETE - ${AWS::StackName} - Python Dependencies"
# RetentionPolicy: Delete
rDependencyLayer:
Type: "AWS::Serverless::LayerVersion"
Metadata:
BuildMethod: python3.13
BuildArchitecture: arm64
Properties:
LicenseInfo: MIT-0
CompatibleArchitectures:
- arm64
CompatibleRuntimes:
- python3.13
ContentUri: dependencies
Description: !Sub "DO NOT DELETE - ${AWS::StackName} - Python Dependencies"
RetentionPolicy: Delete

rCanaryVpcFunction:
Type: "AWS::Serverless::Function"
Expand Down
6 changes: 3 additions & 3 deletions ci_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ Resources:
Source:
BuildSpec: buildspec.yml
Type: CODEPIPELINE
TimeoutInMinutes: 30
TimeoutInMinutes: 20

rApiCodeBuildProject:
Type: "AWS::CodeBuild::Project"
Expand Down Expand Up @@ -1077,7 +1077,7 @@ Resources:
Source:
BuildSpec: api/buildspec.yml
Type: CODEPIPELINE
TimeoutInMinutes: 5
TimeoutInMinutes: 10

rCanaryCodeBuildProject:
Type: "AWS::CodeBuild::Project"
Expand Down Expand Up @@ -1113,7 +1113,7 @@ Resources:
Source:
BuildSpec: canary/buildspec.yml
Type: CODEPIPELINE
TimeoutInMinutes: 5
TimeoutInMinutes: 10

rStepFunctionsRole:
Type: "AWS::IAM::Role"
Expand Down

0 comments on commit cf28daa

Please sign in to comment.