aws-sso: PermissionSet InlinePolicy type should be string #26868
Labels
@aws-cdk/aws-sso
Related to the @aws-cdk/aws-sso package
bug
This issue is a bug.
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
effort/medium
Medium work item – several days of effort
p2
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
I get this error after upgrading from CDK v1.84.0 to v2 or latest v1:
AWS::SSO::PermissionSet
InlinePolicy
hasPrimitiveType
was set toJson
here:https://github.com/aws/aws-cdk/blob/main/packages/%40aws-cdk/cfnspec/spec-source/specification/000_cfn/000_official/000_AWS_SSO.json#L152-L157
However, the examples and descriptions on the CloudFormation docs show this as a json string instead: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-permissionset.html#cfn-sso-permissionset-inlinepolicy
The
000_AWS_SSO.json
file linked above did not exist on the working version (1.84.0), so this may be why the error happens after upgradingExpected Behavior
Allow a json string for the InlinePolicy property
Current Behavior
Reproduction Steps
Use CDK to deploy a template with an inline policy containing a json string like this
Possible Solution
The
000_AWS_SSO.json
file linked above did not exist on our working version (1.84.0), so assuming this is why the error happensAdditional Information/Context
No response
CDK CLI Version
1.204.0
Framework Version
No response
Node.js Version
Any
OS
Any
Language
Python
Language Version
Python 3.8
Other information
No response
The text was updated successfully, but these errors were encountered: