Running AWS polly with cfexecute

196 views Asked by At

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.

1

There are 1 answers

0
James A Mohler On BEST ANSWER

A couple of things had to be done to fix this.

  • I had to go to services and find the account that ColdFusion was running under.
  • I then had to go to c:\users\service running CF
  • Then create a folder called .aws
  • Create a credential file and config file.

And then it runs

Note that this was done on Windows 2016