Tuesday, September 20, 2022
HomeCyber SecurityAn error occurred (ValidationError) when calling the CreateChangeSet operation: Template error: the...

An error occurred (ValidationError) when calling the CreateChangeSet operation: Template error: the attribute in Fn::ImportValue should not rely upon any sources, imported values, or Fn::GetAZs | by Teri Radichel | Cloud Safety | Sep, 2022


One other deceptive error from CloudFormation

This error is sort of proper however principally unhelpful within the specific case I used to be having. I had named some parameters I handed into my template in a fancy approach, to not point out I in all probability want glasses.

I used to be my template again and again and thought I had copied the documentation precisely for FN::Import — even the bizarre caveats.

Lastly I copied and pasted the code from the documentation after which copied and pasted my parameter names into the sub title. That labored.

I feel I in all probability had a typo within the Sub that was referencing a parameter. So the error message is telling me one thing that on this case doesn’t make sense.

It could be extra acceptable to say:

The worth referenced in your Sub doesn't exist on this template. Verify to see that the title you're passing in precisely matches what you're try to reference.

Can also you please repair the bizarre, inconsistent syntax? It’s arduous to recollect how one can create all these one-off circumstances.

Yet one more: I noticed another person received the identical error I’m going the place the FN::Import can’t be on the identical line because the property — a mapping error. The individual responding to them stated “effectively it’s invalid yaml.” So? That is CloudFormation. Overwrite that underlying YAML error message with one thing extra significant within the context of CloudFormation.

Teri Radichel

For those who favored this story please clap and observe:

Medium: Teri Radichel or E-mail Record: Teri Radichel
Twitter: @teriradichel or @2ndSightLab
Requests providers by way of LinkedIn: Teri Radichel or IANS Analysis

© 2nd Sight Lab 2022

____________________________________________

Writer:

Cybersecurity for Executives within the Age of Cloud on Amazon

Want Cloud Safety Coaching? 2nd Sight Lab Cloud Safety Coaching

Is your cloud safe? Rent 2nd Sight Lab for a penetration take a look at or safety evaluation.

Have a Cybersecurity or Cloud Safety Query? Ask Teri Radichel by scheduling a name with IANS Analysis.

Cybersecurity & Cloud Safety Sources by Teri Radichel: Cybersecurity and Cloud safety courses, articles, white papers, displays, and podcasts



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments