Reputation: 1042
i am creating an eventarc with gcloud and have existing topic i want to use (instead of eventarc creating new one and manage automatically)
the trigger will invoke a workflow when new files upload to a bucket.
my command
gcloud eventarc triggers create abc-trigger \
--location=asia \ #bucket location in asia
--destination-workflow=abc-workflow \
--destination-workflow-location=asia-southeast1 \
--event-filters="type=google.cloud.storage.object.v1.finalized" \
--event-filters="bucket=input-bucket" \
[email protected] \
--transport-topic=projects/projectid/topics/existing-topic
error i got
(gcloud.eventarc.triggers.create) INVALID_ARGUMENT: The request was invalid: trigger.transport.pubsub.topic is read-only except for Pubsub triggers and GCFv1 triggers
- '@type': type.googleapis.com/google.rpc.BadRequest
fieldViolations:
- field: trigger.transport.pubsub.topic
- '@type': type.googleapis.com/google.rpc.RequestInfo
requestId: 6c91d3c53c2f8bd5
i saw that it's supported in terraform https://github.com/hashicorp/terraform-provider-google/issues/8711 but why i am getting error?
Upvotes: 0
Views: 51