early-airline-53287
01/10/2022, 7:22 PMpromtail_registry_image = docker.get_registry_image(
name="public.ecr.aws/grafana/lambda-promtail:latest"
)
remote_image = docker.RemoteImage(
"x-lambda-promtail-remote-image",
name=promtail_registry_image.name,
pull_triggers=[promtail_registry_image.sha256_digest],
)
promtail_lambda = aws.lambda_.Function(
"x-lambda-promtail",
timeout=30,
memory_size=128,
role=lambda_role.arn,
image_uri=remote_image.id,
package_type="Image",
publish=True,
opts=pulumi.ResourceOptions(depends_on=[lambda_role_policy]),
)
But it ends with an error message: error creating Lambda Function (1): InvalidParameterValueException: Source image sha256:fae905fb261fc02ffcd09052ae97c56c7ee18cf96d5dc2ddaf583ff2314284depublic.ecr.aws/grafana/lambda-promtail:latest is not valid. Provide a valid source image.
image_uri=remote_image.repo_digest
, with the same error ...miniature-king-36473
01/11/2022, 3:01 PMimage_uri
?early-airline-53287
01/11/2022, 6:32 PMpublic.ecr.aws/grafana/lambda-promtail:latest
and also <https://public.ecr.aws/grafana/lambda-promtail:latest>
without success. Eventually I have tried it also in AWS Lambda console and it fails with this error: This is an invalid Elastic Container Registry Image URI.miniature-king-36473
01/11/2022, 8:16 PM