Create new branch

Now that you have hands-on experience creating and deploying AWS Lambda functions, it’s time to go back to our monolithic TravelBuddy application and deploy a microservice on AWS Lambda managed through a CI/CD pipeline. created with AWS CodeStar.

  1. Open AWS Code Star console and click Create Project.

CreateCodeStarproject

  1. We will need to create a service role for the code star the first time we use it. Click Create service role. You will see many template tags.

  2. Because the program source code is written in Java, we will choose the following options:

  • AWS Lambda
  • Web services
  • Java

Select Java Spring and click Next

CreateCodeStarproject

  1. In Project name section, enter dev-flight-svc.
  2. Select Code Commit , click Next and click Create Project.

CreateCodeStarproject

  1. Select Team, then click Add team member

CreateCodeStarproject

  • Select awsstudent.
  • Enter email if first time add.
  • Select Owner permission.
  • Select Remote access.
  • Then click Add team member.

CreateCodeStarproject

  1. Open Eclipse IDE, find AWS symbol and select it to open menu.
  2. Select Import AWS CodeStar Project

ImportProject

  1. Select dev-flight-svc in list and select dev-flight-svc in repository.
  2. Enter Git credentials. Information about Git credentials can be viewed in the Output section of the AWS Cloudformation of the first stack we created in the preparation phase. Click Next.

ImportProject

  1. Select master branch and click Next. If an error message appears, click OK to close.

ImportProject

  1. Click Finish

ImportProject

The IDE will now download the files from the CodeCommit repository.

  1. Take a moment to look at the project structure before continuing. The HelloWorld microservice represents a simple handler that returns the Hello World web page when called.