When setting up alerting on FreeNAS 11,x, I chose to use AWS’ free SNS Service. I was a SNS virgin before going through this, so I documented the procedures below.
- Assuming you already have an AWS Account (even if you arent paying for any services), you can add free SNS service to the account here: Amazon AWS SNS
- Upon logging into the SNS Dashboard, click “Create Topic”
- Give the topic and Name and Display Name
- Click “Create Subscription“. The topic ARN will already be filled out, so just select Email for Protocol, and put in the email address to receive the alerts. You will receive an email requesting you to click a link to confirm the subscription.
- After subscription confirmation, click on the subscription and note the Region and ARN, as this will be used in FreeNAS later.
- While still logged in with your AWS account, go the the AWS Identity and Access Management console (IAM). https://console.aws.amazon.com/iam/home#/home
- Click on the Users Menu, and then Add User. Create a Username and Select Programmatic Access as the access type.
- For policies for the user, select “AmazonSNSFullAccess“. (I am not sure if Full Access is required, but I didn’t have time to play around with lowest permissions needed.
- The final step on the AWS side, is to make note of the Access Key ID and Secret Access Key that is automatically created under the IAM user you just created.
- Login to your FreeNAS management console, and go to System – Alert Services. Click Add Alert Service, and have all that AWS info ready as follows:Service Name: AWS-SNS
Region: (Region found on the SNS Subscription)
ARN: (ARN found on the SNS Subscription)
Key ID: (Found under the AWS IAM account you created)
Secret Key: (Found under the AWS IAM account you created)
- Click OK (Before you Send Test Alert), and then click Edit on the Alert Service again, and from there you can send test alert. In my case, there was about a 1 min delay before email came in.