cloudformation-coverage-roadmap icon indicating copy to clipboard operation
cloudformation-coverage-roadmap copied to clipboard

AWS::SSO::PermissionSet InlinePolicy length limit is 1024 instead of 10240

Open sam9191 opened this issue 3 years ago • 0 comments

Name of the resource

AWS::SSO::PermissionSet

Resource Name

No response

Issue Description

On the AWS CloudFormation console, when I try to create a stack, containing a AWS::SSO::PermissionSet with an InlinePolicy I get the following error:

1 validation error detected: Value 'Invalid PermissionsPolicy Document
(Service: SsoAdmin, Status Code: 400, Request ID: XXX)' at 'statusMessage' failed to satisfy constraint: Member must have length less than or equal to 1024

My InlinePolicy is 1321 character long.

Expected Behavior

To successfully create the AWS::SSO::PermissionSet as the InlinePolicy length limit should be 10240 characters. Please see the docs: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-permissionset.html#cfn-sso-permissionset-inlinepolicy

Observed Behavior

I get a validation error

Test Cases

You can recreate the error by trying to create a CloudFormation stack on AWS console, containing a AWS::SSO::PermissionSet with an InlinePolicy of 1321 characters (excluding any spaces, tabs) or more.

Other Details

No response

sam9191 avatar Aug 26 '22 07:08 sam9191