Hi could you plz help me on creating appspec file for code deploy

+1 vote
Yes I have 2 java applications let's say hello world java applications action I want to deploy these applications into docker using code deploy
Dec 3, 2019 in AWS by sri
• 250 points
1,322 views
Hi @Sri,

You are trying to deploy this on EC2/on-premise or on ECS?
Deploy on ECS.

1 answer to this question.

+1 vote

Hi @Sri, you could use something like this:

version: 0.0
Resources:
  - TargetService:
      Type: AWS::ECS::Service
      Properties:
        TaskDefinition: "arn:aws:ecs:aws-region-id:aws-account-id::task-definition/ecs-demo-task-definition:revision-number"
        LoadBalancerInfo:
          ContainerName: "your-java-application"
          ContainerPort: your-container-port
answered Dec 3, 2019 by Kalgi
• 52,360 points
Thank you so much #kalgi for your fast response . I will try and let you know If I get any error will post here plz help .
But I am using services in ECS will this work ?

Yup this appspec file is for ECS deployment. You just have to replace taskdefination with the arn of the ECS application.

Do I need to install maven in docker containers ?
No, you do not need to install maven. Did you try the above appspec?

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer

Event for CodeBuild CloudWatch on my Project

In order to create CWE rule for ...READ MORE

answered May 25, 2018 in AWS by Cloud gunner
• 4,670 points
1,120 views
+1 vote
1 answer
0 votes
1 answer

Do you get charged for a security group in AWS EC2?

There is no charge applicable to Security ...READ MORE

answered Jul 18, 2018 in AWS by Priyaj
• 58,090 points
12,263 views
0 votes
2 answers

How to skip headers when reading a CSV file in S3 and creating a table in AWS Athena?

Thanks for the answer. This should be clear ...READ MORE

answered Aug 14, 2019 in AWS by athenauserz
11,187 views
0 votes
1 answer

Could you please demonstrate aws lambda with python

Hey @Priyanka,  Python Lambda functions are functions that ...READ MORE

answered Jun 24, 2019 in AWS by Kalgi
• 52,360 points
656 views
0 votes
2 answers

Text console for development in JAWS?

Hey @eatcodesleeprepeat, you could use Jaws Braille viewer ...READ MORE

answered Apr 3, 2019 in AWS by Kalgi
• 52,360 points
1,185 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP