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.

Check ImportValue refers to a real import

See original GitHub issue

cfn-lint version: (cfn-lint --version) 0.6.1

Description of issue.

Made a mistake in a template typo’ing an import name, had to go through a full deploy/error/fix cycle to figure this out. It would be nice if cfn-lint would check all my (non-templated) imports actually exist on my account, although this might be disruptive when working on multiple templates at once and one imports the export of another.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
cmmeyercommented, Oct 3, 2018

At this time, this enhancement collides with the design goal of keeping the linter as self-contained as possible. That’s not to stop you from writing it as a custom rule though and integrating it locally.

1reaction
fatbasstardcommented, Oct 3, 2018

What makes it more complex is that the linter is completely “standalone”. It does not need AWS tools, Boto or any actions. It’s a static file analysis tool. Adding a feature to actually connect to AWS accounts is not that “easy”.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Check ImportValue refers to a real import · Issue #326 - GitHub
Description of issue. Made a mistake in a template typo'ing an import name, had to go through a full deploy/error/fix cycle to figure...
Read more >
Fn::ImportValue - AWS CloudFormation
You can use the intrinsic function Fn::ImportValue to import only values that have been exported within the same region. For outputs, the value...
Read more >
Fn::ImportValue - Amazon CloudFormation - 亚马逊云科技
You can use the intrinsic function Fn::ImportValue to import only values that have been exported within the same region. For outputs, the value...
Read more >
how to use ImportValue in parameters? - Stack Overflow
One way of doing this is to use a condition: Parameters: MyValue: Type: String Value: '' Conditions: MyValueExists: !Not [ !
Read more >
How to export and import stack output values in CDK?
To import those values, we use the `Fn::ImportValue` function in the template for the other stacks. In the context of CDK, a CDK...
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