Skip to content

Conversation

@zimeg
Copy link
Member

@zimeg zimeg commented Dec 17, 2024

Summary

This PR updates the aws_lambda example app code with patches to a few snags noted in channel! These include:

  • python-lambda erroring when checking the status of an app deployment.
  • Unexpected role names caused the deploy.sh script to fail.

Also included are minor updates to inline documentation and formatting changes. Open to reverting these though!

Category

  • Examples

Reviewers

Both non-OAuth apps were tested in the creation of this PR. Events were sent to the Lambda URL and I got responses in channel! 🚀

Requirements

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.

  • I've read and understood the Contributing Guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've run ./scripts/install_all_and_run_tests.sh after making the changes.

@zimeg zimeg added the area:examples issues related to example or sample code label Dec 17, 2024
@zimeg zimeg requested a review from a team December 17, 2024 03:42
@zimeg zimeg self-assigned this Dec 17, 2024
@seratch seratch added this to the 1.21.4 milestone Dec 17, 2024
Copy link
Contributor

@seratch seratch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, you're quick! Thanks for working on this 🙇‍♂️

Copy link
Member Author

@zimeg zimeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 A few fast notes for reviewers!

Comment on lines -7 to -8
# role: lambda_basic_execution
# Have lambda:InvokeFunction & lambda:GetFunction in the allowed actions
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The required roles are noted in the README.md, so these comments were removed to avoid confusion! 📚

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, makes sense!

#

# Experimental Environment variables
# Lambda environment variables
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I can tell, these are no longer an experimental feature! 🎉

https://github.com/nficano/python-lambda?tab=readme-ov-file#environment-variables

@seratch
Copy link
Contributor

seratch commented Dec 17, 2024

Also included are minor updates to inline documentation and formatting changes. Open to reverting these though!

Everything looks great; nothing to discuss further!

@codecov
Copy link

codecov bot commented Dec 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.96%. Comparing base (5f4c847) to head (e19e339).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1224   +/-   ##
=======================================
  Coverage   90.96%   90.96%           
=======================================
  Files         222      222           
  Lines        7501     7501           
=======================================
  Hits         6823     6823           
  Misses        678      678           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.



# export SLACK_SIGNING_SECRET=***
# export SLACK_BOT_TOKEN=xoxb-***
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zimeg quick question: our internal report mentioned the necessity to rename this file. when you did testing for this change, was it unnecessary?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@seratch Thanks for checking on this! I noticed that updating the role used by deploy.sh was enough to resolve errors, but I will check this once more 🔍 ✨

@zimeg
Copy link
Member Author

zimeg commented Dec 17, 2024

@seratch Thanks so much for the fast and thorough review! My lambdas in the cloud are updating nicely after these changes so I'll go ahead and merge this now ☁️ 🐍 ⚡

@seratch
Copy link
Contributor

seratch commented Dec 17, 2024

Great! Thank you for resolving this issue quickly!

@zimeg zimeg merged commit 5e41ae8 into main Dec 17, 2024
14 checks passed
@zimeg zimeg deleted the zimeg-docs-example-aws-lambda branch December 17, 2024 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:examples issues related to example or sample code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants