Skip to content

Instantly share code, notes, and snippets.

View oxlb's full-sized avatar
🎯
Focusing

Onexlab (Munish Kapoor) oxlb

🎯
Focusing
View GitHub Profile
provider "aws" {
region = "us-east-1"
access_key = "test123"
secret_key = "testabc"
skip_credentials_validation = true
skip_requesting_account_id = true
skip_metadata_api_check = true
s3_force_path_style = true
endpoints {
s3 = "http://localhost:4566"
# Upload an object
resource "aws_s3_bucket_object" "object" {
bucket = aws_s3_bucket.b.id
key = "test.txt"
acl = "public-read"
source = "test.txt"
}
# Public Cloud Configuration
provider "aws" {
region = "us-east-1"
access_key = "test123"
secret_key = "testabc"
skip_credentials_validation = true
skip_requesting_account_id = true
skip_metadata_api_check = true
s3_force_path_style = true
endpoints {
// Imports the Google Cloud client library
require('dotenv').config();
const Bigtable = require('@google-cloud/bigtable');
const TABLE_NAME = 'test_table';
const COLUMNS = ['column1', 'column2', 'column3'];
function getBigTableInstance() {
// Load Bigtable Instance
const bigtableOptions = {
## Mock Project For Emulator
GCP_PROJECT_ID=cbt-test
## Mock Key For Emulator
CBT_KEY='bigtable.json'
## Mock Instance
CBT_INSTANCE=v1
## Mendatory when you want to run your app on Emulator
{
"name": "bigtable-emulator",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
version: '3.6'
services:
bigTable:
command: gcloud beta emulators bigtable start --host-port=0.0.0.0:8086
image: google/cloud-sdk:latest
volumes:
- .:/opt/folder_name/my_application:delegated
working_dir: /opt/folder_name/my_application
environment:
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
arch -x86_64 brew install ios-webkit-debug-proxy
@oxlb
oxlb / docker-compose.yml
Created July 14, 2021 14:34
cloud-spanner
version: '3'
services:
spanner:
image: gcr.io/cloud-spanner-emulator/emulator:latest
ports:
- "9010:9010"
- "9020:9020"
gcloud-spanner-init:
image: gcr.io/google.com/cloudsdktool/cloud-sdk:latest