
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@serverless/aws-sns-topic
Advanced tools
Deploy SNS Topic to AWS in seconds with [Serverless Components](https://github.com/serverless/components).
Deploy SNS Topic to AWS in seconds with Serverless Components.
$ npm install -g serverless
Just create a serverless.yml
file
$ touch serverless.yml
$ touch .env # your development AWS api keys
$ touch .env.prod # your production AWS api keys
the .env
files are not required if you have the aws keys set globally and you want to use a single stage, but they should look like this.
AWS_ACCESS_KEY_ID=XXX
AWS_SECRET_ACCESS_KEY=XXX
# serverless.yml
name: my-topic
stage: dev
myTopic:
component: '@serverless/aws-sns-topic'
inputs:
name: my-topic
# optional display name
displayName: my-topic-display
# optional access policy
policy:
Version: '2008-10-17'
Id: policy_id
Statement:
- Effect: Allow
Sid: statement_id
Principal:
AWS: '*'
Action:
- SNS:Publish
- SNS:RemovePermission
- SNS:SetTopicAttributes
- SNS:DeleteTopic
- SNS:ListSubscriptionsByTopic
- SNS:GetTopicAttributes
- SNS:Receive
- SNS:AddPermission
- SNS:Subscribe
Resource: arn:aws:sns:us-east-1:123456789012:my-topic
Condition:
StringEquals:
AWS:SourceOwner: '123456789012'
# optional delivery policy
deliveryPolicy:
http:
defaultHealthyRetryPolicy:
minDelayTarget: 20
maxDelayTarget: 20
numRetries: 3
numMaxDelayRetries: 0
numNoDelayRetries: 0
numMinDelayRetries: 2
backoffFunction: linear
disableSubscriptionOverrides: true
defaultThrottlePolicy:
maxReceivesPerSecond: 3
# optional delivery status logging configuration
deliveryStatusAttributes:
- ApplicationSuccessFeedbackRoleArn: arn:aws:iam::123456789012:role/SNSSuccessFeedback
ApplicationSuccessFeedbackSampleRate: 50
ApplicationFailureFeedbackRoleArn: arn:aws:iam::123456789012:role/SNSFailureFeedback
- HTTPSuccessFeedbackRoleArn: arn:aws:iam::123456789012:role/SNSSuccessFeedback
HTTPSuccessFeedbackSampleRate: 50
HTTPFailureFeedbackRoleArn: arn:aws:iam::123456789012:role/SNSFailureFeedback
- LambdaSuccessFeedbackRoleArn: arn:aws:iam::123456789012:role/SNSSuccessFeedback
LambdaSuccessFeedbackSampleRate: 50
LambdaFailureFeedbackRoleArn: arn:aws:iam::123456789012:role/SNSSuccessFeedback
- SQSSuccessFeedbackRoleArn: arn:aws:iam::123456789012:role/SNSSuccessFeedback
SQSSuccessFeedbackSampleRate: 50
SQSFailureFeedbackRoleArn: arn:aws:iam::123456789012:role/SNSSuccessFeedback
$ serverless
Checkout the Serverless Components repo for more information.
FAQs
Deploy SNS Topic to AWS in seconds with [Serverless Components](https://github.com/serverless/components).
The npm package @serverless/aws-sns-topic receives a total of 0 weekly downloads. As such, @serverless/aws-sns-topic popularity was classified as not popular.
We found that @serverless/aws-sns-topic demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.