-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
IAM: Python show error of type ServicePrincipal #30431
Comments
@canle1404 Good morning. The above code synthesizes successfully using Resources:
Role1ABCC5F0:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Statement:
- Action: sts:AssumeRole
Effect: Allow
Principal:
Service: ec2.amazonaws.com
Version: "2012-10-17"
Metadata:
aws:cdk:path: PythonStack/Role/Resource
...
... Running
However,
Per inheritance and polymorphism rules, it should be possible to assign The Thanks, |
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. |
I suppose it's too much to ask Amazon devs and Microsoft devs to work together to fix this one? (Amazon devs on this CDK and Microsoft devs on |
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
I'm using pyright and it shows this error message. However, my stack is still able to be deployed.
Expected Behavior
No error message
Current Behavior
error message
Reproduction Steps
pyright ./stack.py
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.144.0 (build 5fb15bc)
Framework Version
No response
Node.js Version
v20.12.1
OS
Ubuntu 22.04
Language
Python
Language Version
3.10.12
Other information
pyright 1.1.365
The text was updated successfully, but these errors were encountered: