A development team is integrating an on-premises security scanning tool as a custom action in AWS CodePipeline. A custom worker application runs on-premises and processes the security scanning tasks.
Arrange the steps in the correct chronological order that the custom action worker must execute to process and complete a job in CodePipeline.
- 1The worker calls the PollForJobs API to retrieve available jobs for the custom action.
- 2The worker calls the AcknowledgeJob API using the job ID.
- 3The worker uses the temporary credentials from the job data to download the input artifacts and run the scanning tool.
- 4The worker calls the PutJobSuccessResult API to report execution completion.
Answer
The custom worker must first poll for available jobs, acknowledge the retrieved job, process the job by downloading artifacts and running the scan, and finally report the success status back to CodePipeline.
The correct sequence starts with polling for jobs, followed by acknowledging the job to prevent duplicate executions, then downloading the artifacts and running the scan, and finally reporting the success status back to CodePipeline.
Step-by-Step Solution
Key Concept
AWS CodePipeline Custom Actions and the Worker Lifecycle
Estimated Time:1m 30s