You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As we can only pass function name and not arn like i see in documentation we can't deploy using AWS sso because the creation of the ARN from the function name say Validation Error:
[lambda_event](fatal: [localhost]: FAILED! => {"changed": false, "msg": "Error retrieving stream event notification configuration: An error occurred (ValidationException) when calling the ListEventSourceMappings operation: 1 validation error detected: Value 'arn:aws:lambda:eu-west-3::function:function-name' at 'functionName' failed to satisfy constraint: Member must satisfy regular expression pattern: (arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\\$LATEST|[a-zA-Z0-9-_]+))?"})
@rvResolving The pull request #1970 update the module adding the call the get_function API to build the function ARN.
However, just so you know, you can specify the function name as ARN with the current version.
Please test and give feedback. Thanks
abikouo
added
bug
This issue/PR relates to a bug
and removed
needs_verified
Some one might want to take a look at this and reproduce it to confirm
labels
Feb 9, 2024
…sing AWS SSO (#1970)
[lambda_event] Fix issue when function name is specified and user is using AWS SSO
SUMMARY
Fixes#1859
When the user specifies function name (not ARN), the module builds the using the AWS account identifier, however as this information is missing when using AWS SSO, the function ARN results in an invalid string.
This fix introduces the get_function API to retrieve the function ARN.
ISSUE TYPE
Bugfix Pull Request
COMPONENT NAME
lambda_event
Reviewed-by: Helen Bailey <hebailey@redhat.com>
Summary
As we can only pass function name and not arn like i see in documentation we can't deploy using AWS sso because the creation of the ARN from the function name say Validation Error:
Issue Type
Bug Report
Component Name
lambda_event
Ansible Version
Collection Versions
AWS SDK versions
Configuration
OS / Environment
Ubuntu 22.04
Steps to Reproduce
Using AWS SSO Systeme
Expected Results
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: