question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ValidationException: 'sourceArn' failed to satisfy constraint

See original GitHub issue

When 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:closed
  • Created 8 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lukehobancommented, Feb 21, 2016

My credentials are using an access key for an IAM user.

$ aws iam get-user
{
    "User": {
        "UserName": "adminuser",
        "Path": "/",
        "CreateDate": "2016-02-15T01:16:45Z",
        "UserId": "AIDAI2YYF3TYCI65FI3IM",
        "Arn": "arn:aws:iam::490047557317:user/adminuser"
    }
}

You can parse the account id out of User.Arn perhaps?

0reactions
gojkocommented, Feb 21, 2016

great. thanks for reporting this!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found