-
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
aws-stepfunction-tasks: verifiiedPermissions createPolicy error on parsing Property Static in Definition. #29968
Comments
Can you share your code snippets so we can reproduce and verify this issue? |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
Hello @pahud Sorry for the delay. I moved on from this, but here is a sample using the resouce.
|
Hello, What is the status of this bug? |
CallAwsService essentially uses the SDK integration to call AWS services through state machine. Generally, I would suggest:
If the SDK call works, it should be good to configure
Thank you. const test = new CallAwsService(this, 'test-policy-create', {
service: 'verifiedpermissions',
action: 'createPolicy',
iamResources: ['*'],
parameters: {
PolicyStoreId: 'foo',
Definition: {
Static: {
Description: 'A test policy',
Statement:
// policy def
, },
}, }, }) |
So, it seems like this has already been labeled a bug. I assumed this team has already been able to review and replicate the problem. The SDK call works just fine. I am forced to use a lambda as this integration has an issue with the "Static" property. |
This issue is in the bug category but we need more info before we could reproduce and address this issue and reprioritize it correctly. Are you able to provide the information as requested in my previous comment? |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
Describe the bug
When creating a task to use the service verifiedPermissions of action createPolicy, I am getting a field not supported error for the property 'static'. I have tried using pascal and lower camelcase with the same error.
Type:AWS::StepFunctions::StateMachine, StatusReason:Resource handler returned message: "Invalid State Machine Definition: 'SCHEMA_VALIDATION_FAILED: The field "static" is not supported by Step Functions at /States/resource/Parameters' (Service: AWSStepFunctions; Status Code: 400)""
Expected Behavior
I would expect the CallAwsService tasks to be duplicate of the aws sdk v3 for inputs. I would expect this task to create a static policy.
Current Behavior
Type:AWS::StepFunctions::StateMachine, StatusReason:Resource handler returned message: "Invalid State Machine Definition: 'SCHEMA_VALIDATION_FAILED: The field "static" is not supported by Step Functions at /States/create-tenant-admin-policy/Parameters' (Service: AWSStepFunctions; Status Code: 400)""
The above error occurs at the time of deployment, not during synth.
Reproduction Steps
Create a state Machine and use the CallAwsService Construct to create a Policy in verified Permissions. You will get the error at the time of deployment, not during synthesis.
Possible Solution
Update the construct to follow the sdk v3 syntax for all properties.
Additional Information/Context
No response
CDK CLI Version
2.139
Framework Version
2.139
Node.js Version
20.12.0
OS
Linux
Language
TypeScript
Language Version
Typescript 5.4.4
Other information
No response
The text was updated successfully, but these errors were encountered: