Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provider/aws: feature request: Add a aws_sns_topic_permission resource #6042

Closed
keymon opened this issue Apr 6, 2016 · 3 comments
Closed

Comments

@keymon
Copy link
Contributor

keymon commented Apr 6, 2016

What

Lambda functions have a resource lambda_permission to allow grant permissions to resources to invoke them.

We need the same for SNS, which behaves and exposes similar API the methods than lambda: AddPermission and RemovePermission.

Example

resource "aws_sns_topic_permission" "with_cloudwatch" {
    statement_id = "AllowPublishFromCloudWatch"
    action = "Publish"
    topic_name = "${aws_sns_topic.example.name}"
    principal = "events.amazonaws.com"
    source_arn = "${aws_cloudwatch_event_rule.console.arn}"
}

References

@radeksimko
Copy link
Member

radeksimko commented Mar 29, 2017

Hi @keymon
we have support for aws_sns_topic_policy since 0.7.3 (September 5, 2016) which does pretty much what you described.

Do you agree we can close this issue now or do you have any specific use case that isn't covered by that resource?

@radeksimko radeksimko added the waiting-response An issue/pull request is waiting for a response from the community label Mar 29, 2017
@keymon
Copy link
Contributor Author

keymon commented Mar 29, 2017

Yes, ofc.

@keymon keymon closed this as completed Mar 29, 2017
@radeksimko radeksimko removed the waiting-response An issue/pull request is waiting for a response from the community label Mar 30, 2017
@ghost
Copy link

ghost commented Apr 14, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants