Hi all,

We're currently utilizing the AWS SNS Notification Service message but, as those of you that might know, it seems to require an IAM user account. I would like to avoid this by using an IAM role assigned to the EC2 instance instead but I don't know if this is possible as the parameters that are required are:

1. AWS Access Key ID 2. AWS Secret Access Key

I don't know if IAM roles have an AWS Key or Secret Access Key. Does anyone know if it is possible to assign an IAM role and use that instead of the IAM user?

Thanks!


Article Comments

Hello,

Thank you for your message.

According to the documentation from Amazon, IAM Role also provides credentials however, there are temporary and only valid 1 hour from when there are retrieved through the user portal (can be extended to 12 hours).

Therefore, if IAM role works as well, you have to change the credentials in the notification automatically. To do so, you could use the following API call, however notice that we do not provide support for it.

https://PRTGServer/editsettings?id=ID&CREDENTIAL=VALUE&username=PRTGUser&passhash=PASSHASH
Description
PRTGServerPRTG Server IP address or DNS name
IDNotification Template id
CREDENTIALSetting you want to modify: accesskeyid_15 / secretaccesskeyid_15
VALUENew value
PRTGUserAccount name
PASSHASHUser passhash

Regards.


Jan, 2021 - Permalink