-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
status: resolved/fixedResolved with a fix or an implementationResolved with a fix or an implementationstatus: response requiredWaiting for a response from the reporterWaiting for a response from the reporterstatus: staleTo be closed soon due to stalenessTo be closed soon due to stalenesstype: bugBug reportBug report
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
Statement ID should be [0-9a-zA-z_/-]+ but localstack accepts for instance "example.com"
Expected Behavior
No response
How are you starting LocalStack?
With a docker run command
Steps To Reproduce
c := lambda.NewFromConfig(cfg)
api := &lambda.AddPermissionInput{
Action: aws.String("lambda:InvokeFunction"),
FunctionName: aws.String(arn),
Principal: aws.String("events.amazonaws.com"),
StatementId: aws.String("example.com),
EventSourceToken: nil,
FunctionUrlAuthType: "",
PrincipalOrgID: nil,
Qualifier: nil,
RevisionId: nil,
SourceAccount: nil,
SourceArn: aws.String(rnARN),
}
_, err = c.AddPermission(context.Background(), api)Environment
- OS: Ubuntu 20.04
- LocalStack: 1.4.0 proAnything else?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
status: resolved/fixedResolved with a fix or an implementationResolved with a fix or an implementationstatus: response requiredWaiting for a response from the reporterWaiting for a response from the reporterstatus: staleTo be closed soon due to stalenessTo be closed soon due to stalenesstype: bugBug reportBug report