Deploy AWS Lambda Function from Octopus

I’m having nupkg file which contains AWS Lambda package. I want to deploy to AWS Lambda from Octopus deployment.

  • I found “AWS - Deploy Lambda Function” - a plugin in octopus, installed and added step to my project.
  • After providing package, AWS Account and required fields for the step, it is returning “AWS-LOGIN-ERROR-0003” error while running the step.

Error Details: image
System.Exception: AWS-LOGIN-ERROR-0003: Failed to access the role information under http://169.254.169.254/latest/meta-data/iam/security-credentials/, or failed to parse the response. This may be because the instance does not have a role assigned to it. For more information visit https://g.octopushq.com/AwsCloudFormationDeploy#aws-login-error-0003

Can anyone suggest, how I can deploy Lambda from Octopus or any documentation will help.

Hi @NAllumalla,

Welcome to the Octopus Boards!

We don’t have any documentation, but we do have a sample here: https://samples.octopus.app/app#/Spaces-1/projects/sample-aws-lambda/deployments/process/steps?actionId=9f3d7fd0-3757-4a51-a019-7d3b14bcee79

You can login with a guest account and take a look how its setup.

Does the AWS account you have setup in Octopus have permissions to create or update Lamda Functions?

Thanks,
Jeremy

1 Like

@jeremy.miller, thank you for the quick reply.
I sorted out the issue.
I have also used the same step template you suggested.
Actually step template variables are conflicting with project variables. This was the reason why octopus step is not taking the aws account details I provided.
So, I just renamed the project variables with other names. It worked.
Deployment succeeded and lambda is deployed on AWS.

1 Like

Hi @NAllumalla,

I’m really glad to hear you got it going. Thanks so much for the update on the resolution.

I hope you have a great rest of your week.

Thanks,
Jeremy

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.