aws lambda deploy-serverless command not updating Layer version when used with secrets manager
- Lenguaje dominante
- C#
- Estrellas
- 1.7k
- Forks
- 503
- Merge medio
- 1 d 5 h
- PR fusionados (30 d)
- 18
Descripción
When trying to update an existing Lambda function with a Lambda Layer using _aws lambda deploy-serverless_ command, it fails to update the function with the latest layer version when the Layer ARN is fetched from AWS Secrets Manager. Creating a new function with the same command works fine. Issue is only when we do consecutive updates to the same function.
### Scenario
* Create a Lambda Function with Layer
* Update the Layer using _dotnet lambda publish-layer_ command.
* Now run _aws lambda deploy-serverless_ command by passing a serverless template. Example command below
```
dotnet lambda deploy-serverless -sb my-lambda-apps -t .\serverless.yaml -sn OrderProcessor
```
* serverless.yaml command has the Layer settings as below. Layer ARN is stored as a key/value pair in AWS Secrets Manager.
```
Layers:
- '{{resolve:secretsmanager:LambdaLayerSecretArn:SecretString:LambdaLayerSecretArn}}'
```
* When the Layer ARN is directly given as plain text in the .yaml file, there is no issue.
Guía de contribución
Línea de trabajo
Comienza con el comando deploy-serverless y la configuración de Layer en serverless.yaml; después, sigue cómo se gestiona una Secrets Manager dynamic reference durante las actualizaciones de una función Lambda existente. Reproduce actualizaciones consecutivas de Layer tanto con la dynamic reference como con una ARN simple. Se considera terminado cuando la función existente recibe la última versión de Layer cuando la ARN proviene de Secrets Manager.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- aws, csharp
- Área
- cloud, devops
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100