I am trying to use AWS Polly inside of ColdFusion.
This works just fine
<cfscript>
cfexecute(
variable = "standardOutput",
name = "aws",
arguments = "polly help",
timeout = 100
);
</cfscript>
<h3>Results</h3>
<cfoutput><pre>#standardOutput#</pre></cfoutput>
This does not apart
<cfscript>
cfexecute(
variable = "standardOutput",
name = "aws",
arguments = "polly describe-voices",
timeout = 100
);
</cfscript>
<h3>Results</h3>
<cfoutput><pre>#standardOutput#</pre></cfoutput>
Thoughts
I suspect that cfexecute
is running under different credentials than when I type it in on a command prompt. I wondering if I just need to pass in Amazon Web Services credentials somehow.
A couple of things had to be done to fix this.
c:\users\service
running CF.aws
credential
file and config
file.And then it runs
Note that this was done on Windows 2016