amazon-ec2

Installing RVM/Ruby 1.9.3 via Chef

笑着哭i 提交于 2020-01-17 07:40:12
问题 I'm just getting started with trying to move my infrastructure over to Chef, and I think I must be missing something obvious. I'm using the chef-rvm cookbook to install RVM, and I'd like it to install Ruby 1.9.3p125 and set that as the default. Here's my base server role: name "base" description "Basic configuration for all nodes" run_list( 'recipe[git]', 'recipe[sudo]', 'recipe[ubuntu]', 'recipe[rvm]', 'recipe[postgresql::client]' ) override_attributes( :authorization => { :sudo => { :users

Using JMESPath and aws ec2 describe instances to output multiple tag values

牧云@^-^@ 提交于 2020-01-17 07:04:42
问题 I'm trying to output multiple tags from an ec2 instances description. The tag values that I want are Name and aws:autoscaling:groupName. "Tags": [ { "Value": "somename", "Key": "Name" }, { "Value": "some-asg-name", "Key": "aws:autoscaling:groupName" }, { "Value": "somethingelse", "Key": "project" } ], Here's what I have so far: aws ec2 describe-instances --instance-ids i-12345678 --query 'Reservations[].Instances[].[Tags[? contains(`["aws:autoscaling:groupName","Name"]`, Key)] | [0].Value,[1]

How to ssh into an AWS EC2 instance with Remmina

荒凉一梦 提交于 2020-01-17 06:37:20
问题 I am trying to replace putty with Remmina as I need to log into several instances and I get an "Enter private key passphrase", even though I had not set one up for the key. I use the same params as in putty, ec2-user, public dnsand the ppk keyfile. Any suggestions? 回答1: I use the same params as in putty, ec2-user, public dns and the ppk keyfile . Putty PPK files use a file format specific to putty (and certain other programs like WinSCP). Unix-based ssh clients typically use a different key

SSH connection error - Permission denied (publickey)

 ̄綄美尐妖づ 提交于 2020-01-17 05:45:07
问题 I'm trying to run a Spark cluster on AWS using https://github.com/amplab/spark-ec2. I've generated a key and and login credentials, and I'm using this command: ./spark-ec2 --key-pair=octavianKey4 --identity-file=credentials3.csv --region=eu-west-1 --zone=eu-west-1c launch my-instance-name However, I keep getting this: Warning: SSH connection error. (This could be temporary.) Host: mec2-myHostNumber.eu-west-1.compute.amazonaws.com SSH return code: 255 SSH output: Warning: Permanently added

installed font not working in ec2 in rails app

泪湿孤枕 提交于 2020-01-17 04:28:06
问题 I have downloaded font by running wget http://www.fontsquirrel.com/fonts/download/amatic inside my ec2 instance. Then I created a .fonts director and unzipped those files inside it. Then I ls .fonts and there were the font files. Then I ran fc-cache -f -v and it gave me this output /usr/share/fonts: caching, new cache contents: 0 fonts, 3 dirs /usr/share/fonts/cmap: caching, new cache contents: 0 fonts, 5 dirs /usr/share/fonts/cmap/adobe-cns1: caching, new cache contents: 0 fonts, 0 dirs /usr

Windows SendInput (Keyboard) Not Working on Disconnect

余生长醉 提交于 2020-01-17 02:13:25
问题 I am running a c# application that makes use of the sendinputs method in windows to mimic keystrokes. It works fine when I am remoted into the instance, but as soon as I log out it throws an exception. Can anyone offer any thoughts on why this is happening, and how to avoid it? UPDATE:: here is some sample code that can reproduce the issue. using System.Runtime.InteropServices; using System.Windows.Forms; namespace ConsoleApplication6 { class Program { class SendKey { [StructLayout(LayoutKind

Why can I not use new XMLHttpRequest on my amazon server?

瘦欲@ 提交于 2020-01-17 01:23:07
问题 So bear with me because I feel that I've tried everything there is to try. I'm really new to JavaScript and I've primarily worked with C/C++ before and I am still a novice with respect to those languages as well. I tried to create a page on my aws services (ec2) server that when accessed with a get request of a URL it would use my server-side API key and return JSON data that it requested from the URL given. I was working with the League of Legends API and with NodeJs using forever start *.js

setting up aws sdk for node.js keeps returning 502

断了今生、忘了曾经 提交于 2020-01-16 18:44:28
问题 Hi I followed the tutorial here to set up a node.js application with aws sdk on elastic beanstalk http://aws.amazon.com/developers/getting-started/nodejs/ However, I keep getting this when I upload to elastic beanstalk. 502 Bad Gateway nginx/1.4.7 I notice when I upload a normal node.js file with requiring aws-sdk, it works. Why is this? 来源: https://stackoverflow.com/questions/23797755/setting-up-aws-sdk-for-node-js-keeps-returning-502

setting up aws sdk for node.js keeps returning 502

ε祈祈猫儿з 提交于 2020-01-16 18:44:06
问题 Hi I followed the tutorial here to set up a node.js application with aws sdk on elastic beanstalk http://aws.amazon.com/developers/getting-started/nodejs/ However, I keep getting this when I upload to elastic beanstalk. 502 Bad Gateway nginx/1.4.7 I notice when I upload a normal node.js file with requiring aws-sdk, it works. Why is this? 来源: https://stackoverflow.com/questions/23797755/setting-up-aws-sdk-for-node-js-keeps-returning-502

When I stop and start an ec2 cents os instance , what data do I loose

邮差的信 提交于 2020-01-16 13:21:11
问题 I have an ec2 instance that is hosting a CentOS AMI image and the root device is EBS , however it is not EBS optimized. I have installed a few packages on it now I want to stop and start it again , Amazon documentation says that the EBS data would be available but the instance store data would be lost. How do I know where(EBS or Instance store) my packages are stored ? I see that package files are in /opr /var /etc directories . Will I loose my installed packages if I stop and start the