Punter Vicky
Punter Vicky

Reputation: 16982

Access SQS from On-Prem Servers

I am trying to post messages to SQS queue from on-prem servers. When I run it locally , I use AWS secret id and key to post messages to SQS. But this is something that I need to generate every few hours. If I want to deploy this solution to a server and not have to refresh the token every few hours , what is the solution that I must adopt?

Upvotes: 3

Views: 4766

Answers (1)

E.J. Brennan
E.J. Brennan

Reputation: 46841

If you use any of the AWS SDK'S to build your on-premise application, you give the application the IAM access keys (the access key id and the secret access key), (often these end up in your ~/.aws subdirectory but it might vary for each language) and then each time your on-premise application calls any of the AWS functions the the AWSSDK, the app will provide the necessary keys.

These keys should only be given the bare minimum of rights to do only what you want, for example, in you case, the would have only rights to post messages to a particular SQS queue.

Upvotes: 4

Related Questions