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

Fix: error checking for incompatible variables create_role and lambda_role #604

Closed
wants to merge 2 commits into from

Conversation

nsimmonds
Copy link

Description

There is an undocumented conflict between create_role and lambda_role. The latter is completely ignored if the former is set to true, and instead either the role_name variable or the function name is used. This creates confusing behavior for users, and is exacerbated because it will fail silently. This error checking tests whether create_role is true, and passes if it is false or if it is true but lambda_role is empty.

lambda_role is only used if create_role is set to false. Currently, the user can set both, causing confusing behavior when the desired role is not attached and instead a new role is created.
@nsimmonds nsimmonds changed the title Error checking for incompatible variables Fix: error checking for incompatible variables create_role and lambda_role Jul 31, 2024
@nsimmonds nsimmonds closed this Jul 31, 2024
Copy link

github-actions bot commented Sep 1, 2024

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant