Description
AWS processors using the v2 client library (SQS, Lambda, DynamoDB, Kinesis) fail to set up proxy access properly. The proxy endpoint URI needs to be constructed and passed in the AWS client. Despite the javadoc says "the endpoint is limited to a host and port", the scheme must also be provided in the URI. Otherwise it leads to error (in case of IP) or the proxy config is just ignored (in case of localhost).
java.lang.IllegalArgumentException: Illegal character in scheme name at index 0: 192.168.0.10:8080 at java.base/java.net.URI.create(URI.java:932) at org.apache.nifi.processors.aws.v2.AbstractAwsSyncProcessor$1.configureProxy(AbstractAwsSyncProcessor.java:94) at org.apache.nifi.processors.aws.v2.AbstractAwsProcessor.configureSdkHttpClient(AbstractAwsProcessor.java:309) at org.apache.nifi.processors.aws.v2.AbstractAwsSyncProcessor.createSdkHttpClient(AbstractAwsSyncProcessor.java:104) at org.apache.nifi.processors.aws.v2.AbstractAwsSyncProcessor.configureHttpClient(AbstractAwsSyncProcessor.java:71) at org.apache.nifi.processors.aws.v2.AbstractAwsProcessor.configureClientBuilder(AbstractAwsProcessor.java:275) at org.apache.nifi.processors.aws.v2.AbstractAwsProcessor.configureClientBuilder(AbstractAwsProcessor.java:268) at org.apache.nifi.processors.aws.v2.AbstractAwsSyncProcessor.createClient(AbstractAwsSyncProcessor.java:65)