GoogleCloudPlatform / professional-services

Common solutions and tools developed by Google Cloud's Professional Services team. This repository and its contents are not an officially supported Google product.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exporting cloud asset inventory issues

BachateroJ opened this issue · comments

Hey
Im trying to run gcpviz on my environment, got an error while running:

asf-VirtualBox:~$ go version
go version go1.22.1 linux/amd64

export ORGANIZATION_ID=bachaterorg
export CAI_BUCKET_NAME=gcpmapping
gcloud asset export
--content-type resource
--organization $ORGANIZATION_ID
--output-path "gs://$CAI_BUCKET_NAME/resource_inventory.json"

after i run the last command, i get the following error:

-VirtualBox:~$ gcloud asset export --content-type resource --organization $ORGANIZATION_ID --output-path "gs://$CAI_BUCKET_NAME/resource_inventory.json"
ERROR: (gcloud.asset.export) code: 400
details:

I have already checked and i have the necessary permissions to perform the required actions