amazon-ec2

Recovering lost AWS EC2 Key Pairs

和自甴很熟 提交于 2021-02-08 12:03:10
问题 AWS rookie here. I created a few EC2 instances under my AWS account and reused the same Key Pair for all of them. I believe (IIRC) that I had generated the Key Pair from inside AWS, but that could be wrong. Over this past weekend I sold my old laptop (after completely wiping the hard disk) and got a new one. I'm just remembering now ( :facepalm ) that I forgot to copy all my SSH private keys to a flash drive and that I no longer have them. All I want/need to do is to SSH into my EC2 instances

On EC2, why do I need individual EBS volumes for journal, log, and data?

被刻印的时光 ゝ 提交于 2021-02-08 10:28:50
问题 According to this MongoDB tutorial which explains how to manually deploy MongoDB on EC2, one of the steps states that you should have: "Individual PIOPS EBS volumes for data (1000 IOPS), journal (250 IOPS), and log (100 IOPS)." Why do I need individual EBS volumes for journal, log, and data? Can I just combine these into one EBS volume? 回答1: MongoDB team may have experienced that IOPS needs for data is highest, log is the lowest and journal is somewhere in the middle. Although I am less

Can't install Scrapyd on EC2

霸气de小男生 提交于 2021-02-08 10:28:19
问题 i'm trying to install scrapyd service in a EC2 instance to deploy a scrapy project . what i have done : 1- Imported the GPG key used to sign Scrapy packages into APT keyring: sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 627220E7 2- Created /etc/apt/sources.list.d/scrapy.list file using the following command: sudo su -c "echo 'deb http://archive.scrapy.org/ubuntu scrapy main' | sudo tee /etc/apt/sources.list.d/scrapy.list" 3- installing scrapyd sudo apt-get update && sudo

Passing IAM role to a Docker on EC2

落爺英雄遲暮 提交于 2021-02-08 10:21:51
问题 What is the suggested way to pass IAM role to a Docker container on EC2? I have a mlflow project running in a docker environment on EC2. The python code needs to read and write from S3. The following is the error (sometimes other types of error also indicating no s3 access from the container, for example s3 resourece not found error) botocore.exceptions.ProfileNotFound: The config profile (xxx) could not be found To solve the s3 access issue, I already created an IAM role that allows access

How would I create a Minecraft EC2 server that automaticaly starts when someone tries to use it

£可爱£侵袭症+ 提交于 2021-02-08 09:50:14
问题 Currently, I have a working modded Minecraft server working running on a C5 EC2 instance. The problem is that I have to manually start and stop the server which can be annoying for my friends. I was wondering if it would be possible to automate the EC2 state so that it runs as soon as a player attempts to join the sever. This would be similar to how Minecraft realms behaves which I heard Mojang was using AWS for: https://aws.amazon.com/blogs/aws/hosting-minecraft-realms-on-aws/ I have looked

I am trying to map an Amazon EC2 drive to a local machine

点点圈 提交于 2021-02-08 08:23:58
问题 I am trying to map an Amazon EC2 instance to my local machine. I have read that it is possible via VPN but I need it to work without a VPN. Essentially I would like to make drives in the EC2 instance available similar to the way DropBox folders are available. I know that I could just use Dropbox but I am trying to find a way to do this using just a local machine running Windows 7 and an EC2 server using Windows Server 2008. If it is easier, I can use Windows Server 2012. 回答1: Your request is

I am trying to map an Amazon EC2 drive to a local machine

柔情痞子 提交于 2021-02-08 08:23:35
问题 I am trying to map an Amazon EC2 instance to my local machine. I have read that it is possible via VPN but I need it to work without a VPN. Essentially I would like to make drives in the EC2 instance available similar to the way DropBox folders are available. I know that I could just use Dropbox but I am trying to find a way to do this using just a local machine running Windows 7 and an EC2 server using Windows Server 2008. If it is easier, I can use Windows Server 2012. 回答1: Your request is

file_put_contents(C:\xampp\htdocs\instant\storage\framework/sessions/FF): failed to open stream: No such file or directory

 ̄綄美尐妖づ 提交于 2021-02-08 07:23:12
问题 I was trying to upload this instance on Amazon elasticBeanstalk, but it doesn't seem to work. I have tried using ssh to access the files to no avail. i did php artisan config:cache and composer dump-autoload before uploading. Any help is appreciated. 回答1: Go to directory laravel/bootstrap/cache and delete config.php file. 回答2: Open terminal in your project directory and run this cmd: php artisan config:clear 来源: https://stackoverflow.com/questions/59595863/file-put-contentsc-xampp-htdocs

file_put_contents(C:\xampp\htdocs\instant\storage\framework/sessions/FF): failed to open stream: No such file or directory

亡梦爱人 提交于 2021-02-08 07:19:11
问题 I was trying to upload this instance on Amazon elasticBeanstalk, but it doesn't seem to work. I have tried using ssh to access the files to no avail. i did php artisan config:cache and composer dump-autoload before uploading. Any help is appreciated. 回答1: Go to directory laravel/bootstrap/cache and delete config.php file. 回答2: Open terminal in your project directory and run this cmd: php artisan config:clear 来源: https://stackoverflow.com/questions/59595863/file-put-contentsc-xampp-htdocs

How to get the output of jq in single line?

泪湿孤枕 提交于 2021-02-08 05:14:31
问题 I have used jq with aws cli to print the instances . Eg: Retrieve instances list aws ec2 describe-instances --filters "Name=tag:bld_env,Values=test" --output json > all-inst.json Jq to print instances id : jq -r '.Reservations[].Instances[].InstanceId' all-inst.json Output of Jq: i-09e0d805cc i-091a61038 i-07d3022 i-0428ac7c4c i-970dc5c4d99 i-014c4ea i-0ac924df i-031f6 and so on.. I want to print them in a line like this : i-09e0d805cc,i-091a61038,i-07d3022,i-0428ac7c4c,i-970dc5c4d99,i