Skip to content

feat: add optional source_account to lambda permissions#87

Open
Rory Nolan (rorynolan) wants to merge 4 commits into
cloudposse:mainfrom
rorynolan:main
Open

feat: add optional source_account to lambda permissions#87
Rory Nolan (rorynolan) wants to merge 4 commits into
cloudposse:mainfrom
rorynolan:main

Conversation

@rorynolan
Copy link
Copy Markdown

what

  • Make both source_arn and source_account optional in invoke_function_permissions
  • Add comprehensive documentation for all permission fields
  • Update complete example to demonstrate source_account usage

why

Without this, you need to add custom stuff just to comply with the config rule lambda-function-public-access-prohibited, that requires source_account to be set.

It should be easy to comply with this rule using the module natively.

@oycyc
Copy link
Copy Markdown

/terratest

oycyc
yangci (oycyc) previously approved these changes Aug 3, 2025
Copy link
Copy Markdown

@oycyc yangci (oycyc) left a comment

Choose a reason for hiding this comment

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

@mergify mergify Bot removed the triage Needs triage label Aug 3, 2025
@oycyc yangci (oycyc) added enhancement New feature or request minor New features that do not break anything labels Aug 3, 2025
@oycyc yangci (oycyc) enabled auto-merge (squash) August 3, 2025 12:28
@oycyc
Copy link
Copy Markdown

Ugh seems like Terratest is failing because of the optional... Rory Nolan (@rorynolan) in your branch, can you try setting the examples/versions and where the required_version of TF to be >= 1.3.0 or >=1.4.0?

auto-merge was automatically disabled August 5, 2025 17:40

Head branch was pushed to by a user without write access

@rorynolan
Copy link
Copy Markdown
Author

yangci (@oycyc) I set it to minimum 1.4 can you please trigger a test rerun?

@oycyc
Copy link
Copy Markdown

/terratest

Rory Nolan and others added 4 commits January 25, 2026 21:23
- Make both source_arn and source_account optional in invoke_function_permissions
- Add comprehensive documentation for all permission fields
- Update complete example to demonstrate source_account usage
- Maintain backward compatibility with existing configurations

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@rorynolan
Copy link
Copy Markdown
Author

yangci (@oycyc) I rebased onto updates can you please approve the test workflow again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request minor New features that do not break anything

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants