ValidationException: 'sourceArn' failed to satisfy constraint
See original GitHub issueWhen I run the tests, I see a large number of failures (47/122), almost all of which are due to:
Failed: 1 validation error detected: Value 'arn:aws:execute-api:us-east-1:AIDAI2YYF3TYCI65FI3IM:rfj3hl9en0/*/*/*' at 'sourceArn' failed to satisfy constraint: Member must satisfy regular expression pattern: arn:aws:([a-zA-Z0-9\-])+:([a-z]{2}-[a-z]+-\d{1})?:(\d{12})?:(.*)
Indeed - the code appears to be using the Access Key ID (GetUser().User.UserId
) instead of the Account ID in forming the sourceARN
.
I see similar failures for any of the example-projects
other than hello-world
.
Is there some more specific requirement on how AWS credentials are provided to Claudia for these tests/examples to work?
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Validation error ... Member must satisfy regular expression ...
I'm trying to stream rds through kinesis data stream but it is giving me this error: botocore ...
Read more >AWS Lambda Action - Genesys Cloud Developer Center
Execute: [Lambda error] Caused by: 1 validation error detected: ... at 'functionName' failed to satisfy constraint: Member must satisfy ...
Read more >Avoid the "Unable to validate the following destination ... - AWS
I receive the following error: "Unable to validate the following destination configurations." When I try to set a dependency on the SNS ...
Read more >Unable to create a Lambda permission for API gateway
I've submitted a bug report: Unsure if a bug. I'm trying to create a lambda permission, but I want a dynamic ARN to...
Read more >failed to satisfy constraint: member must have length less than ...
aws test-invoke-authorizer: 'token' failed to satisfy constraint: Member must ... failed: Error creating Lambda function: ValidationException: 1 validation ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My credentials are using an access key for an IAM user.
You can parse the account id out of
User.Arn
perhaps?great. thanks for reporting this!