Download and install robomongo on your system download links.
#### Step 2 Quickly change the MongoDB Server configuration to allow remote connections. How-to-allow-remote-connections-on-mongodb.
- Start robomongo.
packages: | |
yum: | |
git: [] | |
gcc: [] | |
make: [] | |
openssl-devel: [] | |
commands: | |
00-add-home-variable: | |
command: sed -i 's/function error_exit/export HOME=\/root\n\nfunction error_exit/' /opt/elasticbeanstalk/hooks/appdeploy/pre/50npm.sh | |
container_commands: |
Download and install robomongo on your system download links.
#### Step 2 Quickly change the MongoDB Server configuration to allow remote connections. How-to-allow-remote-connections-on-mongodb.
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
# This is a "Managed Script" in Jenkins | |
COMMIT=`aws lambda get-alias --region $AWS_REGION --function-name $FUNCTION_NAME --name $PUBLISH_FROM_ALIAS | grep "Description" | cut -d'"' -f4` | |
VERSION=`aws lambda publish-version --region $AWS_REGION --function-name $FUNCTION_NAME --description $COMMIT | grep "Version" | cut -d'"' -f4` | |
aws lambda update-alias --region $AWS_REGION --function-name $FUNCTION_NAME --function-version $VERSION --name $PUBLISH_TO_ALIAS --description $COMMIT |
var https = require('https'); | |
var util = require('util'); | |
exports.handler = function(event, context) { | |
console.log(JSON.stringify(event, null, 2)); | |
console.log('From SNS:', event.Records[0].Sns.Message); | |
var postData = { | |
"channel": "#aws-sns", | |
"username": "AWS SNS via Lamda :: DevQa Cloud", |
packages: | |
yum: | |
git: [] | |
gcc: [] | |
make: [] | |
openssl-devel: [] | |
ImageMagick: [] | |
option_settings: | |
- option_name: NODE_ENV |
packages: | |
yum: | |
git: [] | |
gcc: [] | |
make: [] | |
openssl-devel: [] | |
ImageMagick: [] | |
option_settings: | |
- option_name: NODE_ENV |
import paramiko | |
k = paramiko.RSAKey.from_private_key_file("/Users/whatever/Downloads/mykey.pem") | |
c = paramiko.SSHClient() | |
c.set_missing_host_key_policy(paramiko.AutoAddPolicy()) | |
print "connecting" | |
c.connect( hostname = "www.acme.com", username = "ubuntu", pkey = k ) | |
print "connected" | |
commands = [ "/home/ubuntu/firstscript.sh", "/home/ubuntu/secondscript.sh" ] | |
for command in commands: | |
print "Executing {}".format( command ) |
| Title | Description