Translator app using the Aws machine translation Service
mvn package
run the DemoApplication class
follow the next guide: https://docs.aws.amazon.com/sdkref/latest/guide/access-sso.html#idcGettingStarted
You can use the next body in Postman, pointing to the Url: http://localhost:8080/translator
{
"source": "en",
"target": "es",
"text": "Hello world"
}
{
"source": "en",
"target": "es",
"answer": "Hola mundo",
"timestamp": "2023-09-13T20:46:34.698+00:00"
}
After some time, you would need to do a aws sso login --profile <profile-name>
and to refresh your credentials and then update them in the
./awas/credentials
file.
You can use aws configure list-profiles
to know you current profile.
Then sign in to the IAM Identity center.
The format of the URL is https://d-xxxxxxxxxx.awsapps.com/startor
your_subdomain.awsapps.com/start and
then go to the AWS Account/Command line programmatic access and copy the new credentials to update in your
./aws/credentials
file.