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

deploy lambda only in region us-east-1 #7

Open
diogoleal opened this issue Jul 9, 2020 · 0 comments
Open

deploy lambda only in region us-east-1 #7

diogoleal opened this issue Jul 9, 2020 · 0 comments

Comments

@diogoleal
Copy link

diogoleal commented Jul 9, 2020

I don't know if it's my mistake, but even if I set the region to us-west-2, the drone-lambda-plugin is trying to create the lambda in the us-east-1 region.

That's the message I get from AWS:

latest: Pulling from omerxx/drone-lambda-plugin
Digest: sha256:9bb87d55fb04b0e1b55d35479ac62a4c165366a63cb3b3647ea611b7abc88616
Status: Image is up to date for omerxx/drone-lambda-plugin:latest
ResourceNotFoundException ResourceNotFoundException: Function not found: arn:aws:lambda:us-east-1:MY_ACCOUNT_ID:function:mylambda-7
	status code: 404, request id: 4e50159c-69ce-46f7-8fb3-b4699defc9a2

My configuration is this:

 - name: deploy-lambda
    image: omerxx/drone-lambda-plugin
    pull: true
    settings:
      function_name: mylambda-${DRONE_BUILD_NUMBER}
      s3_bucket: mylambda
      region: us-west-2
      file_name: lambda-dir/mylambda-${DRONE_BUILD_NUMBER}.zip
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

No branches or pull requests

1 participant