So I set up the connection in the pipeline settings and then applied the arn like so:
const pipeline = new CodePipeline(this,'SettingsPipeline' , {
pipelineName: 'SettingsPipeline',
synth: new CodeBuildStep('SynthStep', {
input: CodePipelineSource.connection('adamnjg/CDKSettings', 'main', {
connectionArn: 'arn:aws:codestar-connections:eu-west-2:682167722541:connection/36ee3cf9-b409-4a94-ba54-b787081492b4'
}),
installCommands: [
'npm install -g aws-cdk'
],
commands: [
'npm ci',
'npm run build',
'npx cdk synth'
]
})
})
When I manually trigger the pipeline in the console it gets the code from the repo no problem, and the webhook in bitbucket says that it is getting a 200 result.
Anybody got any ideas what I am missing?