Configuration in AWS SNS
Implementing the SMS service requires some steps to be taken in the AWS console and others in the S-Filer Portal administrative console. in the S-Filer Portal administrative console.
The following steps are performed in the AWS console and require the necessary permissions to create resources.
Step 1 - Connect to the AWS console
Log on to the AWS console (https://aws.amazon.com/console/) using your browser and login details.
Step nº 2 - Creating an IAM user
To reduce security risks, we recommend creating a specific IAM policy and user for S-Filer Portal. This user must have the necessary permissions to access the SNS service.
From the home page, use the search bar to access the IAM service. Use the link in the top right-hand corner of the page to create a new IAM policy.
When the policy creation panel appears, copy the following JSON.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "SNSPublishAccess",
"Effect": "Allow",
"Action": "sns:Publish",
"Resource": "*"
},
{
"Sid": "SMSSendAccess",
"Effect": "Allow",
"Action": [
"sms-voice:SendTextMessage"
],
"Resource": "*",
"Condition": {
"StringEquals": {
"aws:CalledViaLast": "sns.amazonaws.com"
}
}
}
]
}
Click on the Next button at the bottom of the page to access the last policy configuration page.
Give the new policy a meaningful name and click on the Create Policy button to create the IAM policy.
Return to the IAM user list and click on Create user.
When the user creation panel appears, give the user a meaningful name. Click on the Next button at the bottom of the page to access the authorization configuration page.
In the Permissions control panel, select Attach policies directly and browse for the policy you've previously created. Click on the Next button at the bottom of the page to validate the user parameters. When everything is configured, click on the Create user button to create the IAM user.
Then return to the list of IAM users and click on the user you have just created. Use the Create access key link in the “Summary” section. This will create an access key for the IAM user. A panel will appear showing best practices and alternatives for access keys. Select the “Other” option at the bottom of the list and click on the Next button.
In the next panel, take a moment to give a description to the access key being created and press the Create Access Key button. This will create the access key and the access secret.
Make a note of the access key and secret access key. This information will be needed to configure S-Filer Portal.
Step nº 3 - Creating an SNS environment
From the home page, use the search bar to access the SNS service.
Use the link in the top left-hand corner of the page to access the SMS section.
Test environment (Sandbox)
In order to be able to send SMS, we recommend that you do not use the SNS Sandbox mode. To do so, you need to request a switch to production mode. For further information, please consult the official documentation.