I have a workflow to fetch temporary AWS Access Key ID and AWS Secret Key ID to be used in subsequent AWS4 calls, however I can't see how to include a variable in these fields when setting up the API resource, did I miss something or is this currently not possible?
@fireb1adex Can you share your current set up? Usually, in a workflow, you can forward the result from 1 block to the next. If you have 1 block that fetches the access & secret key, the next block can use those values to make subsequent requests.
A resource has a static configuration that cannot use the result of a workflow, but some resource does support custom authentication that you can plug your code into.
Please share more information about what you're doing and maybe we can advise what's best to do in your case.
Hey Harry, this is for an integration with Amazon SP-API, calls made need to use the AWS4 auth, which signs the requests. I saw there is a custom REST request, but due to the requirement for the AWS4 auth, I couldn't see that it could be used.
The process is to assume a role, using your normal AWS id and secret. You're given a temporary id and secret to use from there onwards, and these temporary credentials can't be passed to a resource.
I guess in short, I need to use AWS4 auth, but AWS4 auth is locked for use only with a resource, and resources dont allow variables to be used for the AWS id and secret.
Hope that makes sense!