amazon-ec2

How to install third-party SSL Certificate with AWS EC2 Instance (Ubuntu AMI)? Will it cost one-time or monthly basis?

為{幸葍}努か 提交于 2021-02-10 18:26:12
问题 I have purchased SSL Certificate from COMODO SSL Store. I have AWS EC2 Instance with Ubuntu AMI. I want to install this SSL certificate on AWS but couldn't make it work. I just want to use this certificate with my website 'somewebsite.com' and nothing else like load balancer or something else. I found this but it has load balancer which I dont want https://cheapsslsecurity.com/blog/install-ssl-certificate-on-amazon-web-services-aws/ I tried this but I guess this is not the right way. This

Access AWS S3 from Lambda within Default VPC

你。 提交于 2021-02-10 15:43:16
问题 I have a lambda function which needs to access ec2 through ssh and load files and save it to s3. So,for that I have kept ec2 and lambda both in default VPCs and same subnet. Now the problem is that I am able to connect the function to ec2 but not to s3. Its killing me since morning as when I remove the vpc settings it uploads the files to s3 ,but then connection to ec2 is lost. I tried to add a NAT gateway to default VPC(although I am not sure I did it correctly or not because I am new to

Access to custom TCP Rule in AWS EC2 [closed]

时光怂恿深爱的人放手 提交于 2021-02-10 09:42:37
问题 Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Improve this question I had created a custom TCP rule in aws EC2 server. And the inbound and the outbound rules for the rule is anywhere mean anyone can access the port. But the port is not enabled. I was getting a problem like port is closed whenever I tried to check it using "yougetsignal". Whereas

Is possible to use Amazon Elastic Beanstalk with SSL (HTTPS) without a Load Balancer?

别来无恙 提交于 2021-02-10 08:56:31
问题 From now on, my application needs a secure connection (HTTPS). I verify that most of tutorials for adding secure connections (https) on Amazon Web Services Elastic Beanstalk uses the Elastic Load Balancer as a tunnel. In my case I'm running a single instance, in fact I don't need a Load Balancer. How can I add a secure connection to my instance without a Elastic Load Balancer? Is that possible? I am using 64bit Amazon Linux 2017.03 v2.4.4 running PHP 7.0 Elastic Beanstalk. 回答1: That is

Route 53 alias record not working?

▼魔方 西西 提交于 2021-02-10 05:13:33
问题 I previously had a website working on AWS. It was created & registered with AWS. It was setup in the hosted zone and point to an EC2 instance. Everything was working fine. I got "smart" and created a load balancer, which pointed to the EC2 instance, and then I deleted the previous hosted zone record (and associated recordset) and re-added the hosted zone record which would point to the load balancer. After much googling I determined I needed to add an "A" record, make it an alias and point it

Route 53 alias record not working?

拟墨画扇 提交于 2021-02-10 05:12:33
问题 I previously had a website working on AWS. It was created & registered with AWS. It was setup in the hosted zone and point to an EC2 instance. Everything was working fine. I got "smart" and created a load balancer, which pointed to the EC2 instance, and then I deleted the previous hosted zone record (and associated recordset) and re-added the hosted zone record which would point to the load balancer. After much googling I determined I needed to add an "A" record, make it an alias and point it

Amazon S3: Grant anonymous access from IP (via bucket policy)

谁说我不能喝 提交于 2021-02-09 08:35:58
问题 I have a Amazon S3 bucket and would like to make it available to scripts on a certain machine, whithout the need to deploy login credentials. So my plan was to allow anonymous access only from the IP of that machine. I'm quite new to the Amazon cloud and bucket policies look like the way to go. I added the following policy to my bucket: { "Version": "2008-10-17", "Id": "S3PolicyId1", "Statement": [ { "Sid": "IPAllow", "Effect": "Allow", "Principal": { "AWS": "*" }, "Action": "s3:*", "Resource

Running Chrome on an AWS micro instance

こ雲淡風輕ζ 提交于 2021-02-08 15:48:10
问题 Let me start by saying my server administration experience is limited, so please forgive me if I'm making assumptions that might seem odd. I've written an extension for Google Chrome and I'd like to test its stability when left running continuously for days, but unfortunately I have no access to a pc or laptop that I can leave on 24/7. So my idea is to set up a EC2 micro instance with ubuntu, then install ubuntu-desktop and a vnc server, and finally connect via vnc to the instance, access to

AWS CLI using Instance Profile Credentials

馋奶兔 提交于 2021-02-08 12:17:12
问题 How do I specify that I want to use Instance profile credentials when using the AWS CLI from within my EC2 instance? the docs say: Instance profile credentials – these credentials can be used on EC2 instances with an assigned instance role, and are delivered through the Amazon EC2 metadata service. Is this automatic or do I need to call the metadata service and save the returned credentials to the ~/.aws/credentials file...then make the call? 回答1: You are talking about IAM Roles. These are

Recovering lost AWS EC2 Key Pairs

℡╲_俬逩灬. 提交于 2021-02-08 12:07:01
问题 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