Replies: 2 comments 4 replies
-
I think this might be too specialized for the @rix0rrr what do you think? |
Beta Was this translation helpful? Give feedback.
4 replies
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am currently using 'aws-cdk-lib/pipelines' to provision a self-updating pipeline. I have a single stack which deploys my infrastructure, consisting in a VPC and a MySQL db. Then, I need to run a bash script that initializes or migrates the db and deploys my Lambda functions using Serverless framework. The script is just this:
I have created a
new CodePipeline
which has a singleDevStage
which has a singleDevStack
. This dev stack creates the aforementioned infra.I then added a post
CodeBuildStep
to execute mybuild.sh
script. This ran correctly until I needed to include the vpc parameter: I found no way to correctly pass down the vpc object from the DevStack to the PipelineStack. I tried several approaches (useec2.Vpc.fromLookup
, create the vpc within the PipelineStack, use SSM) but they all lead to different errors.Then I tried to create the CodeBuild project within the DevStack: This is correctly created but the CodeBuild is never executed, and the Pipeline succeeds after it. I need to make the build part of the pipeline to verify it deployed correctly.
What is the correct approach? I can provide some code if required. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions