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: Fix the check on given RoleArn #77

Merged
merged 1 commit into from
Jul 2, 2024
Merged

fix: Fix the check on given RoleArn #77

merged 1 commit into from
Jul 2, 2024

Conversation

fatbasstard
Copy link
Contributor

@fatbasstard fatbasstard commented Jul 2, 2024

This PR fixes the "Is a roleArn given?" check.

The length workaround introduced in https://github.com/schubergphilis/terraform-aws-mcaf-lambda/releases/tag/v1.4.0 is not sufficient, even is null is given the length([null]) check will return 1. The fix is using the compact function, which removes null values from a list (source)

@github-actions github-actions bot added the bug Something isn't working label Jul 2, 2024
Copy link
Contributor

github-actions bot commented Jul 2, 2024

Terraform Format and Style 🖌success

Terraform Initialization ⚙️``

Terraform Lint 📖success

Terraform Validation 🤖success

Validation Output

Success! The configuration is valid.


@fatbasstard fatbasstard merged commit ab3517d into master Jul 2, 2024
7 checks passed
@fatbasstard fatbasstard deleted the fvb/tweaks branch July 2, 2024 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants