-
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
stepfunctions-tasks: CallAwsServiceCrossRegion uses wrong casing for ECS #30799
stepfunctions-tasks: CallAwsServiceCrossRegion uses wrong casing for ECS #30799
Comments
@ADringer Good morning. I think your issue is similar to #30662 (comment). CDK internally uses JavaScript SDK to invoke service operation for this scenario. If you refer ECS API Reference::UpdateService, the parameters cluster, service and forceNewDeployment are in camel case. So the parameter name casing appears to be dependent on service API, Pascal case might not be true for all the service. The validation here appears to be incorrect and should be possibly removed or adjusted for some services (this might not be scalable). We also would need to update documentation for Thanks, |
Hi, I think this issue exists not only in the new |
|
1 similar comment
|
@xazhao Actually, no, because |
Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one. |
Describe the bug
Hi, I'm using the new task
CallAwsServiceCrossRegion
from #30061 to update an ECS service in a different region. In the task I have to pass in parameters as PascalCase but the actual call fails in the client ecs saying the service identifier has not been provided as it's expecting camelCase.Expected Behavior
The parameters passed from the task successfully invoke the aws service. Maybe mapping the casing accordingly.
Current Behavior
The parameters are entered into the task as PascalCase:
And this fails with the error
InvalidParameterException: Service Identifier cannot be empty
.Reproduction Steps
Create a task that calls ECS e.g:
Possible Solution
Looking at the code, if
ecs
cdk expects all camelCase parameters, we could update this that's causing the issue:to be something like
So this ignores the check for the ecs service, and can add other services that require camelCase
Additional Information/Context
No response
CDK CLI Version
2.147.3
Framework Version
No response
Node.js Version
20
OS
Linux
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: