Why is subscriber optional on ansible sns

0 votes

When I am subscribing a lambda function to an SNS topic through either the aws console or aws cli there is a column shown in the subscription information called "subscriber". It does contain my account id.

I don't seem to be able to control this field through the cli or console however I can through ansible:

---

- name: set up topic and subscribe lambda

sns_topic:

   name: "topic_name"

   state: present

   display_name: "Display Name"

   Subscriptions:

        - endpoint: "arn:aws:lambda:ap-southeast-2:123456789:function:functionName"

  protocol: "lambda"

  subscriber: 123456789

The subscriber field is optional, however SNS messages do not seem to reach lambda without it.

  • What is this field for?

  • Can I subscribe Lambdas in other accounts to my SNS topic?

  • How can I effect change in this field with AWS CLI?

  • Why is it optional in Ansible 2.4

Aug 8, 2018 in AWS by bug_seeker
• 14,970 points
37 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Couldn't find reference to ghost field i.e. subscriber.

Maybe it was supported in older sdk/api and now has been dropped.

Reseach:

  1. I don't see subscriber field in the console when subscribing lambda. Image below

enter image description here

  1. Even through CLI, there is no such field

  2. Link for SNS Subscribe command through CLI documentation.

[Extra Research]: Even the java sdk asks for only three parameters in order to subscribe

subscribe(String topicArn, String protocol, String endpoint)

answered Aug 8, 2018 by Priyaj
• 56,120 points

Related Questions In AWS

0 votes
1 answer

What is the difference between Amazon SNS and Amazon SQS?

SNS is a distributed publish-subscribe system and the messages are pushed to ...READ MORE

answered Jul 30, 2018 in AWS by Mrunal
• 680 points
383 views
+6 votes
2 answers

Why S3 is called a Object storage?

Amazon S3 stores data as objects within resources called "buckets".  Object storage, also ...READ MORE

answered Sep 24, 2018 in AWS by Priyaj
• 56,120 points
71 views
+13 votes
2 answers
+1 vote
2 answers

AWS CloudWatch Logs in Docker

The awslogs works without using ECS. you need to configure ...READ MORE

answered Sep 6, 2018 in AWS by bug_seeker
• 14,970 points
230 views
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.