Hello,
I've created an Elasticbeanstalc application (Amazon Linux 2023/4.2.4) with a load balancer to use an SSL certificate.
When I upload the code manually the deployment has no problems at all and it's completed successfully.
But when I use the GitLab pipeline with the following script for the deployment it fails.
#Copy target jar into bucket
- aws s3 cp ./target/$ARTIFACT s3://$S3_BUCKET/$ARTIFACT
#Create a new version of the artifact in the s3 bucket
- aws elasticbeanstalk create-application-version --application-name $AWS_APPLICATION_NAME --version-label $CI_PIPELINE_IID --source-bundle S3Bucket=$S3_BUCKET, S3Key=$ARTIFACT_LONG_NAME
#Update environment
- aws elasticbeanstalk update-environment --application-name $AWS_APPLICATION_NAME --environment-name $AWS_PRODUCTION_ENVIRONMENT_NAME --version-label $CI_PIPELINE_IID
The error from cfn-init.log is:
[ERROR] Error encountered during build of application: Yum does not have awslogs available for installation
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/cfnbootstrap/construction.py", line 579, in run_config
CloudFormationCarpenter(config, self._auth_config, self.strict_mode).build(worklog)
File "/usr/lib/python3.9/site-packages/cfnbootstrap/construction.py", line 244, in build
changes['packages'][manager] = CloudFormationCarpenter._packageToolsmanager.apply(packages,
File "/usr/lib/python3.9/site-packages/cfnbootstrap/rpm_tools.py", line 76, in apply
raise ToolError("Yum does not have %s available for installation" % pkg_spec)
cfnbootstrap.construction_errors.ToolError: Yum does not have awslogs available for installation
[ERROR] -----------------------BUILD FAILED!------------------------
Thanks in advance.