Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The stack name needs to be limited at 34 #138

Merged
merged 3 commits into from
Nov 21, 2024

Conversation

TobySaundersGDS
Copy link
Contributor

@TobySaundersGDS TobySaundersGDS commented Nov 15, 2024

prefix is 20 chars, max Lambda function name length is 64, the lambdas in this template use prefix-stackname-resource-name so limiting prefix-stackname to 34 char leaving 30 for resource names

Proposed changes

My last PR failed checked with this error:

CREATE_FAILED            AWS::Lambda::Function    AnswerValidationFuncti   Resource handler       
                                                  on                       returned message: "1   
                                                                           validation error       
                                                                           detected: Value        
                                                                           'preview-kbv-hmrc-api- 
                                                                           psredev-1911-dev-      
                                                                           platform-support-      
                                                                           request-adam-          
                                                                           higginson-answer-      
                                                                           validation' at         
                                                                           'functionName' failed  
                                                                           to satisfy constraint: 
                                                                           Member must have       
                                                                           length less than or    
                                                                           equal to 64 (Service:  
                                                                           Lambda, Status Code:   
                                                                           400, Request ID: e3a52 
                                                                           f93-3b98-4115-adcf-    
                                                                           072de2e5218c)"         
                                                                           (RequestToken: ea6d8a7 
                                                                           9-cfb9-7038-04e4-      
                                                                           6cc8255ccc2b,          
                                                                           HandlerErrorCode:      
                                                                           InvalidRequest)        

What changed

Why did it change

Issue tracking

Other considerations

prefix is 20 chars, max Lambda function name length is 64
prefix is 20 chars, max Lambda function name length is 64 and the template appends the prefix, the branch name and the resource name to make the  lambda function name
prefix is 20 chars, max Lambda function name length is 64 and the template appends the prefix, some of the branch name and the resource name to make the lambda function name, gives a max 30 chars function name
@TobySaundersGDS TobySaundersGDS merged commit 3480aef into main Nov 21, 2024
14 checks passed
@TobySaundersGDS TobySaundersGDS deleted the bau-fix-long-lambda-name-error branch November 21, 2024 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants