I want cfn-lint to validate my SSOUtil::SSO::AssignmentGroup resources instead of just breaking on them.
Here's my test template:
AWSTemplateFormatVersion: "2010-09-09"
Transform: AWS-SSO-Util-2020-11-08
Parameters:
InstanceArn:
Type: String
Default: arn:aws:sso:::instance/ssoins-ffffffffffffffff
Resources:
ReadOnly:
Type: AWS::SSO::PermissionSet
Properties:
Name: ReadOnly
InstanceArn: !Ref InstanceArn
ManagedPolicies:
- arn:aws:iam::aws:policy/ReadOnlyAccess
AssignmentGroup:
Type: SSOUtil::SSO::AssignmentGroup
Properties:
Name: ReadOnly
InstanceArn: !Ref InstanceArn
Principal:
- Type: USER
Id: ffffffff-ffff-ffff-ffff-ffffffffffffffff
PermissionSet:
- !GetAtt ReadOnly.PermissionSetArn
Target:
- Type: AWS_OU
Id: ou-zzzz-zzzzzzzz
By default cfn-lint of course fails to recognize the custom type.
$ cfn-lint --template Macro-Test.yaml --region eu-central-1
E3001 Invalid or unsupported Type SSOUtil::SSO::AssignmentGroup for resource AssignmentGroup in eu-central-1
Macro-Test.yaml:19:5
When I found cfn-lint-spec.json I supposed that it would solve the problem, but I can't figure out how to use it.
cfn-lint fails in the same way when I pass the file via --spec-override.
$ cfn-lint --template Macro-Test.yaml --region eu-central-1 --spec-override cfn-lint-spec.json
E3001 Invalid or unsupported Type SSOUtil::SSO::AssignmentGroup for resource AssignmentGroup in eu-central-1
Macro-Test.yaml:19:5
What am I missing?
I want cfn-lint to validate my
SSOUtil::SSO::AssignmentGroupresources instead of just breaking on them.Here's my test template:
By default cfn-lint of course fails to recognize the custom type.
When I found cfn-lint-spec.json I supposed that it would solve the problem, but I can't figure out how to use it.
cfn-lint fails in the same way when I pass the file via
--spec-override.What am I missing?