Open derrike opened 2 days ago
Attempted to reproduce this with a local cluster and it works fine; something must be different on AOS with this. Also, nothing in Flow Framework would produce a 502 error.
Placeholders work elsewhere in the template so it's possibly related to the fact that the credentials are encrypted.
@amitgalitz @owaiskazi19 do you have any ideas here?
What is the bug?
I am trying to setup a Workflow using the Flow Framework to connect to Claude using the
create_connector
provision type. I am setting up a variable for theroleArn
so that I can inject the actual role when the workflow gets provisioned. Example:When I go to CREATE the workflow using POST
_plugins/_flow_framework/workflow
, I receive a 502 error. If I replace just the variable placeholder with an actual invalid IAM Role, I get an error that says I'm not authorized to pass that role. This error tells me there the CREATE process is trying to pass a role at CREATE time. This shouldn't be happening, because the Flow Framework template wouldn't know what the role actually is at CREATE time. In this example, the Flow Framework would only know the actual role arn at PROVISION time (_provision
). That is when theAWS_BEDROCK_ROLE_ARN
would get injected, and would be available to be passed / validated.How can one reproduce the bug?
You can run the following example workflow in DevTools. This will generate a 502 error because it tries to pass the placeholder variable at CREATE time. Then you can substitute it for an actual AWS Role Arn, like:
arn:aws:iam::123456789012:role/MyCoolRole
. This will generate a Pass Role error, demonstrating that something is happening at CREATE time that shouldn't be happening. Finally, if you want you can substitute in an actual role that has permissions.What is the expected behavior?
The workflow can be provisioned with a placeholder variable in the
roleArn
section.What is your host/environment?
Managed OpenSearch 2.13. User that is making the call is configured as an AWS IAM Role in backend security.
Do you have any screenshots?
Do you have any additional context?
n/a