This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Upload an object | |
resource "aws_s3_bucket_object" "object" { | |
bucket = aws_s3_bucket.b.id | |
key = "test.txt" | |
acl = "public-read" | |
source = "test.txt" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "bigtable-emulator", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |