Allow only AWS CLI commands for the login user: $visudo ubuntu ALL=(ALL:ALL) /usr/local/bin/aws Write the lambda function Prepare the deployment package $mkdir /python-packages $virtualenv -p /usr/bin/python /python-packages $source /python-packages/bin/activate $pip install pycrypto $pip install paramiko Deactivate Virtualenv $mkdir /deployment-package $copy the GITHUB URL file here $cp -r /python-packages/lib/python2.7/site-packages/* deployment-package/ $cp -rf /python-packages/lib/python2.7/site-packages/.libs_cffi_backend deployment-package/ $chmod […]
Create a Manager Node: $docker-machine create -d amazonec2 –swarm –amazonec2-region ap-southeast-1 –amazonec2-zone a –amazonec2-vpc-id vpc-12112 –amazonec2-ssh-keypath [SSH-PRIV-KEY-FILE] master Note: Public Key should also be present in the same directory. Create 2 Slave Nodes: $docker-machine create -d amazonec2 –swarm –amazonec2-region ap-southeast-1 –amazonec2-zone a –amazonec2-vpc-id vpc-121212 –amazonec2-ssh-keypath [SSH-PRIV-KEY-FILE] slave1 $docker-machine create -d amazonec2 –swarm –amazonec2-region ap-southeast-1 –amazonec2-zone […]
To use this plugin, you must have: a Java Runtime Environment (JRE) of 1.6 or higher at least one database to monitor (MySQL 5.0 or higher) a New Relic account New Relic Platform Installer (NPI) is a simple, lightweight command line tool that helps you easily download, configure and manage New Relic Platform Plugins Plugin […]
Guide – to run linux command using recipes in Opsworks
Issues faced working with AWS Opsworks.
Requirement : Set a URL redirection in Nginx Configuration. Example : download.appygeek.com => https://play.google.com/store/apps/details?id=com.mobilesrepublic.appygeek On Beanstalk with Phusion Passenger Standalone [3.0.17] (Ruby1.9), Nginx customization is highly discouraged. However to accomplish this, the following workaround is done : Beanstalk generates the nginx configuration file from a ERB template each time when restarted. Hence the configuration change has […]