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
var AWS = require('aws-sdk'); | |
AWS.config.update({ region: 'us-east-1' }); | |
var s3 = new AWS.S3(); | |
var obj = { | |
firstname: "Navjot", | |
lastname: "Dhanawat" | |
}; | |
var buf = Buffer.from(JSON.stringify(obj)); |
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 shows the setup for two services, an accounts service which connects to a database and a pagerduty service which connects to the pagerduty api | |
# Directory structure | |
accounts/ | |
|_ Dockerfile | |
pagerduty/ | |
|_ Dockerfile | |
nginx/ | |
|_ conf/ | |
|_ sites.conf | |
|_ .htpasswd |