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

E3002 rule triggered when using Macros #2573

Closed
khan-a1 opened this issue Feb 6, 2023 · 1 comment
Closed

E3002 rule triggered when using Macros #2573

khan-a1 opened this issue Feb 6, 2023 · 1 comment

Comments

@khan-a1
Copy link

khan-a1 commented Feb 6, 2023

CloudFormation Lint Version

cfn-lint 0.72.10

What operating system are you using?

Mac

Describe the bug

I have a Macro that I use to generate dynamic resource Tags. It is a valid template and deploys fine to my AWS account using AWS CLI. But when I run cfn-lint, it triggers E3002 rule. I can suppress it using the metadata but it should not trigger this rule in the first place

Expected behavior

It should pass as valid template and not trigger E3002

Reproduction template

AWSTemplateFormatVersion: 2010-09-09
Resources:
  S3Bucket:
    Type: "AWS::S3::Bucket"
    Properties:
      Tags:
        "Fn::Transform":
          - Name: "TaggingMacro"
            Parameters:
              SSMParameterName: "/apps/dcs/crm"
              TagOne: Example
              TagTwo: World
@PatMyron
Copy link
Contributor

PatMyron commented Feb 6, 2023

tracking in #476

@kddejong kddejong closed this as completed Feb 6, 2023
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

3 participants