amazon-ec2

AWS ACM SSL Protocol error

回眸只為那壹抹淺笑 提交于 2020-01-30 12:12:12
问题 I am working with an AWS EC2 instance (amazon Linux, elastic IP) trying to set up SSL through ACM. The certificate is verified and the load balancer is passing the health checks listening on prot 443, forwarding to port 80. Initially, when testing https I received a connection refused. This confused me because I thought the load balancer would catch and forward this to port 80. I enabled port 443 via nginx on the EC2 instance, so now it is listening on 443 (tested via telnet), which got rid

How to migrate GCP instances to AWS?

ぐ巨炮叔叔 提交于 2020-01-30 08:14:09
问题 I'm trying to migrate GCP instances to AWS, I have been searching for the solution but didn't find any references. Could you please help me with this. 回答1: The OS are customized differently in different cloud, so you can only migrate files and applications, by using Cloud Storage or AWS S3 as the bridge to migration files While for the applications, you're recommended to build from scratch, but it highly depends on what exactly you want to migrate 来源: https://stackoverflow.com/questions

Why i could not upload file more than 3 mb using php at amazon ec2 server?

吃可爱长大的小学妹 提交于 2020-01-30 06:41:28
问题 I am working with Amazon EC2 server with linux instance. In my project user can upload video. So I used php to upload the file. It is working in other server but not working in amazon ec2 server. When I upload file less than 1 mb it is working but if the file size is greater than 3mb than it is not working.I don't know where to set the permission to upload large file. What can I do? This is my sample code - <?php $fileName = $_FILES["file1"]["name"]; // The file name $fileTmpLoc = $_FILES[

How Can I get details of an AMI or Snapshot if It is encrypted and with which key AWS Managed CMK or Customer Manager CMK in AWS

你说的曾经没有我的故事 提交于 2020-01-26 04:42:27
问题 Issue : ➜ I want to get information about my AMI to know if it is Encrypted or not and If yes, then with which key it is encrypted with (AWS Managed CMK or Customer Manager CMK) so that I can utilize this information while sharing my AMI with another account without any issues. 回答1: Solution :➜ ****We can get this information using AWS Console as well as AWS CLI which could be useful while troubleshooting Encrypted AMI/Snapshots and KMS co-relation**** How can I check using AWS CLI Commands:

Amazon EC2 - Automatic Restore Snapshot

半城伤御伤魂 提交于 2020-01-25 20:27:29
问题 I'm looking to setup a demo environment in Amazon that consists of a pre-configured EC2 image that resets itself back to a snapshot configuration every hour, this is would be a Linux VM. What would be the best way to go about doing this in EC2? Does Amazon offer any tools for scheduling and reverting to the snapshot or would this need to be done from a third party VM or software? 回答1: There is no VMWare-like 'snapshot' functionality in Amazon EC2 (where you can roll-back to a point-in-time).

How to allow certain ports open to world only for certain security groups in Cloud Custodian?

為{幸葍}努か 提交于 2020-01-25 10:02:08
问题 I have this in my policy to allow only 80 and 443 open to world. "or": [ { "Cidr": { "value": "0.0.0.0/0" }, "type": "ingress", "OnlyPorts": [ 80, 443 ] }, { "CidrV6": { "value": "::/0" }, "type": "ingress", "OnlyPorts": [ 80, 443 ] } ] Now, I want to allow only 8080 and 8081 to selected security groups, not for all security groups. Is this possible? 回答1: You need to edit particular security groups only. Just open the ports there and that will do it. 回答2: Add a value filter using a key and

PHP - EC2 Implementing SES - Help

六眼飞鱼酱① 提交于 2020-01-25 09:46:05
问题 Hey Guys. I have my servers setup via EC2. I had postfix setup but as usual the emails were going into the spam box. I signed up for Amazons SES, i see everyone saying its easy to implement although I cannot seem to figure it out. I downloaded the PHP SDK and put it in a inc folder. refrenced it in my script. and I cannot get any response what-so-ever from the script. Is there any demo scrips I can use? Thanks 回答1: "Wow," I thought to myself. "This is just the night for questions for which

GZIP python3 AttributeError: 'module' object has no attribute 'compress'

柔情痞子 提交于 2020-01-25 09:00:48
问题 pipe.setnx(prefix+item[0], gzip.compress(bytes(item[1], 'utf-8'))) I'm trying to compress a file using the gzip python lib on an EC2 instance. I assume that gzip is part of the standard library. However, I get the following error AttributeError: 'module' object has no attribute 'compress' 回答1: I figured out that someone else had added a library called gzip. So, it was defaulting to that one and the not standard library. I ended up using zlib instead. 来源: https://stackoverflow.com/questions

Amazon EFS: Changing Wordpress upload directory to outside root

旧街凉风 提交于 2020-01-25 07:24:07
问题 I have multiple AWS EC2 instances which are updated from a Git repository via CodeDeploy. However, since keeping the wp-content/uploads folder in Git is messy and hard to maintain, I'm instead trying to move all uploads to a directory which I have mounted as an EFS filesystem. That way I should be able to share the uploads between multiple EC2 instances. However, now I'm running into a new problem; there's no way for me to set the WP uploads folder to be outside of the WP root. WordPress is

bluepill not detecting that processes have, in fact, started successfully, and so creates new ones

天涯浪子 提交于 2020-01-25 06:07:12
问题 I have one (EC2) Ubuntu server where bluepill is working just fine to start and monitoring resque processes (and it has done so on other nodes in the past). I'm setting up a new node, and for some reason on this node bluepill does not recognize that the processes have started and are running, and so keeps creating new ones. I'm a little baffled by what's causing this. The 2 nodes are almost identical; they're both EC2 servers provisioned by the same chef scripts. It is true that the one not