_This issue was originally opened by @reliam as hashicorp/terraform#15238. It was migrated here as part of the provider split. The original body of the issue is below._
Hello!
When configuring AWS Inspector with Terraform, I noticed the feature to send findings to SNS is unavailable. Has this yet to make its way into terraform?
Thank you for any insight into this issue!
➜ terraform --version
Terraform v0.9.8
Ability to configure Inspector to send findings to a SNS topic
Feature currently unavailable
Login to AWS Console > Inspector > Assessment Templates
Select an assessment template > SNS Topics
Per https://www.terraform.io/docs/providers/aws/r/inspector_resource_group.html, the argument to set an SNS topic is unavailable.
The use case is to have Inspector send its findings to SNS, which is subscribed to by a Lambda function that parses, normalizes and sends data to a log aggregator.
I believe this functionality is lacking as well.
Any tentative date to enhance "inspector_assessment_template" to support SNS ?
Are there any plans to address this one ?
Can't believe this has been open since June 2017...
The corresponding CLI calls for template creation don't actually expose a way to do this.
The way it's handled is by a call to subscribe-to-event
which would turn this issue into one requiring the creation of a new resource instead of just modifying an existing one.
Just to add a bit more to this - it looks like unsubscribe-from-event
is the opposite of subscribe-to-event
. This should be a fairly straightforward thing to implement. I don't think I'll have the time to do it myself in the next 2-3 months, but I might try to find some afterwards if no-one else starts addressing this.
I think I've got it working, submitting a PR shortly
submitted PR terraform-providers/terraform-provider-aws#12261 . I'd appreciate if you thumb'd it up for visibility 👍
Most helpful comment
submitted PR terraform-providers/terraform-provider-aws#12261 . I'd appreciate if you thumb'd it up for visibility 👍