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

lambda - fix check mode on creation #1108

Conversation

jatorcasso
Copy link
Contributor

@jatorcasso jatorcasso commented May 2, 2022

Depends-On: #1116

SUMMARY
  • When adding integration tests for check mode runs, creating a lambda function failed on check mode with the message "Unable to get function information after creating".

  • Added parameter kms_key_arn - testing in integration tests appears difficult as I think we'd need to create an IAM policy to allow for adding kms_key, which would render these tests as unsupported.

  • Added extra waiter for function_update in execute_lambda to resolve occasional integration test failure.

Fixes #1111

ISSUE TYPE
  • Feature Pull Request
  • Bugfix Pull Request
COMPONENT NAME

lambda

@ansibullbot
Copy link

@ansibullbot ansibullbot added bug This issue/PR relates to a bug community_review integration tests/integration module module needs_triage plugins plugin (any type) tests tests labels May 2, 2022
@jatorcasso jatorcasso marked this pull request as draft May 2, 2022 22:04
@jatorcasso jatorcasso marked this pull request as ready for review May 2, 2022 22:18
@jatorcasso jatorcasso mentioned this pull request May 2, 2022
1 task
@github-actions
Copy link

github-actions bot commented May 2, 2022

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and your docs changes will be incorporated when they are next published.

@ansibullbot ansibullbot added feature This issue/PR relates to a feature request has_issue labels May 2, 2022
@jatorcasso
Copy link
Contributor Author

recheck

@@ -260,8 +260,10 @@ def main():

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure if check_mode works correctly on lambda_execute, but I assume it's outside the scope of this PR.

@sethernet
Copy link

The kms_key_arn update worked for me, thanks

@jatorcasso jatorcasso closed this May 5, 2022
@jatorcasso jatorcasso reopened this May 5, 2022
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

ansible-galaxy-importer FAILURE in 4m 22s (non-voting)
✔️ build-ansible-collection SUCCESS in 5m 18s
✔️ ansible-test-sanity-docker-devel SUCCESS in 13m 01s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 10m 49s
✔️ ansible-test-sanity-docker-stable-2.9 SUCCESS in 12m 16s
✔️ ansible-test-sanity-docker-stable-2.11 SUCCESS in 10m 06s
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 11m 03s
✔️ ansible-test-units-community-aws-python38 SUCCESS in 7m 18s
✔️ ansible-test-splitter SUCCESS in 8m 56s
✔️ integration-community.aws-1 SUCCESS in 9m 52s
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED

@markuman markuman added the mergeit Merge the PR (SoftwareFactory) label May 6, 2022
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

ansible-galaxy-importer FAILURE in 4m 51s (non-voting)
✔️ build-ansible-collection SUCCESS in 5m 28s
✔️ ansible-test-sanity-docker-devel SUCCESS in 9m 43s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 11m 04s
✔️ ansible-test-sanity-docker-stable-2.9 SUCCESS in 12m 20s
✔️ ansible-test-sanity-docker-stable-2.11 SUCCESS in 12m 02s
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 10m 49s
✔️ ansible-test-units-community-aws-python38 SUCCESS in 5m 21s
✔️ ansible-test-splitter SUCCESS in 3m 04s
✔️ integration-community.aws-1 SUCCESS in 8m 44s
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 0bde6bb into ansible-collections:main May 6, 2022
@patchback
Copy link

patchback bot commented May 6, 2022

Backport to stable-3: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-3/0bde6bbd55bd90c7d8585bb7d7a36c147f70bb56/pr-1108

Backported as #1128

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request May 6, 2022
lambda - fix check mode on creation

Depends-On: #1116
SUMMARY

When adding integration tests for check mode runs, creating a lambda function failed on check mode with the message "Unable to get function information after creating".

Added parameter kms_key_arn - testing in integration tests appears difficult as I think we'd need to create an IAM policy to allow for adding kms_key, which would render these tests as unsupported.

Added extra waiter for function_update in execute_lambda to resolve occasional integration test failure.

Fixes #1111
ISSUE TYPE

Feature Pull Request
Bugfix Pull Request

COMPONENT NAME
lambda

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Markus Bergholz <git@osuv.de>
(cherry picked from commit 0bde6bb)
softwarefactory-project-zuul bot pushed a commit that referenced this pull request May 6, 2022
[PR #1108/0bde6bbd backport][stable-3] lambda - fix check mode on creation

This is a backport of PR #1108 as merged into main (0bde6bb).
Depends-On: #1116
SUMMARY


When adding integration tests for check mode runs, creating a lambda function failed on check mode with the message "Unable to get function information after creating".


Added parameter kms_key_arn - testing in integration tests appears difficult as I think we'd need to create an IAM policy to allow for adding kms_key, which would render these tests as unsupported.


Added extra waiter for function_update in execute_lambda to resolve occasional integration test failure.


Fixes #1111
ISSUE TYPE

Feature Pull Request
Bugfix Pull Request

COMPONENT NAME
lambda

Reviewed-by: Alina Buzachis <None>
abikouo pushed a commit to abikouo/community.aws that referenced this pull request Oct 24, 2023
lambda - fix check mode on creation

Depends-On: ansible-collections#1116
SUMMARY

When adding integration tests for check mode runs, creating a lambda function failed on check mode with the message "Unable to get function information after creating".

Added parameter kms_key_arn - testing in integration tests appears difficult as I think we'd need to create an IAM policy to allow for adding kms_key, which would render these tests as unsupported.

Added extra waiter for function_update in execute_lambda to resolve occasional integration test failure.

Fixes ansible-collections#1111
ISSUE TYPE

Feature Pull Request
Bugfix Pull Request

COMPONENT NAME
lambda

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Markus Bergholz <git@osuv.de>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections@0bde6bb
abikouo pushed a commit to abikouo/community.aws that referenced this pull request Oct 24, 2023
Bump main to 6.0.0-dev0

SUMMARY
Bump galaxy.yml version to 6.0.0-dev0 so we can start landing breaking changes
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
galaxy.yml
ADDITIONAL INFORMATION
(still draft because I expect deprecation related CI failures)

Reviewed-by: Alina Buzachis <None>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-3 PR should be backported to the stable-3 branch bug This issue/PR relates to a bug community_review feature This issue/PR relates to a feature request has_issue integration tests/integration mergeit Merge the PR (SoftwareFactory) module module plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for lambda KMSKeyArn
5 participants