来源信息
- 仓库
- ThinkfleetAI/thinkfleet-engine
- 最近来源活动
- 2026年2月1日 16:21
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 0
- 分支
- 0
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- aws-sns
- description
- Manage AWS SNS topics, subscriptions, and publish notifications.
- metadata
- {"thinkfleetbot":{"emoji":"🔔","requires":{"bins":"[Truncated]","env":"[Truncated]"}}}
# AWS SNS
Manage SNS topics and publish notifications.
## List topics
```bash
aws sns list-topics --query 'Topics[].TopicArn' --output table
```
## Get topic attributes
```bash
aws sns get-topic-attributes --topic-arn "$SNS_TOPIC_ARN" | jq '.Attributes | {DisplayName, SubscriptionsConfirmed, SubscriptionsPending}'
```
## List subscriptions
```bash
aws sns list-subscriptions-by-topic --topic-arn "$SNS_TOPIC_ARN" --query 'Subscriptions[].{Endpoint:Endpoint,Protocol:Protocol,Status:SubscriptionArn}' --output table
```
## Publish message
```bash
aws sns publish --topic-arn "$SNS_TOPIC_ARN" \
--subject "Alert" \
--message "Deployment complete for v1.2.3" | jq '{MessageId}'
```
## Publish JSON message (protocol-specific)
```bash
aws sns publish --topic-arn "$SNS_TOPIC_ARN" \
--message-structure json \
--message '{"default":"Alert","email":"Email body","sms":"SMS text"}' | jq '{MessageId}'
```
## Subscribe endpoint
```bash
aws sns subscribe --topic-arn "$SNS_TOPIC_ARN" \
--protocol email --notification-endpoint user@example.com | jq '{SubscriptionArn}'
```
## Notes
- Email subscriptions require confirmation by the recipient.
- Confirm before publishing or subscribing endpoints.
在 GitHub 查看