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
display_name: "Display Name"
- endpoint: "arn:aws:lambda:ap-southeast-2:123456789:function:functionName"
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