question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature: Warning on substitions without !Sub

See original GitHub issue

cfn-lint version: 0.3.2

It’s pretty annoying if you add a substition and forget the !Sub:

          - Effect: "Allow"
            Action:
              - "s3:ReplicateObject"
              - "s3:ReplicateDelete"
            Resource:
              - "arn:aws:s3:::mycompany-${Environment}-mybucketname/*"

I’m not 100% sure if a ${value} always must be a substitution, since Cfn accepts this as valid string. But this could be a valid rule to give you a warning about this. Either you’re missing the !Sub or you picked a real annoying string to be used…

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
kddejongcommented, Oct 26, 2018

This one is released now.

1reaction
cmmeyercommented, Jul 6, 2018

I wonder if it makes sense to build a contextual for things like UserData where all bets are off – I mean, there’s nothing to stop you from injecting another CloudFormation template into a file via cfn-init in the EC2 metadata. What would THAT do to our linter?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using myst_parser's new "substitutions" feature #1157 - GitHub
Describe the bug I'm trying to get the new "substitution" directive from myst_parser v0.13 and running into some trouble translating the ...
Read more >
Partial subs and test spies - NSubstitute
WARNING: Partial substitutes will be calling your class' real code by default, so if you are not careful it is possible for this...
Read more >
Solved: Warning, error, frame substitution??? - 10425018
I've the computer asleep in between editing. And this project has two 4K and 1 360 video track (just showing it flat though...
Read more >
Is there a way to check if a SUBSTITUTION was performed in ...
What I would like to happen is that if there was no SUBSTITUION performed, place a warning in the new cell that SUSBSTITUTION...
Read more >
FAQ's for Substitutes Q: Why am I not seeing any jobs online ...
A: With the “Preferred Substitutes” feature, a teacher will be able to choose a list of subs who are allowed to see absences...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found