I am very new in cloud computing world(including Amazon Web Service), so I have a very simple question:
Thanks!
In the navigation bar choose your account name and then choose Settings to navigate to the Unified Settings page. Choose Edit next to Localization and default Region. Select your default Region, then choose Save changes.
SQS is a regional service, that is highly available within a single region. There is no cross-region replication capability.
Amazon SNS supports the cross-region delivery of notifications to Amazon SQS queues and to AWS Lambda functions. When one of the Regions is an opt-in Region, you must specify a different Amazon SNS service principal in the subscribed resource's policy.
To find your Regions using the consoleOpen the Amazon EC2 console at https://console.aws.amazon.com/ec2/ . From the navigation bar, choose the Regions selector. Your EC2 resources for this Region are displayed on the EC2 Dashboard in the Resources section.
There's a better way to do it now that uses the Amazon.RegionEndpoint class rather than using a url string. The Visual Studio intellisense will give you all the regions.
AmazonSQS sqs = AWSClientFactory.CreateAmazonSQSClient(RegionEndpoint.USWest2);
Also, you don't need to pass the appConfig["AWSAccessKey"] in the parameters as long as you have it defined in the app.config. It'll find it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With