-
Notifications
You must be signed in to change notification settings - Fork 4k
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): CallAwsService
produces invalid .sync
Resource Arn (codebuild.startBuild
action)
#19174
Comments
The See https://docs.aws.amazon.com/step-functions/latest/dg/supported-services-awssdk.html The code should throw in this case. |
…or CallAwsService It is only supported for AWS Batch and Amazon ECS. Throw when used for CallAwsService. Closes aws#19174
@jogold Thanks for the quick response. Having dug deeper, my current understanding is:
I did not previously see this correspondence. But I now see your PR adding Is my understanding correct? |
@fedonev yes, you are correct. You can find the term "AWS SDK integration" in the tasks doc at https://github.com/aws/aws-cdk/tree/master/packages/%40aws-cdk/aws-stepfunctions-tasks#aws-sdk. The term "optimized" is indeed nowhere to be found. |
|
What is the problem?
A
CallAwsService
task with a CodeBuildstartBuild
action andIntegrationPattern.RUN_JOB
fails on deploy withSCHEMA_VALIDATION_FAILED: The resource provided arn:aws:states:::aws-sdk:codebuild:startBuild.sync is not recognized.
An equivalent
CodeBuildStartBuild
task deploys as expected. Note theaws-sdk:
portion of the ARN, which appears to be invalid State Machine syntax for theRUN_JOB
pattern:arn:aws:states:::aws-sdk:codebuild:startBuild.sync
arn:aws:states:::aws-sdk:codebuild:startBuild
arn:aws:states:::codebuild:startBuild.sync
arn:aws:states:::codebuild:startBuild
Reproduction Steps
Two equivalent constructs to start a CodeBuild build:
What did you expect to happen?
Expected the two constructs to deploy successfully.
What actually happened?
The
CallAwsService
task fails to deploy withRUN_JOB
integration.SCHEMA_VALIDATION_FAILED: The resource provided arn:aws:states:::aws-sdk:codebuild:startBuild.sync is not recognized.
CDK CLI Version
2.14.0
Framework Version
No response
Node.js Version
14
OS
macos
Language
Typescript
Language Version
4.5.5
Other information
No response
The text was updated successfully, but these errors were encountered: