1 Antwort
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
0
How about the following document as a reference?
Samples are provided for cases with multiple artifacts.
You can create multiple output artifacts in buildspec.yml.
https://docs.aws.amazon.com/codebuild/latest/userguide/sample-multi-in-out.html
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 3 Jahren
- AWS OFFICIALAktualisiert vor 4 Monaten
- AWS OFFICIALAktualisiert vor einem Jahr
- AWS OFFICIALAktualisiert vor einem Jahr
i was asking about Cloudformation script for codebuild to generate those artifacts.
Sorry, I misread that.
I checked the documentation and it certainly does not appear that CloudFormation supports the creation of secondary artifacts.
The following AWS CLI and SDK documents seem to indicate that the API itself supports the creation of secondary artifacts, so currently the only way to create them is by using CloudFormation's custom resources. https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/codebuild/client/create_project.html https://awscli.amazonaws.com/v2/documentation/api/latest/reference/codebuild/create-project.html
For more information on custom resources, please refer to the following documents. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-custom-resources.html