awslabs / app-development-for-backstage-io-on-aws

A developer portal to meet your Enterprise needs. Fast, secure, and at-scale.
https://opaonaws.io/
Apache License 2.0
158 stars 28 forks source link

EKS Provider fails to initiate due to missing "kubectl-helm-lambda.zip" #74

Closed arditti closed 4 months ago

arditti commented 4 months ago

Description

When initiating new EKS Provider, Gitlab pipelines fails with the following error:

Update Kubectl Lambda
$ cd $CI_PROJECT_DIR/.iac/opa-eks-environment
$ echo "Updating ${KUBECTL_LAMBDA_ARN#*function:}"
Updating <MY_LAMNDA_NAME>
$ aws lambda update-function-code --function-name ${KUBECTL_LAMBDA_ARN#*function:} --zip-file fileb://kubectl-helm-lambda.zip
Error parsing parameter '--zip-file': Unable to load paramfile fileb://kubectl-helm-lambda.zip: [Errno 2] No such file or directory: 'kubectl-helm-lambda.zip'

Couldn't find kubectl-helm-lambda.zip in the project, not find where it should be created