Comments (8)
@fujiwara I tried and it works! 🙌
Thank you for fixing so fast!
log
module.ecs.null_resource.ecspresso_***: Creating...
module.ecs.null_resource.ecspresso_***: Provisioning with 'local-exec'...
module.ecs.null_resource.ecspresso_*** (local-exec): Executing: ["/bin/sh" "-c" "~/bin/ecspresso version && ~/bin/ecspresso deploy --debug"]
module.ecs.null_resource.ecspresso_*** (local-exec): ecspresso v2.0.3+nightly-1a317daaa2d74e9dccb2428791be433c21152384
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:04:05 ***-service/***-cluster [DEBUG] config file path: ecspresso.yml
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:04:05 ***-service/***-cluster [DEBUG] dispatching subcommand: deploy
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:04:05 ***-service/***-cluster [DEBUG] deploy
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:04:05 [DEBUG] {"DryRun":false,"DesiredCount":-1,"SkipTaskDefinition":false,"ForceNewDeployment":false,"NoWait":false,"SuspendAutoScaling":null,"ResumeAutoScaling":null,"RollbackEvents":"","UpdateService":true,"LatestTaskDefinition":false}
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:04:05 ***-service/***-cluster Starting deploy module.ecs.aws_lb_listener.internal_blue: Creation complete after 0s [id=arn:aws:elasticloadbalancing:ap-northeast-1:190162224208:listener/app/***-alb-internal/d4e22366f5091ea2/16747bc45e114036]
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:04:05 ***-service/***-cluster Service ***-service not found. Creating a new service
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:04:05 ***-service/***-cluster Starting create service
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:04:05 ***-service/***-cluster [DEBUG] Loaded DesiredCount: 2
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:04:05 ***-service/***-cluster Registering a new task definition...
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:04:05 ***-service/***-cluster Task definition is registered ***-def:35
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:04:06 ***-service/***-cluster Service is created
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:04:09 ***-service/***-cluster [DEBUG] service ***-service is ACTIVE
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:04:09 ***-service/***-cluster [DEBUG] wait for CodeDeploy
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:04:09 ***-service/***-cluster [DEBUG] find applications in CodeDeploy
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:04:09 ***-service/***-cluster [DEBUG] found CodeDeploy applications: [***-codedeploy]
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:04:09 ***-service/***-cluster [DEBUG] application ***-codedeploy compute platform ECS
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:04:09 ***-service/***-cluster [DEBUG] CodeDeploy found deploymentGroups: []
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:04:09 ***-service/***-cluster [INFO] failed to find CodeDeploy Application/DeploymentGroup for ECS service ***-service on cluster ***-cluster
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:04:09 ***-service/***-cluster [DEBUG] service ***-service is ACTIVE
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:04:09 ***-service/***-cluster Waiting a task set PRIMARY stable: STABILIZING
module.ecs.null_resource.ecspresso_***: Still creating... [10s elapsed]
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:04:20 ***-service/***-cluster [DEBUG] service ***-service is ACTIVE
module.ecs.null_resource.ecspresso_***: Still creating... [20s elapsed]
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:04:30 ***-service/***-cluster [DEBUG] service ***-service is ACTIVE
module.ecs.null_resource.ecspresso_***: Still creating... [30s elapsed]
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:04:40 ***-service/***-cluster [DEBUG] service ***-service is ACTIVE
module.ecs.null_resource.ecspresso_***: Still creating... [40s elapsed]
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:04:50 ***-service/***-cluster [DEBUG] service ***-service is ACTIVE
module.ecs.null_resource.ecspresso_***: Still creating... [50s elapsed]
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:05:00 ***-service/***-cluster [DEBUG] service ***-service is ACTIVE
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:05:00 ***-service/***-cluster Waiting a task set PRIMARY stable: STEADY_STATE
module.ecs.null_resource.ecspresso_*** (local-exec): 2023/01/14 12:05:00 ***-service/***-cluster Service is stable now. Completed!
module.ecs.null_resource.ecspresso_***: Creation complete after 55s [id=8295189575364490852]
module.ecs.data.aws_ecs_service.***_backend: Reading...
module.ecs.data.aws_ecs_service.***_backend: Read complete after 1s [id=arn:aws:ecs:ap-northeast-1:190162224208:service/***-cluster/***-service]
module.ecs.aws_codedeploy_deployment_group.***: Creating...
module.ecs.aws_codedeploy_deployment_group.***: Creation complete after 1s [id=beab2ebd-0b92-49d3-8459-6754253c6f42]
from ecspresso.
@hrfmmr v2.0.4 released! https://github.com/kayac/ecspresso/releases/tag/v2.0.4
from ecspresso.
@hrfmmr Thank you for reporting!
I fixed this issue by #502.
Could you try this binary? https://github.com/kayac/ecspresso/releases/tag/v2.0.3-2-g7a04e2d-15-g5479761
from ecspresso.
@fujiwara Awesome! Thank you!
I'll try it 👍
from ecspresso.
I tried, but it seems to expect the deployment group to exist when creating the ECS service, and it failed.
│ Error running command '~/bin/ecspresso version && ~/bin/ecspresso deploy --debug': exit status 1. Output: ecspresso v2.0.3+2-g7a04e2d-15-g5479761
│ 2023/01/12 07:04:00 ***-service/***-cluster [DEBUG] config file path: ecspresso.yml
│ 2023/01/12 07:04:00 ***-service/***-cluster [DEBUG] dispatching subcommand: deploy
│ 2023/01/12 07:04:00 ***-service/***-cluster [DEBUG] deploy
│ 2023/01/12 07:04:00 [DEBUG]
│ {"DryRun":false,"DesiredCount":-1,"SkipTaskDefinition":false,"ForceNewDeployment":false,"NoWait":false,"SuspendAutoScaling":null,"ResumeAutoScaling":null,"RollbackEvents":"","Up
dateService":true,"LatestTaskDefinition":false}
│ 2023/01/12 07:04:00 ***-service/***-cluster Starting deploy
│ 2023/01/12 07:04:00 ***-service/***-cluster Service ***-service not found. Creating a new service
│ 2023/01/12 07:04:00 ***-service/***-cluster Starting create service
│ 2023/01/12 07:04:00 ***-service/***-cluster [DEBUG] Loaded DesiredCount: 2
│ 2023/01/12 07:04:01 ***-service/***-cluster Registering a new task definition...
│ 2023/01/12 07:04:01 ***-service/***-cluster Task definition is registered ***-def:33
│ 2023/01/12 07:04:02 ***-service/***-cluster Service is created
│ 2023/01/12 07:04:05 ***-service/***-cluster [DEBUG] service ***-service is ACTIVE
│ 2023/01/12 07:04:05 ***-service/***-cluster [DEBUG] wait for CodeDeploy
│ 2023/01/12 07:04:05 ***-service/***-cluster [DEBUG] find applications in CodeDeploy
│ 2023/01/12 07:04:05 ***-service/***-cluster [DEBUG] found CodeDeploy applications: [test-codedeploy-app ***-codedeploy]
│ 2023/01/12 07:04:05 ***-service/***-cluster [DEBUG] application test-codedeploy-app compute platform ECS
│ 2023/01/12 07:04:05 ***-service/***-cluster [DEBUG] application ***-codedeploy compute platform ECS
│ 2023/01/12 07:04:05 ***-service/***-cluster [DEBUG] CodeDeploy found deploymentGroups: []
│ 2023/01/12 07:04:05 ***-service/***-cluster [DEBUG] CodeDeploy found deploymentGroups: []
│ 2023/01/12 07:04:05 [ERROR] FAILED. failed to find CodeDeploy Application/DeploymentGroup for ECS service ***-service on cluster ***-cluster
│
from ecspresso.
expect the deployment group to exist
In order to create a CodeDeploy deployment group, an ECS service must be created first, right?
from ecspresso.
In order to create a CodeDeploy deployment group, an ECS service must be created first, right?
Yes, right.
But after a deployment group is created, a related ECS service can delete and re-create. I've tested this case only, but it is insufficient.
I'll fix to not needing a deployment group on creating an ECS service.
from ecspresso.
@hrfmmr
Fixed in this version. This version can wait to create an ECS service whether related CodeDeploy resources exist.
Please try again!
https://github.com/kayac/ecspresso/releases/tag/v2.0.3-nightly-97054235af9e9f9b60a0d337ebdab5f80019b91d
from ecspresso.
Related Issues (20)
- verify failed when loadBalancers containerPort mismatch ELB target group's port
- ecspresso run fails without --propagate-tags flag HOT 4
- init multiple services HOT 1
- cannot parse jsonnet int field with env or tfstate syntax HOT 2
- register --output flag does not work.
- SSO configuration issue
- `ecspress exec` shows STOPPED tasks HOT 2
- `ecspresso verify` cannot validate secret value when using JSON keys in AWS Secrets Manager
- `ecspresso run` doesn't fail when ECS task failed to start HOT 3
- Fix help messages of boolean options. HOT 1
- Supports awslogs-create-group: "true" on verify.
- want update Tags of ECS Services
- GitHub Actions `kayak/ecspresso@v1` failed due to v1 missing in the released list URL HOT 2
- Encountered `panic: runtime error: invalid memory address or nil pointer dereference` HOT 1
- Add a CLI flag to support a timeout HOT 6
- The order of the containers generated at initialization in ecs-task-def.json is random HOT 2
- Add the installation guide with aqua to the document
- Feature Request: Support for Key-Value Pair Extraction from AWS Secrets Manager in ecspresso HOT 2
- Unable to execute 'verify' command with private ECR image when the regions of the ECS cluster and ECR are different HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ecspresso.