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

feat: Add policy to allow writing to Anghammarad #626

Merged
merged 1 commit into from
Jun 22, 2021
Merged

Conversation

akash1810
Copy link
Member

What does this change?

Create a policy that allows sns:Publish to the Anghammarad SNS topic.

The Anghammarad SNS topic is used across multiple stacks, so we can promote it to an account wide ("account/services") parameter store location.

We then wrap this account wide parameter into the AnghammaradTopicParameter singleton, which the policy will add when necessary.

Does this change require changes to existing projects or CDK CLI?

Yes, they become a little DRYer as they no longer need to define this policy themselves.

Does this change require changes to the library documentation?

Yes and documentation is included.

How to test

Tests have been added that cover:

  • Automatic parameter addition (well, the implementation of the singleton)
  • The IAM policy

How can we measure success?

Creating a first class construct for Anghammarad permissions means downstream stacks become DRYer.

(I can also correctly spell Anghammarad!)

Have we considered potential risks?

n/a

@akash1810 akash1810 requested a review from a team June 22, 2021 11:36
Copy link
Contributor

@jacobwinch jacobwinch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work 👍

The documentation is very clear 💯

Create a policy that allows `sns:Publish` to the Anghammarad SNS topic.

The Anghammarad SNS topic is used across multiple stacks,
so we can promote it to an account wide ("account/services") parameter store location.

We then wrap this account wide parameter into the `AnghammaradTopicParameter` singleton,
which the policy will add when necessary.
@akash1810
Copy link
Member Author

Just noticed a typo ("am" instead of "an"). Have force pushed that change. Have also enabled auto merge.

@akash1810 akash1810 merged commit c5cb136 into main Jun 22, 2021
@akash1810 akash1810 deleted the aa-anghammarad branch June 22, 2021 12:48
@github-actions
Copy link
Contributor

🎉 This PR is included in version 19.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants