gyro icon indicating copy to clipboard operation
gyro copied to clipboard

In rare case not having an @Id field on a resource causes confusing error

Open beetlebugorg opened this issue 5 years ago • 0 comments

See this issue: https://github.com/perfectsense/gyro-aws-provider/issues/202

The problem is that the following reference $SELF is invalid because it's referencing the aws::security-group-rules rather than an actual aws::security-group.

I think if the error in this case showed the configuration it might have helped debug this issue. However, I could be convinced that not having @Id on the rules resource is invalid as well. Perhaps both things should happen.

aws::security-group-rules sg-rules
    security-group: $(aws::security-group sg)
 
    ingress
        security-group: $SELF
        ...
    end
end

beetlebugorg avatar Jan 24 '20 19:01 beetlebugorg