"Running version" in a EB environment is empty after deployed the app. Where does it get the "Running version" from?

0

Hi I just build a new environment (PHP 8.1 running on 64bit Amazon Linux 2023/4.0.5) using a "Sample" code. It seems to be fine. I then deployed my app using travis CI. The app is deployed successfully into this new environment (I could see the codes when ssh to the server). However, "Running version" in that EB envi is empty. Could you please tell me where the "Running version" value is from and any reason the value is empty

Enter image description here

Note: in my previous envi (php 7.4) I could see the value

Many thanks

son
已提問 3 個月前檢視次數 123 次
1 個回答
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:

profile picture
專家
已回答 3 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南