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: Move Anghammarad policy into CDK #618

Merged
merged 2 commits into from
Jun 23, 2021
Merged

Conversation

akash1810
Copy link
Member

@akash1810 akash1810 commented Jun 23, 2021

Builds on #598.

What does this change?

This change moves the Anghammarad permissions into the CDK defined stack.

The permissions get created as a policy in its own right, rather than statements on a generic "amigo-app" policy.

This results in a LOC increase to the resulting CFN template. That is, we're increasing the chance of reaching the CFN template limit!

This stack is pretty small, we should adjust strategy only when needed.

The change set includes changes to cdk/package.json and cdk/yarn.lock because @guardian/cdk has been updated to get the new construct (see guardian/cdk#626).

How to test

We only talk to Anghammarad on bake failure at the moment.

I've tested this by creating a bake in CODE that installs an invalid package (filebeat version X.Y.Z). We've successfully received the notification (screenshot below) 🎉 .

Thanks for the suggestion @jacobwinch !

image

How can we measure success?

We move closer to a CDK only template.

This change moves the Anghammarad permissions into the CDK defined stack.

The permissions get created as a policy in its own right,
rather than statements on a generic "amigo-app" policy.

This results in a LOC increase to the resulting CFN template.
That is, we're increasing the chance of reaching the CFN template limit!

This stack is pretty small, we should adjust strategy only when needed.
@akash1810 akash1810 requested a review from a team June 23, 2021 08:49
@akash1810 akash1810 merged commit 987f4fc into main Jun 23, 2021
@akash1810 akash1810 deleted the aa-replace-anghammarad-policy branch June 23, 2021 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants