I had built an AWS CDK code pipeline that triggers build on every git commit, but I want to trigger the build throw client function can anyone please guide me on how can I trigger the start-pipeline function throw the client-side.
You can use the AWS CLI to start the pipeline manually, the same thing is possible via a API call.
From: Start a pipeline manually
aws codepipeline start-pipeline-execution --name MyFirstPipeline
Alternatively you can add a review button within CodePipeline.
From: Manage approval actions in CodePipeline
In AWS CodePipeline, you can add an approval action to a stage in a pipeline at the point where you want the pipeline execution to stop so that someone with the required AWS Identity and Access Management permissions can approve or reject the action.