Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Error: Incorrect Usage while create Cloud Object Storage service #2

@victorshinya

Description

@victorshinya

Hello all! I have to show all logs that have been generated by Flow Logs into IBM Log Analysis (LogDNA). I've run the step-by-step and I've faced couple issues.

When I run ./010-create-services.sh, it returns an error that the shell script is not updated to run correctly the ibmcloud resource service-instance-create command (just tried to run locally and on IBM Cloud Shell).

Steps to reproduce:

  1. Run ibmcloud login --sso
  2. Clone the source code
  3. Run cp template.local.env local.env
  4. Edit the local.env file to add all environment variables
  5. Run source local.env
  6. Run ./000-prereqs.sh
  7. Run ./010-create-services.sh (ERROR)

Output:

 ~/Dev/o/vpc-flowlogs  on master ?1  ./010-create-services.sh
Creating Cloud Object Storage Service...
FAILED
Incorrect Usage.

NAME:
  service-instance-create - Create a service instance

USAGE:
  ibmcloud resource service-instance-create NAME (SERVICE_NAME | SERVICE_ID) (SERVICE_PLAN_NAME | SERVICE_PLAN_ID) LOCATION [-d, --deployment DEPLOYMENT_NAME] [-p, --parameters @JSON_FILE | JSON_STRING ] [-g RESOURCE_GROUP] [--service-endpoints SERVICE_ENDPOINTS_TYPE] [--allow-cleanup] [--lock] [-q, --quiet]
  
OPTIONS:
  -d value, --deployment value  Name of deployment
  -p value, --parameters value  JSON file or JSON string of parameters to create service instance
  -g value                      Resource group name
  --service-endpoints value     Types of the service endpoints. Possible values are 'public', 'private', 'public-and-private'.
  --allow-cleanup               Whether the service instance should be deleted (cleaned up) during the processing of a region instance delete call
  --lock                        Whether to create the service instance with locked state
  -q, --quiet                   Suppress verbose output

Although I still have an COS instance and a bucket for Flow Logs, I've been running step-by-step to understand the provisioning and set up process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions