I'm using AWS Lambda with AWS CDK to start my Pipeline
const PipelinesParams = { name: "GatsbyPipelineLolly", } try { const pipeline = new AWS.CodePipeline(); await docClient.put(params).promise(); pipeline.startPipelineExecution( PipelinesParams, function (err: any, data: any) { if (err) { console.log(err); } else { console.log(data); } } )
and that's the action I authorized
const policy = new PolicyStatement(); policy.addActions('s3:*'); policy.addResources('*'); policy.addActions('codepipeline:*');
still getting unauthorized error image is also been attached for review
https://stackoverflow.com/questions/65531600/accessdeniedexception-while-starting-pipeline January 02, 2021 at 12:41AM
没有评论:
发表评论