AWS CDK Cheat Sheet CDK Constructs Library TypeScript API Reference When synthesizing an AWS CDK stack, I get the message –app is required either in command-line, in cdk.json or in ~/.cdk.json This message usually means that you aren’t in the main directory of your AWS …

AWS CDK Cheat Sheet Read More »

Downloading Files using Google Drive API

See: Google Cloud SDK (gcloud CLI) Create project in Enable Google Drive API in console Using gcloud cli: gcloud doesn’t provide command to access google drive. Install gdrive After entering verification code from browser: -q, –query <query> –order <sortOrder> OrderBy sets the optional parameter “orderBy”: A comma-separated list of sort keys. …

Downloading Files using Google Drive API Read More »

Google Cloud SDK (gcloud CLI)

Installation options Home Brew: Official: gcloud CLI gcloud init – initialize or reinitialize gcloud See: gcloud auth – manage credentials  gcloud auth login – authorize gcloud to access Google Cloud Platform with Google user credentials gcloud auth list – lists credentialed accounts gcloud auth activate-service-account – authorize access to Google Cloud Platform …

Google Cloud SDK (gcloud CLI) Read More »

AWS Cloud Development Kit (CDK) – Big Picture

Big Picture Infrastructure as code in TypeScript and Python etc. CDK includes Command line interface (CLI) tool Language bindings to CloudFormation resources Construct Library A Construct is a logical grouping of one or more resources Constructs are reusable cloud components Types of CDK Constructs CFN Resources or L1 Construct (or L1, short for “level 1”) or …

AWS Cloud Development Kit (CDK) – Big Picture Read More »

AWS CLI CheatSheet

Install aws-cli on macOS Based on: Configure default profile AWS Access Key ID AWS Secret Access Key Default region name Default output format Configure a specific profile List default profile information List all profile names Get Access Key ID List all profiles credentials Changing default profile

Working with Slack Bot

See: Basic Slack app setup See Your Created Apps to get bot token Initial Setup Get Channel Info A conversation object contains information about a channel-like thing in Slack. It might be a public channel, a private channel, a direct message, or a multi-person direct message. See: Need to add some permission to list …

Working with Slack Bot Read More »

Github Actions

Summary GitHub Actions uses YAML syntax to define the events, jobs, and steps. These YAML files are stored in your code repository, in a directory called .github/workflows. GitHub events (e.g. push, pull request) occur, at a scheduled time, manually, or when events outside of GitHub occur. The .github/workflows directory in your repository is searched for workflow files …

Github Actions Read More »