ecs-deploy | CLI tool to easily update your ECS services | AWS library
kandi X-RAY | ecs-deploy Summary
kandi X-RAY | ecs-deploy Summary
CLI tool to easily update your ECS services.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- main is the main function
- UpdateService updates a service
- New returns a new ECS client
ecs-deploy Key Features
ecs-deploy Examples and Code Snippets
usage: ecs-deploy --service=SERVICE []
Deploy ECS service.
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
--service=SERVICE Name of Service to update.
--task=TASK-DEF Name of Task Def
$ ecs-deploy --service=app --image=travisjeffery/app --tag=1.0.0
default/app-stage 2015/12/05 02:10:38 [info] --> desired: 2, pending: 0, running: 0
default/app-stage 2015/12/05 02:10:43 [info] --> desired: 1, pending: 1, running: 0
default/app
Community Discussions
Trending Discussions on ecs-deploy
QUESTION
We use a pipeline that first uses pip wheel
to collect all the packages that are needed in the project and then it creates a docker image that calls to pip install
on the collected wheels.
The issue I am encountering is that when calling pip wheel
, pip is collecting 2 different versions of a package. This has started occurring once a new version of the package is available.
The project has a requirement for an internal library ecs-deployer==10.1.2
and that library has in turn a requirement in the form of: elb-listener>=3.2.1+25,<4
The relevant output of pip wheel with the verbose option says:
...ANSWER
Answered 2022-Mar-09 at 22:16As far as I understood, "local version identifiers" such as 3.2.1+25
are far from usual, apparently they are not meant to be used anywhere public (like PyPI), and that might be the reason for all the trouble here. I am really not sure how well they are supported by Python packaging tools and maybe they confuse the dependency resolution.
Local version identifiers SHOULD NOT be used when publishing upstream projects to a public index server, but MAY be used to identify private builds created directly from the project source. Local version identifiers SHOULD be used by downstream projects when releasing a version that is API compatible with the version of the upstream project identified by the public version identifier, but contains additional changes (such as bug fixes). As the Python Package Index is intended solely for indexing and hosting upstream projects, it MUST NOT allow the use of local version identifiers.
QUESTION
I am working on a GitHub Actions Pipeline for the deployment of different images for a different environment, but I have been getting a "bad indentation of a mapping entry at line 72, column 5:" for this YAML, where I am trying to set prod variables, I have tried every which way but I am not sure what might be wrong here, please help me out.
...ANSWER
Answered 2021-Dec-31 at 02:03For what I checked here, the problem is on your setup
job. You set 2 outputs
fields for this job, with the same output names, but related to different steps (Set Vars
and Set Prod Vars
).
You can't have more than o e output
field per job.
I separated them into 2 different jobs and it resolved the workflow error. You can check the final implementation here .
Note that I also updated the needs jobs
for the subsequent jobs and outputs so it should work as expected.
QUESTION
I am working with GitHub to deploy a container based application on multiple environments, I have two environments,
- Dev
- Prod
I am building the application on both the Environments, this is my yml file:
...ANSWER
Answered 2021-Dec-23 at 02:57Until recent update aws actions required aws creds to be configured as github repo secret. After which it sets up as those creds in to env vars which makes them accessible in entire github action.
In your yml file it should be like this
QUESTION
I am trying to Deploy my image present in ECR using AWS ECS Fargate via Github Actions. It is a Github private repository as well as a private ECR repository. The AWS secrets are properly configured. I have also created an ecsTaskExecutionRole
and included it in the Task Definition as per the AWS docs here. But the following error persists:
ANSWER
Answered 2021-Aug-21 at 13:34There is a missing permission for the user user/service-account-ecr-push:
QUESTION
I'm trying to use CodeDeploy and ECS with an Application Load Balancer, and Auto Scaling with a strategy on the number of request of this ALB.
I'm using this URL as some sort of tutorial, but i don't really understand how CodeDeploy will integrate with ECS and other stuffs.
First, as i can see, i need two target groups on my ALB. But i only have one (that is, instance(s) that are / will be created by Auto Scaling)
So what do i need to do ? Does creating an empty target group, and telling CodeDeploy to use both work ?
What will it do, deploy instances in this target group and redirect a part of or the whole trafic to it once working ? As stated in the same link
"During deployment, CodeDeploy installs your update into a new, replacement task set."
So it seems to create new tasks, but on what instance then ?
...ANSWER
Answered 2021-Feb-08 at 01:27So what do i need to do ? Does creating an empty target group, and telling CodeDeploy to use both work ?
It can't be empty. Your new TG can be same as your first one. So at this stage you will have to TGs which are same (except thier name).
The second TG is specified when you create your ECS deployment group in CodeDeploy.
What will it do, deploy instances in this target group and redirect a part of or the whole traffic to it once working ? As stated in the same link
These will be same instances as the one running your current ecs task.
So it seems to create new tasks, but on what instance then ?
These will be same instances as those that run your current task.
QUESTION
ANSWER
Answered 2020-Sep-13 at 21:54The task definition in ECS service you are showing is probably the initial deployment. When you do subsequent deployments you update the task definition with new image version, or extra parameters. You can't update ECS task without providing task definition.
The task definition is thus required. It's same if you use CodeDeploy to deploy to ECS - task definition must be provided:
-AppSpec 'resources' section for Amazon ECS deployments
TaskDefinition – Required. This is the task definition for the Amazon ECS service to deploy.
QUESTION
I'm following this doc https://confluence.atlassian.com/bitbucket/deploy-to-amazon-ecs-892623902.html to set up a pipeline to deploy to the ECS cluster.
This doc is using a custom task def JSON file and using the same for the deployment after updating the image name.
Am I required to copy the complete task definition JSON and put that in my repository? My task definition has lots of environment variables in it. I do not want to expose them by putting it in the repository.
Or, the task definition template will update the default task definition and create a new revision. (not overwrite)
The deployment step is
...ANSWER
Answered 2020-May-18 at 22:01You can use aws cli to run this command and retrieve the existing task definition JSON: https://docs.aws.amazon.com/cli/latest/reference/ecs/describe-task-definition.html
QUESTION
I installed third party tool (ecs deploy using pip install ecs-deploy
) .When I try to deploy using command ecs deploy demo-cluster demo-service
in command prompt its working fine when I try with jenkins to deploy getting error
ANSWER
Answered 2020-Feb-05 at 12:24You need to run the full AWS CLI command:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ecs-deploy
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page