let query = RDSDataService.ExecuteStatementRequest(database: "SotoDB", resourceArn: clusterArn, secretArn: secretArn)
self.rds.executeStatement(query).wait()
Notice you get a validation error:
ValidationError: Length of ExecuteStatementRequest.resourceArn (101) is greater than the maximum allowed value 100.
Expected behavior
Don't make an assumption on that the ARN will be less than 100
Setup (please complete the following information):
OS: Amazon Linux2
Version of soto: 5.2
Authentication mechanism [hard-coded credentials, IAM Instance Profile on EC2, etc]
Additional context
Add any other context about the problem here. If this a bug related to a command not working can you run the same command on a client initialised with the logging middleware. eg S3(region: .useast1, middlewares:[AWSLoggingMiddleware()])
Describe the bug Aurora Serverless Cluster ARNs can have more than 100 characters.
Suggestion Change the max length to 2048 https://docs.aws.amazon.com/IAM/latest/APIReference/API_Policy.html
To Reproduce Steps to reproduce the behavior:
cluster.clusterArn
Expected behavior Don't make an assumption on that the ARN will be less than 100
Setup (please complete the following information):
Additional context Add any other context about the problem here. If this a bug related to a command not working can you run the same command on a client initialised with the logging middleware. eg
S3(region: .useast1, middlewares:[AWSLoggingMiddleware()])