项目作者: afsaredrisy

项目描述 :
高级语言: Java
项目地址: git://github.com/afsaredrisy/spring-boot-eb-demo-app.git
创建时间: 2020-02-01T07:39:15Z
项目社区:https://github.com/afsaredrisy/spring-boot-eb-demo-app

开源协议:

下载


spring-boot-eb-demo-app

To deploy spring boot application on AWS-elasticbeanstalk through AWS eb cli follow the following steps.

Deploy on AWS ElasticBeanstalk through EB Cli

  • Install EB CLI

    To install EB CLI Here is a complete guide

  • Clone this repository & unzip, open terminal at root directory of repository.

  • Create your elastic beanstalk app

    1. apidemo-app $ eb init

    at this level you need to select region, application name, platform (Choose Java as your application platform), platform version (Choose Java 8), SSH creation.

Once this is doone you will find .elasticbeanstalk hidden directory at root level of project, open this directory there will be one yml file config.yml open this file in your fevrate editor & add following lines.

  1. deploy:
  2. artifact: target/apidemo-app-0.0.1-SNAPSHOT.jar

complete file should look like this.

  1. branch-defaults:
  2. default:
  3. environment: null
  4. group_suffix: null
  5. deploy:
  6. artifact: target/apidemo-app-0.0.1-SNAPSHOT.jar
  7. global:
  8. application_name: dotest
  9. branch: null
  10. default_ec2_keyname: aws-eb
  11. default_platform: Java 8
  12. default_region: us-west-2
  13. include_git_submodules: true
  14. instance_profile: null
  15. platform_name: null
  16. platform_version: null
  17. profile: eb-cli
  18. repository: null
  19. sc: null
  20. workspace_type: Application
  • Create the resources and launch the application
  1. apidemo-app $ eb create

You need to provide name of enviornment, DNS CNAME, load balancer type, Spot Fleet requests etc.

Note: You also need to configure AWS user credential if you are creating first time using eb cli. You need to create a user from AWS IAM with AWSElasticBeanstalkFullAccess permssion.
check the application status

  1. apidemo-app $ eb status

If you are changing the code then package application with maven mvn packageand deploy it again with eb deploye

For android client AndroidRestClientDemo