0

It's almost impossible to find any examples of this in google, I'm trying to Lowercase some parameters in my cloudformation template and join them together with !Sub

I've tried various Combinations but i keep getting a "No transform named redacted::String found" Error

Here's an example of what i'm trying to do

Resources:
  ProjectRPRolePolicy:
    Type: AWS::IAM::ManagedPolicy
    Properties:
      ManagedPolicyName: !Sub "${ProjectName}${Environment}PolicyRP"
      PolicyDocument:
        Version: "2012-10-17"
        Statement:
          - Sid: ProjectReadApplicationS3
            Action: s3:GetObject
            Effect: Allow
            Resource:
              - Fn::Sub:
                - "arn:aws:s3::${AWS::AccountId}:prependname-${EnvironmentLower}-${ProjectNameLower}${ZoneAppendLower}/*"
                - ProjectNameLower:
                  'Fn::Transform':
                     - Name: 'String'
                       Parameters:
                         InputString: !Ref ProjectName
                         Operation: Lower
                - EnvironmentLower:
                  'Fn::Transform':
                     - Name: 'String'
                       Parameters:
                         InputString: !Ref Environment
                         Operation: Lower
                - ZoneAppendLower:
                  'Fn::Transform':
                     - Name: 'String'
                       Parameters:
                         InputString: !Ref ZoneAppend
                         Operation: Lower
New contributor
Cyber Axe is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

Cyber Axe is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.