[MongoDB] Cannot connect with MongoDB Solution for not installing or running node: - export NODE_OPTIONS=--openssl-legacy-provider If you see this kinf of message, best way is to change the configuration. I know that it's bad for security reason, but it will solve the problem. Mongo 2022.04.07
[MongoDB] How to install Mongo in WSL2 Install MongoDB To install MongoDB (version 5.0) on WSL (Ubuntu 20.04): Open your WSL terminal (ie. Ubuntu) and go to your home directory: cd ~ Update your Ubuntu packages: sudo apt update Import the public key used by the MongoDB package management system: wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add - Create a list file for MongoDB: echo "deb [ arch=amd64,arm.. Mongo 2022.04.06
[WEB] WEB Security WEB Security Broken Access Control Cryptographic Failures Injection Lee Jensen Lee' OR 1=1 OR name='Jensen "select * from secret where name='${input}' " How to Prevent? Insecure Design Security Misconfiguration Vulnerable Components ID and Auth Failures Software and Data Integrity Failures Logging/Monitoring Failure Cross Origin Resource Sharing Put on your white hat Security Minded Testing Security 2022.04.06
[AWS CDK] CDK command not found even though I downloaded the AWS-CLI package If you have this error.. $ cdk Command 'cdk' not found, did you mean: .... Just install aws-cdk by typing: $ npm install -g aws-cdk added 1 package, and audited 2 packages in 2s found 0 vulnerabilities Bug 2022.04.06
[AWS CDK] Clean up CDK Stack To avoid unexpected charges to your account, make sure you clean up your CDK stack. You can either delete the stack through the AWS CloudFormation console or use cdk destroy: cdk destroy You’ll be asked: Are you sure you want to delete: CdkWorkshopStack (y/n)? Hit “y” and you’ll see your stack being destroyed. AWS/CDK 2022.04.06
[AWS CDK] CDK Diff and CDK Deploy cdk diff Before we deploy, let’s take a look at what will happen when we deploy our app (this is just the Resources section of the output): $ cdk diff Resources [+] AWS::IAM::Role ViewHitCounter/Rendered/ServiceRole ViewHitCounterRenderedServiceRole254DB4EA [+] AWS::IAM::Policy ViewHitCounter/Rendered/ServiceRole/DefaultPolicy ViewHitCounterRenderedServiceRoleDefaultPolicy9ADB8C83 [+] AWS::Lambd.. AWS/CDK 2022.04.06
[AWS CDK] Exposing Hit Counter Table Add a table property to our hit counter Edit hitcounter.ts and modify it as such table is exposed as a public property. import * as cdk from 'aws-cdk-lib'; import * as lambda from 'aws-cdk-lib/aws-lambda'; import * as dynamodb from 'aws-cdk-lib/aws-dynamodb'; import { Construct } from 'constructs'; export interface HitCounterProps { /** the function for which we want to count url hits **/ downst.. AWS/CDK 2022.04.06
[Node.js] [MongoDB] System has not been booted with systemd as init system (PID 1). Can't operate.Failed to connect to bus: Host is down WSL doesn't accept the command of systemctl. We use service instead then change the location of the service that we are trying to use $ sudo systemctl status mongodb System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down $ sudo service mongodb status * Checking status of database mongodb [fail] $ sudo service mongodb start * Starting.. Node.js 2022.04.05
ADD THE TABLE VIEWER TO YOUR APP Add a table viewer to your stack Add the following hightlighted lines to lib/cdk-workshop-stack.ts to add a TableViewer construct to your stack: import * as cdk from 'aws-cdk-lib'; import * as lambda from 'aws-cdk-lib/aws-lambda'; import * as apigw from 'aws-cdk-lib/aws-apigateway'; import { HitCounter } from './hitcounter'; import { TableViewer } from 'cdk-dynamo-table-viewer'; export class Cdk.. 카테고리 없음 2022.04.05
[AWS CDK] cdk-dynamo-table-viewer cdk-dynamo-table-viewer An AWS CDK construct which exposes a public HTTP endpoint which displays an HTML page with the contents of a DynamoDB table in your stack. SECURITY NOTE: this construct was built for demonstration purposes and using it in production is probably a really bad idea. It exposes the entire contents of a DynamoDB table in your account to the general public. The library is publi.. AWS/CDK 2022.04.05