1 Answer
- Newest
- Most votes
- Most comments
1
You are required to create a new application version. It seems that during the creation of the Elastic Beanstalk (EB) application using TravisCI, this detail was overlooked. When creating an application version, it must be associated with an S3 bucket containing the deployable code.
Here's an example of using the AWS CLI to create an application version:
aws elasticbeanstalk create-application-version --application-name my-application --version-label v1 --source-bundle S3Bucket=DOC-EXAMPLE-BUCKET,S3Key=php-proxy-sample.zip
For integration with Travis CI in your .travis.yml
, ensure to specify the bucket_path
with the name of the application version:
deploy: provider: elasticbeanstalk access_key_id: secure: "Encrypted <access-key-id>=" secret_access_key: secure: "Encrypted <secret-access-key>=" region: "us-east-1" app: "example-app-name" env: "example-app-environment" bucket_name: "the-target-S3-bucket" bucket_path: "php8.1-app"
Resources:
Relevant content
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 years ago