-
Notifications
You must be signed in to change notification settings - Fork 15
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
Errors while deploying egress backend app #73
Comments
Is this a race condition- is the custom resource trying to notify SNS in the same stack? |
While I have encountered race conditions with CDK apps before, I don't believe this is one. There was a very recent change from the security review: 3de0a3d#diff-c28d34187f2bc27b26c2942353c46f2e7568c8316cdc79b83c86ddf62d207698R151 , which added encryption to that SNS topic. I think we also need to add some additional permissions (KMS key related) for the resource throwing the error for it to publish to that topic now. We will prioritise fixing this in the morning to make the deployment work with this encryption enhancement too. |
Adding
to the egress_backend_stack.py is one way to fix this (just tested cdk deploy and it completed all steps). I don't know if there's a more permission restrictive way to do it, I'll let @awskaran advise. |
Yes the commit from security review broke it, i was under an impression, cdk would smartly grant the permission on the KMS. I will add the required permission explicitly. |
#74 fixes the original issue, but there's a follow-up problem that needs to be investigated:
I made this change: diff --git a/src/components/egress_app_backend/egress_backend/components/email_configuration_set_event_dest/email_configuration_set_event_dest_cr.py b/src/components/egress_app_backend/egress_backend/components/email_configuration_set_event_dest/email_configuration_set_event_dest_cr.py
index 96a1cbc..d06cfd1 100644
--- a/src/components/egress_app_backend/egress_backend/components/email_configuration_set_event_dest/email_configuration_set_event_dest_cr.py
+++ b/src/components/egress_app_backend/egress_backend/components/email_configuration_set_event_dest/email_configuration_set_event_dest_cr.py
@@ -46,6 +46,7 @@ class EmailConfigurationSetEventDestinationCustomResource(cdk.Construct):
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents",
+ "ses:CreateConfigurationSetEventDestination",
],
)
) |
When I attempt to deploy the data egress backend I keep seeing an error:
This matches the logwatch logs:
This was run using the deployment EC2 instance with these additional permissions: #72
The text was updated successfully, but these errors were encountered: