confluentinc/kafka-streams-examples

[BUG] microservices-orders: unknown command "READ" for "ccloud kafka acl create"

homam86 opened this issue · 3 comments

I am trying to run Excersize 0 as stated here (for microservices-orders)

However, I am getting the error unknown command "READ" for "ccloud kafka acl create as shown below

====== Validating and setting up ksqlDB App

====== Waiting up to 720 for ksqlDB to be ready

====== Creating ksqlDB ACLs
Error: unknown command "READ" for "ccloud kafka acl create"
Usage:
  ccloud kafka acl create [flags]

Examples:
You can specify only one of the following flags per command invocation: ``cluster``, ``consumer-group``, ``topic``, or ``transactional-id``. For example, for a consumer to read a topic, you need to grant ``READ`` and ``DESCRIBE`` both on the ``consumer-group`` and the ``topic`` resources, issuing two separate commands:

::

  ccloud kafka acl create --allow --service-account sa-55555 --operation READ --operation DESCRIBE --consumer-group java_example_group_1
  ccloud kafka acl create --allow --service-account sa-55555 --operation READ --operation DESCRIBE --topic '*'



Flags:
      --allow                     Access to the resource is allowed.
      --deny                      Access to the resource is denied.
      --service-account string    The service account ID.
      --operation stringArray     The ACL Operation: (alter, alter-configs, cluster-action, create, delete, 
                                  describe, describe-configs, idempotent-write, read, write).
                                  Note: This flag may be specified more than once.
      --cluster-scope             Modify ACLs for the cluster.
      --consumer-group string     Modify ACLs for the specified consumer group resource.
      --prefix                    When this flag is set, the specified resource name is interpreted as
                                  a prefix.
      --topic string              Modify ACLs for the specified topic resource.
      --transactional-id string   Modify ACLs for the specified TransactionalID resource.
  -o, --output string             Specify the output format as "human", "json", or "yaml". (default "human")
      --environment string        Environment ID.
      --cluster string            Kafka cluster ID.
      --context string            CLI Context name.

Global Flags:
  -h, --help            Show help for this command.
  -v, --verbose count   Increase verbosity (-v for warn, -vv for info, -vvv for debug, -vvvv for trace).

@houmamw Would you mind putting this issue into the Confluent examples repo here: https://github.com/confluentinc/examples. The tutorial you are following is managed in that repo. The code here for microservices is used there, but the issue you're observing is related to the demo in that repository. if you would mind creating a new issue there and closing this one. Thank you in advance.

@houmamw thanks for surfacing this issue. It is fixed by confluentinc/examples#1016

@rspurgeon Yes, you are right. Sorry for the inconvenient .

@ybyzek thanks for the fix.