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
• 15,360 points
78 views

1 answer to this question.

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
• 57,300 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
794 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
• 57,300 points
867 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
260 views
+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
• 15,360 points
427 views
0 votes
1 answer