-
Notifications
You must be signed in to change notification settings - Fork 1
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
Allow configuration of created SNS topic #90
Comments
This is great feedback! Keep it coming. I will get on these issues as soon as I can. |
Unfortunately the Currently a decision is made to keep the version as low as possible to provide support for as many users as possible. See issue below where it was merged into What I am working now on is the older solution where you provide a topic policy which I believe provides the same result. This will be exposed as an optional I will add a new issue in the backlog with it blocked by the version. See below: const topic = new sns.Topic(this, 'Topic');
const policyDocument = new iam.PolicyDocument({
assignSids: true,
statements: [
new iam.PolicyStatement({
actions: ["sns:Publish"],
principals: [new iam.ServicePrincipal('s3.amazonaws.com')],
resources: [topic.topicArn],
}),
],
});
const topicPolicy = new sns.TopicPolicy(this, 'Policy', {
topics: [topic],
policyDocument,
enforceSSL: true,
}); 2nd option in the list. The PR for this will be opened soon. |
After further investigation this solution will not work as the const topicPolicy = new sns.TopicPolicy(this, 'Policy', {
topics: [topic],
policyDocument,
enforceSSL: true, // <<<<<< NOT supported in`[email protected]`
}); |
Reopened in a Blocked state. This issue is blocked due to the |
Could you support an existing |
This would be possible. I will create a new issue then and close this one. |
I hope your issue is now resolved. Thank you very much for the feedback. Feel free to reach out if you have any questions. You are also welcome to contribute if you would like to do so! |
Following from the use case described in #89 we'd like to
enforceSSL
on SNS topics.We can't see a way to do this with the current code.
The text was updated successfully, but these errors were encountered: