-
Notifications
You must be signed in to change notification settings - Fork 82
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
ValueError: Fn::Ref - EdgeFunction.Version is not a valid Resource or Parameter #91
Comments
@dunnmj42 Thanks for reporting this. Having a template to use would be helpful but I cant probably put together a simple one to replicate this issue. It should work as is if you are on version |
I just fixed several bugs related to this ^, but I forgot to test this exact situation. Can you let me know if it still errors, if it does can you post the Exception dump? |
So I'm not sure this is the same error or not, as the Traceback has less clues than it did previously. The other issue I opened was closed, so I'm not sure if this new error is more relevant to this issue or that one, but here is the Traceback:
|
Not sure if this will be helpful or not, but I rolled back to 0.4.0 and did the patch that you mentioned in my other issue, and I still get this:
|
I have good news and bad news and then more bad news and more bad news and mostly bad news. So the good news is that this is a new error, which is some progress. The bad news is this a new error 🙃. Also it's not a very good error msg. I think in the next version I'm going to work on having these little hicups just print an error msg and skip the thing that caused it so at least the program finishes. The really bad news is that this template is a a SAM template. Which currently is not supported, #42. You can see the Cloudformation resource here https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-api.html. Unfortunately Terraform does not have a direct match for SAM resources. Meaning there isn't really anything I can convert this resource too. Well it's more complicated than that... Basically SAM resources typically are not a single resource but sometimes a collection of resources. So to do the conversion you have to know what resources Cloudformation creates in the background for every SAM resource and then when you convert to Terraform you have to add those additional resources to the template. I actually think with the changes in I'm going to close this issue in favor of the other one. But thanks for opening and helping me debug it. |
Getting a little bit farther in this conversion with the latest update, but have a couple of errors.
The first is listed in the title. The offending line of my CF template is as follows:
LambdaFunctionAssociations: - EventType: origin-request LambdaFunctionARN: !Ref EdgeFunction.Version
Just removing
.Version
from this seems to allow it to continue, up until my other error, which I will report separately, as I don't think they are related.The text was updated successfully, but these errors were encountered: