sns_subscribe
Subscribe an endpoint to an SNS topic in LocalStack, enabling message delivery to SQS, HTTP/S, email, or Lambda during local development.
Instructions
Subscribe an endpoint to an SNS topic in LocalStack
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"topicArn": "<topicArn>",
"protocol": "<protocol>",
"endpoint": "<endpoint>"
},
"name": "sns_subscribe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint | Yes | Endpoint to subscribe (e.g. SQS ARN, URL, email) | |
| protocol | Yes | Subscription protocol | |
| topicArn | Yes | Topic ARN |