{
"level": "error",
"module": "cli",
"error": "failed to sync v3 source aws: failed to init source aws: jsonschema: /org/admin_account does not validate with https://github.com/cloudquery/cloudquery/plugins/source/aws/client/spec/spec#/$ref/properties/org/oneOf/0/$ref/properties/admin_account/oneOf/0/$ref/required: missing properties: id",
"time": "2024-02-22T18:56:42Z",
"message": "exiting with error"
}
The docs don’t show anything that stands out, though. It looks like this change may have created side effects not documented to schema.json from "$ref": "#/$defs/StringFilter" to "#/$defs/Account" in the commit.
Configuration account != org admin_account, which is what seems off.
The docs specifically for spec.org don’t mention any changes needed or id at all, neither do the changelogs.
Seems like the change from a string to an AccountRef requires an ID that isn’t in any upgrade notes.
I’m only using this through the AWS source provider, which is still v24.3.2 for the latest. If there’s a bump to that which includes 5.5.7 CLI, I can test pretty easily.
What do you mean by the AWS source provider? How are you running cloudquery sync?
The bug happens with a recent CLI version + latest AWS version. It’s a bug in the CLI but only appears on the latest plugins.
We’ve released a new CLI that should fix it.
I hope that clarifies things, sorry for the versions confusion
I’m running it as a cron where I use a ConfigMap for the sources, which is pinned at v24.3.0. If ghcr.io/cloudquery/cloudquery:latest is bumped, then I’m guessing it should just work?
Error: failed to sync v3 source aws: failed to init source aws: jsonschema: '/org/admin_account' does not validate with https://github.com/cloudquery/cloudquery/plugins/source/aws/client/spec/spec#/$ref/properties/org/oneOf/0/$ref/properties/admin_account/oneOf/0/$ref/required: missing properties: 'id'
{"level":"error","module":"cli","error":"failed to sync v3 source aws: failed to init source aws: jsonschema: '/org/admin_account' does not validate with https://github.com/cloudquery/cloudquery/plugins/source/aws/client/spec/spec#/$ref/properties/org/oneOf/0/$ref/properties/admin_account/oneOf/0/$ref/required: missing properties: 'id'","time":"2024-02-22T19:58:55Z","message":"exiting with error"}
I can confirm it’s a warning if I use :5.5.7 instead of latest, so it might be a caching issue on my side.