Why is subscriber optional on ansible sns

0 votes

I subscribe to a lambda function to an SNS topic. When I do this using the aws console or even the aws command-line interface, there is a column named "subscriber" in the subscription information, which contains my account id.

I am unable to control this field using neither AWS console nor the command-line. However, I can do the same thing using ansible.


- name: set up topic and subscribe lambda


   name: "topic_name"

   state: present

   display_name: "Display Name"


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

  protocol: "lambda"

  subscriber: 123456789

Here a couple of questions I had. Isn't the subscriber field optional? But the SNS messages do not seem to reach lambda without it.

  • What is this field for?

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

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

  • Why is it optional in Ansible 2.4

Aug 8, 2018 in AWS by bug_seeker
• 15,520 points

edited Jun 8, 2020 by Sirajul 604 views

1 answer to this question.

0 votes

Hey @bug_seeker, I could not find any reference to the field "subscriber".

I guess this could have been supported by the older sdk/api  which has now been dropped.

Although here are some findings from my research on this topic:

1. I couldn't find the subscriber field in the AWS console when subscribing to lambda. You can see the image below:

 2. Even in the AWS command line there is no such field. 

Link for SNS Subscribe command through CLI documentation.

answered Aug 8, 2018 by Priyaj
• 58,090 points

edited Jun 8, 2020 by Sirajul

Related Questions In AWS

0 votes
1 answer

How can I find out why my storage space on Amazon EC2 is full?

One or more log files which have ...READ MORE

answered Feb 21, 2022 in AWS by Korak
• 5,820 points
0 votes
0 answers
0 votes
2 answers

What is the difference between Amazon SNS and Amazon SQS?

Amazon SQS and SNS are the two ...READ MORE

answered Sep 9, 2020 in AWS by Michael
• 140 points
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+1 vote
2 answers

AWS CloudWatch Logs in Docker

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

answered Sep 7, 2018 in AWS by bug_seeker
• 15,520 points
0 votes
1 answer
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP