Questions tagged [aws-ec2]

40 questions
4
votes
1 answer

In AWS, can an EC2 instance be in more than one VPC at the same time?

I think the answer is no, but I want to make sure that I'm not missing anything. Is it possible for an EC2 instance to have IP addresses in more than one VPC at the same time? I tried creating 2 VPCs, and then two network interfaces, one in each…
Pablo
  • 7,249
  • 25
  • 68
  • 83
1
vote
0 answers

Setting up deployment for .net 6 to AWS EC2

(Lowly dev trying to play at devops) I've successfully created an EC2 instance on an Amazon Linux platform. I have a .net 6 API running locally, with the code base sitting in a private GitHub repo. I have been through dozens of pages of setup…
Randy Hall
  • 111
  • 3
1
vote
0 answers

AWS private ip for http requests

I have 2 EC2 instances on a single AWS VPC and a public subnet, say app1.example.com and app2.example.com. They are to be accessed by the company employees only via our VPN. app1's Security Group (SG) allows incoming traffic only from the VPN.…
1
vote
1 answer

AWS EC2 /dev/nvme1n1 mounted without partition table

I have an EC2 server on nitro system (c6g.2xl) where I have attached a 2nd volume. This is a web hosting environment and the disk is regularly increased in size. For some reason I accidentally mounted the disk on - what I would call - the "partition…
jdog
  • 111
  • 4
  • 28
1
vote
1 answer

AWS auto destroy EC2 instances older than X days

We create automatically EC2 instances as ReviewApps. The reviewer are supposed to destroy the ec2 instances but this doens't happen always. So i would like to script (Lambda, Terraform, etc?) that EC2 instances for this specific AWS user are get…
RogerSik
  • 39
  • 6
1
vote
0 answers

AWS-CLI EC2 AMI :: Get details about owner via OwnerId

Given the OwnerId field returned from an AWS ami query such as: $ aws ec2 describe-images --image-ids ami-015f906ef3e2123c0 --region ap-southeast-2 --query Images[].OwnerId [ "602401143452" ] how can I retrieve some information about who the…
spinkus
  • 158
  • 1
  • 15
0
votes
1 answer

AWS: error on import of OVF/OVA file from a VMWare ESXi

My goal is to migrate a VM from VMWare to AWS EC2. I exported the "OVF+VMDK" file from VMWare ESXI 6.5. I also converted to an OVA file to be able to test both OVF and OVA format. I followed the tutorial provided by AWS to import a virtual machine…
0
votes
1 answer

How to check if Route53 will speed up my website?

I have an aws ec2 instance in N.Virginia, an Ubuntu machine with everything inside (mysql as well as apache). Basically all these while, I'm running it on one instance alone, with just image backups and sql backups, but no extra instances nor…
0
votes
0 answers

Custom domain pointed at elastic IP does not have correct SSL certificate

So i have this problem that is bothering me for some time. Now i created SSL certificate with LetsEncrypt and its for my custom domain. Lets say example.com. Now i have set this certificate for load balancer in EB and for listener in EC2. When i…
Axeror
  • 1
  • 1
0
votes
0 answers

How to route all incoming/outgoing traffic to eht1 instead of eth0 on aws linux 2 instance

I am new to the AWS Linux environment, I have added a new network interface (eth1) with my AWS Linux 2 instance. now I want to route all of my incoming and outgoing traffic through this interface(eth1) instead of eth0 which is the default network…
0
votes
0 answers

ssh: connect to host ec2-x-xxx-xxx-xx.compute-1.amazonaws.com port 22: Connection timed out

I connected to my ec2 instance successfully earlier. However, when trying to connect again, I got this error: ssh: connect to host ec2-x-xxx-xxx-xx.compute-1.amazonaws.com port 22: Connection timed out I checked Route table, Network ACL, Internet…
0
votes
1 answer

MYSQL server on EC2 is sometimes refusing to connect

I have hosted a MySQL DB on AWS EC2 instance(t2.micro, ubuntu, free tier). I am able to connect to it and store data. But most of the time, I am unable to connect to it via workbench or my app. But my configurations are correct since I am able to…
Nithur
  • 1
0
votes
0 answers

AWS ECS in private subnets with autoscaling not working without NAT gateway, why?

I have stack in cloudformation, containing ECS cluster with autoscaling EC2 instances, running in private subnets. ECS is covered by ALB (in public subnets). Container instances get images from AWS ECR. I created these VPC endpoints: s3 vpc gateway…
wtdmn
  • 33
  • 2
0
votes
0 answers

How to reduce the aws ebs root volume on windows instance

How can we reduce the size of the aws ebs root volume of windows instance. I have the current size of 250 MB, I want to reduce it back to 30 GB since the applications doesn't need 250 GB.
kartheek
  • 1
  • 1
0
votes
0 answers

ec2 document traffic from machine

I want to document all inbound and outbount traffic from an ec2 machine. I want all to be kept on a log on the machine (or on an s3 bucket, nevermind...) basiclly I need a log that sniffs all the traffic. For example if I do a cURL command from the…
Sharon
  • 1
1
2 3