Aram
09/02/2021, 2:16 PMnew Topic(this, 'Topic', {
subscribers: [networkHandleTicker],
snsTopic: sns.Topic.fromTopicArn(this, 'TickPerSecondTopic', 'arn:aws:sns:us-east-2:xxxxxxxxxxxx:shared-sharedSubminute-tickPerSecondTopic'),
});
but I'm getting an error telling me NetworkHandleTickerTickPerSecondTopicDA486C85 Topic does not exist (Service: AmazonSNS; Status Code: 404; Error Code: NotFound; Request ID: 3e76aefd-c5d9-5d10-8335-f75719c5fde6; Proxy: null)
I can confirm that the topic is thereAshishkumar Pandey
09/02/2021, 2:40 PMAram
09/02/2021, 2:41 PMus-east-2
Ashishkumar Pandey
09/02/2021, 2:47 PMAram
09/02/2021, 2:49 PMAram
09/02/2021, 2:49 PMAshishkumar Pandey
09/02/2021, 2:51 PMAram
09/02/2021, 3:17 PMAshishkumar Pandey
09/02/2021, 3:39 PMFrank
Aram
09/03/2021, 10:14 AMFrank
aws sns get-topic-attributes --topic-arn arn:aws:sns:us-east-2:xxxxxxxxxxxx:shared-sharedSubminute-tickPerSecondTopic
in ur terminal and make sure it exists
2. In ur SST code, right above new Topic
, import aws sdk and make the same getTopicAttributes
call and make sure it exists there
3. After u run sst deploy
, go into .build/cdk.out
and inspect the CFN template and ensure the topic name/arn are correct
4. Go into CFN console, and ensure the stack is deployed to the correct account/regionFrank
Aram
09/04/2021, 8:09 PM-tickPerSecondTopic
to -TickPerSecondTopic
, my bad, sorry for the headache and thanks a lot for the help, trying suggested option 1 revealed that actually))Frank