A developer is implementing a custom build and test action in AWS CodePipeline to integrate a proprietary security scanning tool. The scanning tool runs on an on-premises worker. The developer needs to configure the custom action and set up the worker to retrieve artifacts, perform the scan, and report the results back to the pipeline. What is the correct sequence of steps to configure this custom action workflow and execute it successfully?
- 1Register the custom action type with AWS CodePipeline by defining the action category, provider, version, and input/output artifact constraints.
- 2Add the custom action to a stage in the pipeline definition, specifying the input and output artifact locations.
- 3The custom job worker polls AWS CodePipeline for available jobs matching the custom action's category and provider.
- 4The worker acknowledges the job to receive the job details, including temporary AWS credentials and the Amazon S3 location of the input artifacts.
- 5The worker downloads the artifacts, executes the scan, uploads the output artifacts to S3, and calls the PutJobSuccessResult API to signal completion.
Cevap
The correct sequence starts with registering the custom action type, configuring it within the pipeline, polling for jobs from the custom worker, acknowledging the job to retrieve credentials and artifact locations, and finally reporting the success result after executing the scan.
The correct sequence begins with registering the custom action type in the AWS account, followed by defining it within the pipeline structure. During execution, the custom worker polls for the job, acknowledges the job to receive the required S3 locations and temporary credentials, performs the tasks, and reports the success result back to CodePipeline.
Adım Adım Çözüm
Anahtar Kavram
AWS CodePipeline Custom Actions and Worker Lifecycle APIs