-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Support IService for EcsDeployAction #5939
Conversation
Title does not follow the guidelines of Conventional Commits. Please adjust title before merge. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the change @ahammond , but as you've probably seen, the situation is not as simple: IService
does not have information about the cluster it's part of, which is something we need in this action.
I assume you want to use existing, imported services with this Action? A proper solution would probably require changes in the ECS module. If you're interested, we can talk about what needs to be done there :).
Thanks,
Adam
@skinny85 yeah, I saw it failed. I'd like to take a shot at it with some coaching. |
So here's the deal. As the code shows, to be able to deploy an ECS service with the Both methods of importing existing services in ECS, for EC2 and Fargate variants, return a very anemic interface, IService, which only contains the service's ARN, not even its name! But anyway, even if name was there, we would still be missing the cluster. But, the existing import methods, export interface IBaseService extends IService {
readonly cluster: ICluster;
} (we can't make We should also extend After those changes in ECS are made, all that's left in Let me know if this description makes sense @ahammond , and if this sounds like something you'd be interested in implementing! |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Accept the IService interface instead of requiring BaseService
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license