I have tested this curl from my ec2 command line: curl -XPUT -u 'myusernm:myuserpw' ' https://vpc-rampart-test-opensearch-nrqyb7jjpvmji6cp2qcvmyhcgq.us-east-1.es.amazonaws.com/movies/_doc/1' -d '{"director": "Burton, Tim", "genre": ["Comedy","Sci-Fi"], "year": 1996, "actor": ["Jack Nicholson","Pierce Brosnan","Sarah Jessica Parker"], "title": "Mars Attacks!"}' -H 'Content-Type: application/json'
It successfully puts the json into my Amazon OpenSearch domain. That domain in the URL above is the Domain endpoint shown on the AWS dashboard for its OpenSearch service. In NiFi the JSON is my flowfile content. I am trying to get my ExecuteStreamCommand to run the curl, but it fails. NiFi indicates it gets back this: "message": "Request forbidden by administrative rules" This is how I have the processor configured. Command Arguments - -XINPUT;-u;myusernm:myuserpw; https://vpc-rampart-test-opensearch-nrqyb7jjpvmji6cp2qcvmyhcgq.us-east-1.es.amazonaws.com/movies/_doc/1;-H;'Content-Type: application/json' Command Path - /usr/bin/curl Ignore STDIN - false Argument Delimiter - ; Max Attribute Length - 256 How can this be configured in the ExecuteStreamCommand processor to run successfully? If the ExecuteStreamCommand executes the command just as if we were at the command line, what is getting in the way here when I try to run this from NiFi?
