You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but none of those answer clearly the questions I have regarding some design issues, so I'll try here before reinventing the wheel.
As the first question, I would like to ask where can I find an example of a Typescript + Lambda + cdkv2 example pipeline setup that should be treated as a model. I would like to compare this to our old setup to see for example how LocalStack (local development) is used for testing, before pushing the code to git to start the pipeline.
In the old setup, we had something like this (what is very ugly and I'd think this should be somehow natively addressed by cdk):
if(local_mode=='true'){// this is executed with `cdk deploy -c local_mode=true` when a developer wants to deploy without a pipeline to the DEV account to TEST whether Lambda Typescript changes work as expected// internally, this is overriding LayerVersion and AssetCode to get them from local directory instead of S3 artefact objectnewMyAppLocalStack(app);}elseif(local_mode=='false'){// this is executed by the pipeline to actually get the proper S3 artefact built during the pipeline runnewMyAppPipelineStack(app);}else{// finally this is executed via a separate devops pipeline that gets triggered when a bitbucket (server) code is uploadednewDynamicPipelineStack(app,'dynamic-Pipeline-Stack',{
deployedStackName,
deployedStackType,
deployedStackVersion,});}
I'm trying to somehow decouple and simplify this setup, any ideas are welcome, however my main question is:
How does cdkv2 pipeline setup address the need of local (or DEV/non-pipeline) testing?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In preparation to migrate from cdkV1 to V2, I'm reading the following pages:
but none of those answer clearly the questions I have regarding some design issues, so I'll try here before reinventing the wheel.
As the first question, I would like to ask where can I find an example of a Typescript + Lambda + cdkv2 example pipeline setup that should be treated as a model. I would like to compare this to our old setup to see for example how LocalStack (local development) is used for testing, before pushing the code to git to start the pipeline.
In the old setup, we had something like this (what is very ugly and I'd think this should be somehow natively addressed by cdk):
I'm trying to somehow decouple and simplify this setup, any ideas are welcome, however my main question is:
How does cdkv2 pipeline setup address the need of local (or DEV/non-pipeline) testing?
How can I migrate from the following v1 API:
to v2?
Beta Was this translation helpful? Give feedback.
All reactions