If you've previously downloaded and configured the AWS CLI, Amazon Polly might be unavailable unless you reconfigure the AWS CLI. The following procedure checks to see if this is necessary.
To reactivate Amazon Polly from the AWS CLI
-
Verify the availability of Amazon Polly by typing the following help command at the AWS CLI command prompt.
aws polly help
If you see a description of Amazon Polly and a list of valid commands appears in the AWS CLI window, you can use Amazon Polly from the AWS CLI immediately. In this case, you can skip the rest of this procedure. If this is not displayed, continue with Step 2.
-
Activate Amazon Polly using one of the two following options:
-
Uninstall and reinstall the AWS CLI.
For instructions, see Installing the AWS Command Line Interface in the AWS Command Line Interface User Guide.
or
-
Download the file service-2.json.
At the command prompt, run the following command.
aws configure add-model --service-model
file://service-2.json
--service-name polly
-
-
Reverify the availability of Amazon Polly.
aws polly help
The description of Amazon Polly should be visible.