Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: 'unknown tag !<!ToJsonString>' #10

Open
sliedig opened this issue Sep 21, 2023 · 0 comments
Open

bug: 'unknown tag !<!ToJsonString>' #10

sliedig opened this issue Sep 21, 2023 · 0 comments

Comments

@sliedig
Copy link

sliedig commented Sep 21, 2023

Running iam-pol against template with new CloudFormation Language extensions

AWSTemplateFormatVersion: 2010-09-09
Transform:
  - AWS::LanguageExtensions
  - AWS::Serverless-2016-10-31

example of usagae

  DdbStreamToEventPipe:
    Type: AWS::Pipes::Pipe
    Properties:
      RoleArn: !GetAtt DdbStreamToEventPipeRole.Arn
      Source: !GetAtt ContractsTable.StreamArn
      SourceParameters:
        DynamoDBStreamParameters:
          StartingPosition: LATEST
          OnPartialBatchItemFailure: AUTOMATIC_BISECT
          BatchSize: 1
        FilterCriteria:
          Filters:
            - Pattern: !ToJsonString
                eventName: [INSERT, MODIFY]
                dynamodb:
                  NewImage:
                    ContractStatus:
                      S: [DRAFT, APPROVED]
      Target: !GetAtt UnicornContractsEventBus.Arn
      TargetParameters:
        EventBridgeEventBusParameters:
          Source: !Sub "{{resolve:ssm:/uni-prop/${Stage}/UnicornContractsNamespace}}"
          DetailType: ContractStatusChanged
        InputTemplate: !ToJsonString
          PropertyId: "<$.dynamodb.NewImage.PropertyId.S>"
          ContractId: "<$.dynamodb.NewImage.ContractId.S>"
          ContractStatus: "<$.dynamodb.NewImage.ContractStatus.S>"
          ContractLastModifiedOn: "<$.dynamodb.NewImage.ContractLastModifiedOn.S>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant