·
1 commit
to refs/heads/main
since this release
fix: 'Missing required argument' when using image_uri @supersidor (#16)
## whatWhile applying Lambda component from image_uri next error reported: "s3_key": all of s3_bucket,s3_key
must be specified
The reason for this problem is that locals.s3_key is always not null, which conflicts with not null image_url
(see cloudposse/lambda-function/aws).
The solution is to add a additional check when generating locals.s3_key
how to reproduce
components:
terraform:
lambda2-test/lambda:
metadata:
component: lambda
vars:
name: my-service-lambda-test
service_name: lambda2-test
package_type: Image
timeout: 15
image_uri: "778631511111.dkr.ecr.us-east-1.amazonaws.com/hello:latest"
image_config:
command:
- "test.handler.handler"
why
Lambda component should work with image_url variable
references
Summary by CodeRabbit
- Chores
- Updated internal asset handling to better manage image inputs, ensuring more streamlined processing in the background.