Configure SNS Topic For AWS Config
Overview
Before you begin
Ensure you have the permission to:
Create an SNS Topic
Configure an AWS Config of the region for which you want to monitor the real-time state change
To know more about SNS, refer to your Amazon Web Services documentation.
You’ll need to set up an AWS SNS Topic to enable the HyperCloudTM Platform (HCP) to collect configuration change and budget trigger data. You can configure SNS topics for your AWS resources in two ways:
Create a new SNS Topic
Notes
To retrieve the HyperGrid SQS from the HyperCloud™ Platform:
Log in to your HCP portal account.
Navigate to Administration > System Settings > config.stream.sqs.arn.
Example: arn:aws:sqs:us-east-2:<<HyperGridAccountID>>:config-queueCopy the HyperGrid SQS.
Mail us at support@hypergrid.com if you do not see this information under your System Settings.
Follow these steps to create a new SNS Topic:
Sign in to your AWS Management Console.
Open your Amazon SNS console.
Create a new SNS Topic with the following name: hypergrid-config-topic.
From the SNS Topic wizard, configure these settings under Access Policy:
From the Define who can publish messages to the topic field – select Only the topic owner.
From the Define who can subscribe to the topic field – select Only requesters with certain endpoints.
Enter the endpoint ARN of your HyperGrid SQS.
The HyperGrid SRE subscribes HyperGrid SQS to the newly created SNS Topic.
Modify an existing SNS Topic
Notes
You will be modifying an existing SNS Topic associated with an ARN for HyperGrid AWS config on your AWS account and in the HCP Portal.
To view your SNS Topic on the HCP portal account:
Log in to your HCP portal account.
Navigate to System Settings > config.stream.sqs.arn.
Example: arn:aws:sqs:us-east-2:<<HyperGridAccountID>>:config-queue
Mail us at support@hypergrid.com if you do not see this information under your System Settings.
Follow these steps to modify the access policy for an existing SNS Topic and subscribe your HyperGrid SQS to the SNS Topic. To do so, you’ll need to add the following JSON policy:
Sign in to your AWS Management Console.
Open your Amazon SNS Topic.
Click Edit
Add the JSON to your SNS Access policy to subscribe your HyperGrid SQS to SNS topic.
{ "Sid":"__console_sub_0", "Effect":"Allow", "Principal":{ "AWS":"*" }, "Action":[ "SNS:Subscribe", "SNS:Receive" ], "Resource":"arn:aws:sns:us-east-1:<<CustomerAccountID>>:Customer-Config-Topic", "Condition":{ "StringLike":{ "SNS:Endpoint":"arn:aws:sqs:us-west-2:<<HyperGridAccountID>>:HyperGrid-Config-Queue" } } }
Contact the HyperGrid Support team to help you subscribe your HyperGrid SQS to the SNS topic.
Navigate back to your AWS Config on the AWS Management Console.
Verify that your AWS Config settings allow notifications to your SNS topic.
© 2020 CloudSphere