threadheap / serverless-ide-vscode

Serverless IDE: Enhanced support for AWS SAM and CloudFormation in VS Code
https://serverless-ide.com/
195 stars 45 forks source link

Value is not accepted when defining AWS::Cognito::IdentityPoolPrincipalTag #208

Closed adrian-mcmichael closed 10 months ago

adrian-mcmichael commented 1 year ago

When defining a resource of type AWS::Cognito::IdentityPoolPrincipalTag in my serverless.yml file I get the following validation error:

[Serverless IDE] Value is not accepted. Valid values: "AWS::ACMPCA::Certificate".

This is the block of code from my yml file:

    IdentityPrincipalTags:
      Type: AWS::Cognito::IdentityPoolPrincipalTag
      Properties:
        IdentityPoolId: { Ref: IdentityPool }
        IdentityProviderName: 
          Fn::GetAtt: [ "UserPool", "ProviderName" ]
        PrincipalTags:                 
          client_id: "aud"
          user_id: "sub"
        UseDefaults: false  

Running serverless itself it appears to have no issue with this creating this resource as I get this back in the logs:

  CREATE_COMPLETE - AWS::Cognito::IdentityPoolPrincipalTag - IdentityPrincipalTags

Are you able to add support for this resource type?

pavelvlasov commented 10 months ago

hey @adrian-mcmichael! Support for this resource type is added in the latest version