Skip to content

Commit

Permalink
SnapStartTest
Browse files Browse the repository at this point in the history
  • Loading branch information
smsgds committed Aug 19, 2024
1 parent f17d578 commit 47743c4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ext {
// cri_common_lib dependencies should match the ipv-cri-lib version
// Workaround until dependency resolution is fixed.
// ---------------------------------------------------------
cri_common_lib_version : "3.0.5",
cri_common_lib_version : "4.0.0",

// AWS SDK
aws_sdk_version : "2.26.16",
Expand Down Expand Up @@ -139,9 +139,9 @@ subprojects {
maven {
url 'https://gds.jfrog.io/artifactory/di-allowed-repos'
}
//flatDir {
// dirs '<Location of your projects absolute path>/di-ipv-cri-lib/build/libs'
//}
flatDir {
dirs '/Users/smcshane/repos/di-ipv-cri-lib/build/libs'
}
}

plugins.withId('java') {
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/lambda/private-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ paths:
x-amazon-apigateway-integration:
httpMethod: "POST"
uri:
Fn::Sub: arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${CheckPassportFunction.Arn}/invocations
Fn::Sub: arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${CheckPassportFunction.Arn}:live/invocations
responses:
default:
statusCode: "200"
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/lambda/public-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ paths:
x-amazon-apigateway-integration:
httpMethod: "POST"
uri:
Fn::Sub: arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${IssueCredentialFunction.Arn}/invocations
Fn::Sub: arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${IssueCredentialFunction.Arn}:live/invocations
responses:
default:
statusCode: "200"
Expand Down
8 changes: 6 additions & 2 deletions infrastructure/lambda/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,8 @@ Resources:
- !GetAtt MockAuditEventQueueEncryptionKey.Arn
- Fn::ImportValue: AuditEventQueueEncryptionKeyArn
AutoPublishAlias: live
SnapStart:
ApplyOn: PublishedVersions
ProvisionedConcurrencyConfig:
!If
- AddProvisionedConcurrency
Expand All @@ -559,7 +561,7 @@ Resources:
Type: AWS::Lambda::Permission
Properties:
Action: lambda:InvokeFunction
FunctionName: !GetAtt CheckPassportFunction.Arn
FunctionName: !Sub "${CheckPassportFunction}:live"
Principal: apigateway.amazonaws.com

####################################################################
Expand Down Expand Up @@ -629,6 +631,8 @@ Resources:
- !Sub "arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/${CommonStackName}/verifiable-credential/issuer"
- !Sub "arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/${CommonStackName}/verifiableCredentialKmsSigningKeyId"
AutoPublishAlias: live
SnapStart:
ApplyOn: PublishedVersions
ProvisionedConcurrencyConfig:
!If
- AddProvisionedConcurrency
Expand All @@ -653,7 +657,7 @@ Resources:
Type: AWS::Lambda::Permission
Properties:
Action: lambda:InvokeFunction
FunctionName: !GetAtt IssueCredentialFunction.Arn
FunctionName: !Sub "${IssueCredentialFunction}:live"
Principal: apigateway.amazonaws.com

####################################################################
Expand Down

0 comments on commit 47743c4

Please sign in to comment.