amazon-ec2

HTTPS on EC2 instance running python project

自古美人都是妖i 提交于 2020-07-23 06:15:06
问题 I'm having considerable difficulty getting HTTPS to resolve on my EC2 instance, which runs a python project. The request just times out (ERR_CONNECTION_TIMED_OUT). HTTP runs ok, however. The steps I've taken are as follows. I've created a certificate in ACM for the following domains: *.mywebsite.com and mywebsite.com I've setup Route 53 as follows: Routing policy on the A records is Simple. I've gone into the Listener for my Load Balancer for my EC2 instance and CHANGED the port from 80 (HTTP

HTTPS on EC2 instance running python project

橙三吉。 提交于 2020-07-23 06:14:16
问题 I'm having considerable difficulty getting HTTPS to resolve on my EC2 instance, which runs a python project. The request just times out (ERR_CONNECTION_TIMED_OUT). HTTP runs ok, however. The steps I've taken are as follows. I've created a certificate in ACM for the following domains: *.mywebsite.com and mywebsite.com I've setup Route 53 as follows: Routing policy on the A records is Simple. I've gone into the Listener for my Load Balancer for my EC2 instance and CHANGED the port from 80 (HTTP

Adding Spot Instances to the Security Group of an RDS Instance

若如初见. 提交于 2020-07-22 21:40:15
问题 I have an RDS MySQL persistant instance, and I am trying to run spot instances which are created once every 8 hours and then destroyed. The issue I am having is that I don't understand how can I add those spot instances which have dynamic IPs to the security group of my RDS Instance in order to let them perform queries,etc. Should I grab the IP as soon as the spot instance is created and the add it to the security group of the RDS instance each time a new spot instances is created? Also

Adding Spot Instances to the Security Group of an RDS Instance

别来无恙 提交于 2020-07-22 21:39:16
问题 I have an RDS MySQL persistant instance, and I am trying to run spot instances which are created once every 8 hours and then destroyed. The issue I am having is that I don't understand how can I add those spot instances which have dynamic IPs to the security group of my RDS Instance in order to let them perform queries,etc. Should I grab the IP as soon as the spot instance is created and the add it to the security group of the RDS instance each time a new spot instances is created? Also

how to set block-device-mappings during aws ec2 run-instances?

纵然是瞬间 提交于 2020-07-22 07:39:05
问题 sof, how to set block-device-mappings during aws ec2 run-instances? I am new to awscli. I pip installed it into my python env. I got this example to work ok: aws ec2 run-instances --image-id ami-d2c924b2 --instance-type m4.large How to enhance the above shell command so I launch with more disk space? I tried this syntax and it failed: aws ec2 run-instances --image-id ami-d2c924b2 --instance-type m4.large --block-device-mappings {"DeviceName":"/dev/sda1","Ebs":{"VolumeSize":100}} 回答1: Here is

Terraform - Use security group ID created in separate file for EC2 instance creation

你离开我真会死。 提交于 2020-07-22 05:42:12
问题 I have used this module to create a security group in AWS VPC. How do I reference the resource created from this in a separate file? I am creating our bastion instance in a separate directory in the same repo. My bastion config looks like the following, uses the Terraform EC2 module and works if I hard code the vpc security group ID, but I want it to be able to take it directly from when the security group is created as this could change in the future.. terraform/aws/layers/bastion/main.tf

How to copy SSL certificate from a certificate authority to EC2? [duplicate]

谁说胖子不能爱 提交于 2020-07-22 05:16:09
问题 This question already has answers here : scp (secure copy) to ec2 instance without password (14 answers) Closed 12 days ago . I am trying to create dev-endpoint server on EC2. I must copy my SSL certificate key store onto the Amazon EC2 instance scp -i ec2-private-key keystore.jks ec2-user@dns-address-of-ec2-instance:~/keystore.jks I followed ssl-certificate tutorial. How should my scp line look like? scp -i server.key server.cert ec2-user@my.... 回答1: You should use the following command: scp

aws beanstalk 403 error while deploying

若如初见. 提交于 2020-07-20 07:53:30
问题 Hi I'm using amazon web services elastic beanstalk. Everytime I use git aws.push, my php application uploads successfully However, when I click on the url it says Forbidden You don't have permission to access / on this server. My server specs: 64bit Amazon Linux 2014.03 v1.0.2 running PHP 5.4 What would be causing this? Thanks 回答1: Credit to Rakesh Bollampally: I think your application is inside a folder. If that is the case, change the EBS configuration for document root or have a file in

aws beanstalk 403 error while deploying

二次信任 提交于 2020-07-20 07:52:50
问题 Hi I'm using amazon web services elastic beanstalk. Everytime I use git aws.push, my php application uploads successfully However, when I click on the url it says Forbidden You don't have permission to access / on this server. My server specs: 64bit Amazon Linux 2014.03 v1.0.2 running PHP 5.4 What would be causing this? Thanks 回答1: Credit to Rakesh Bollampally: I think your application is inside a folder. If that is the case, change the EBS configuration for document root or have a file in

plotly orca not working on aws ec2 instance

…衆ロ難τιáo~ 提交于 2020-07-19 11:08:48
问题 I followed this to install conda plotly-orca on an AWS EC2 instance (built on anaconda-python3 image) but hit Cannot open shared object error when orca is invoked. The fix is to install libgtk2.0-0 and libgconf-2-4 packages which unfortunately are not available on AWS EC2 linux distribution (non ubuntu ). So I downloaded this standalone orca-1.3.1.AppImage for linux. I use --appimage-extract to extract orca-1.3.1.AppImage to /home/ec2-user/squashfs-root folder and run: xvfb-run --auto