ibm-cloud / vpc-flowlogs Goto Github PK
View Code? Open in Web Editor NEWVPC Flowlogs
License: Apache License 2.0
VPC Flowlogs
License: Apache License 2.0
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:
ibmcloud login --sso
cp template.local.env local.env
source local.env
./000-prereqs.sh
./010-create-services.sh
(ERROR | reported on Issue #2)pip3 install virtualenv
./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
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:
ibmcloud login --sso
cp template.local.env local.env
source local.env
./000-prereqs.sh
./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.
@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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.