Setting up access for Amazon SNS
Before you can use Amazon SNS, you must complete the following steps.
Topics
Step 1: Create an AWS account and an IAM administrator user
To access any AWS service, you must first create an AWS account
-
Navigate to the AWS home page
, and then choose Create an AWS Account. -
Follow the instructions.
Part of the sign-up procedure involves receiving a phone call and entering a PIN using the phone keypad.
-
When you finish creating your AWS account, follow the instructions in the IAM User Guide to create your first IAM administrator user and group.
Step 2: Create an IAM user and get your AWS credentials
To avoid using your IAM administrator user for Amazon SNS operations, it is a best practice to create an IAM user for each person who needs administrative access to Amazon SNS.
To work with Amazon SNS, you need the AmazonSNSFullAccess
policy and AWS
credentials that are associated with your IAM user. These credentials are comprised of
an access key ID and a secret access key. For more information, see What Is IAM? in the
IAM User Guide and AWS Security Credentials
in the AWS General Reference.
-
Sign in to the AWS Identity and Access Management console
. -
Choose Users, Add user.
-
Type a User name, such as
AmazonSNSAdmin
. -
Select Programmatic access and AWS Management Console access.
-
Set a Console password and then choose Next: Permissions.
-
On the Set permissions page, choose Attach existing policies directly.
-
Type
AmazonSNS
into the filter, choose AmazonSNSFullAccess, and then choose Next: Tags. -
On the Add tags (optional) page, choose Next: Review.
-
On the Review page, choose Create user.
The IAM user is created and the Access key ID is displayed, for example:
AKIAIOSFODNN7EXAMPLE
-
To display your Secret access key, choose Show, for example:
wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Important You can view or download your secret access key only when you create your credentials (however, you can create new credentials at any time).
-
To download your credentials, choose Download .csv. Keep this file in a secure location.
Next steps
Now that you're prepared to work with Amazon SNS, get started by creating a topic, creating a subscription for the topic, publishing a message to the topic, and deleting the subscription and topic.