Jean-Yves NOLEN created NIFI-9492: ------------------------------------- Summary: Failed to parse AWS region from Chinese VPCE endpoint URL in AbstractAWSProcessor Key: NIFI-9492 URL: https://issues.apache.org/jira/browse/NIFI-9492 Project: Apache NiFi Issue Type: Bug Affects Versions: 1.14.0 Reporter: Jean-Yves NOLEN
Hello we discovered that AbstractAWSProcessor cannot properly parse Chinese VPCE endpoint We received this kind of error : {code:java} GetSQS[id=] Failed to receive messages from Amazon SQS due to Credential should be scoped to a valid region, not 'vpce'. (Service: AmazonSQS; Status Code: 403; Error Code: SignatureDoesNotMatch; Request ID: ; Proxy: null): com.amazonaws.services.sqs.model.AmazonSQSException: Credential should be scoped to a valid region, not 'vpce'. (Service: AmazonSQS; Status Code: 403; Error Code: SignatureDoesNotMatch; Request ID: ; Proxy: null) {code} And the reason is that here the format of Chinese VPCE : {code:java} https://vpce-0deadbeefaaaaaaaa-rAn0dom.sqs.cn-north-1.vpce.amazonaws.com.cn {code} Endpoint ends with +amazonaws.com.cn+ instead of +vpce.amazonaws.com+ So with configuration available at: [https://github.com/apache/nifi/blob/rel/nifi-1.14.0/nifi-nar-bundles/nifi-aws-bundle/nifi-aws-abstract-processors/src/main/java/org/apache/nifi/processors/aws/AbstractAWSProcessor.java#L157] and then : [https://github.com/apache/nifi/blob/rel/nifi-1.14.0/nifi-nar-bundles/nifi-aws-bundle/nifi-aws-abstract-processors/src/main/java/org/apache/nifi/processors/aws/AbstractAWSProcessor.java#L322] Cannot work. -- This message was sent by Atlassian Jira (v8.20.1#820001)