Git Product home page Git Product logo

vpc-flowlogs's People

Contributors

dprosper avatar l2fprod avatar powellquiring avatar pquiringgit avatar vidyasagarmsc avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

vpc-flowlogs's Issues

Error: Incorrect Usage when deploy the python action to IBM Cloud Functions

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 ./020-create-functions.sh, it returns an error that the implementation is incorrectly implemented (I guess it is not updated, but I couldn't find the root cause until now).

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 | reported on Issue #2)
  8. Run pip3 install virtualenv
  9. Run ./020-create-functions.sh (ERROR)

Output:

 ~/Dev/o/vpc-flowlogs  on master ?1  ./020-create-functions.sh
>>> cloud function namespace
Namespace flow-log-collector-vpc-actions already exists.
Namespace Instance ID is 488a0906-f517-466d-aa3e-f1db5cf4a560
FAILED
Incorrect Usage.

parse error: Invalid numeric literal at line 1, column 5

Error: Incorrect Usage while create Cloud Object Storage service

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.

Error: No SSH Key found with name ssh-rsa in Terraform apply

@powellquiring Great step by step tutorial so far. very clear.

Yet I haven't been through all the steps yet. I face this error during the terraform apply

 2020/07/30 08:42:52 Starting command: terraform apply -state=terraform.tfstate -var-file=schematics.tfvars -auto-approve -no-color -parallelism=1
 2020/07/30 08:42:55 Terraform apply | data.ibm_is_image.ubuntu: Refreshing state...
 2020/07/30 08:42:56 Terraform apply | data.ibm_is_ssh_key.ssh_key: Refreshing state...
 2020/07/30 08:42:57 Terraform apply | 
 2020/07/30 08:42:57 Terraform apply | Error: No SSH Key found with name ssh-rsa
 2020/07/30 08:42:57 Terraform apply | 
 2020/07/30 08:42:57 Terraform apply |   on ibm.tf line 24, in data "ibm_is_ssh_key" "ssh_key":
 2020/07/30 08:42:57 Terraform apply |   24: data "ibm_is_ssh_key" "ssh_key" {
 2020/07/30 08:42:57 Terraform apply | 
 2020/07/30 08:42:57 Terraform apply | 
 2020/07/30 08:42:57 Terraform APPLY error: Terraform APPLY errorexit status 1
 2020/07/30 08:42:57 Could not execute action

The steps ./000-prereqs.sh did not show any errors
OK
Target Generation: 2
>>> Verify the VPC ssh key exists...f

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.