Python example #208
-
Hey. Do you know maybe any python example when using cdk pipelines?
The above is a subset... Anyway. Then I'm crating monitoring class
and inside CDK STAGE
for now looks simple:
The issue what I see now is that the FrontEndMonitoringStack want's to create all resources defined inside FrontEndStack. I was thinking that FrontEndMonitoringStack will use resources definition from the FrontEndStack to create CW dashbard, metrics, alarms, subscriptions etc, but apparently I was mistaken. So my question is how I can use properly your great work to create monitoring resources without duplicating already running services deployed in AWS from the FrontEndStack. Regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
The parent to both the stacks (FrontEnd and FrontEndMonitoring) should be the scope of the stage (i.e. the cdk App). You can pass the FrontEnd stack as a prop to the FrontEndMonitoring stack instead of the parent. |
Beta Was this translation helpful? Give feedback.
-
So what is solution in code? very keen to know for someone who don't use nested stack in CDK |
Beta Was this translation helpful? Give feedback.
The parent to both the stacks (FrontEnd and FrontEndMonitoring) should be the scope of the stage (i.e. the cdk App). You can pass the FrontEnd stack as a prop to the FrontEndMonitoring stack instead of the parent.