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
5 days ago in AWS by sri
• 240 points
35 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 5 days ago by Kalgi
• 45,780 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,280 points
193 views
0 votes
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
• 56,960 points
64 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 in AWS by athenauserz
1,593 views
0 votes
1 answer

How do you pass custom environment variable on Amazon Elastic Beanstalk (AWS EBS)?

Old way  - use .ebextensions/*.config in AWS ...READ MORE

answered Sep 11, 2018 in AWS by Archana
• 4,090 points
72 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 in AWS by Kalgi
• 45,780 points
48 views
0 votes
2 answers

Text console for development in JAWS?

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

answered Apr 3 in AWS by Kalgi
• 45,780 points
89 views