Questions tagged [aws-ec2-instance-connect]

Amazon EC2 Instance Connect provides a secure way to connect to instances using Secure Shell (SSH). You use AWS Identity and Access Management (IAM) policies and principals to control SSH access to instances, removing the need to share and manage SSH keys. All connection requests using EC2 Instance Connect are logged to AWS CloudTrail to enable auditing of connection requests.

See: Connecting to Your Linux Instance Using EC2 Instance Connect

61 questions
1
vote
1 answer

Implemented keycloak on aws ec2 windows instance and it's running inside the instance only but not running outside the instance

I'm using keycloak 15.1.1 version and 64 bit windows ec2 instance. Downloaded RDP from aws and using RDP I logged into instance and added keycloak and mysql connecor 8.0.31 to connect keycloak with external database. I referred from here :…
Krishna
  • 11
  • 3
1
vote
1 answer

Terraform aws_spot_fleet_request public_ip attribute not found

ERROR: ╷ │ Error: Unsupported attribute │ │ on spot_inst.tf line 82, in resource "null_resource" "spot_inst_ssh": │ 82: host = element(aws_spot_fleet_request.spot_inst..public_ip,"${each.value.IMO}") │ │ This object does not have an…
1
vote
1 answer

Spring boot application is running on EC2, isn't responding to the public dns of the EC2

I have a spring boot application, deployed in the EC2 instance. when I hit the DNS it says the site can not be reached. spring boot application in the ec2, running successfully hitting the public DNS with the port number
1
vote
0 answers

mongo db which is runing on ec2 instance , during connection with node app it is saying you can not use ipv4

when my node app trying to connect mongo db url which is runing on ec2 instance , it is saying you can not use ipv4 , i use dns name of mongo , again same issue coming UNHANDLED REJECTION! Shutting down... Error querySrv ENOTFOUND…
1
vote
1 answer

EC2 Instance Connect equivalent of scp

I have an EC2 instance on which I don't allow ssh. I use EC2 Instance Connect to connect to it. What is the alternative to scp Amazon exposes when using EC2 Instance Connect rather than ssh?
Alon
  • 10,381
  • 23
  • 88
  • 152
1
vote
1 answer

What causes an EC2 instance to stop?

I suddenly started having issues connecting to my EC2 instance, and in the AWS console, I noticed the instance status was stopped. I am not very familiar with AWS EC2, but if I understand correctly, EC2 instances don't stop on their own, so I must…
1
vote
1 answer

Are AWS SSH keys HIPAA or Sox compliant?

AWS typically uses SSH keys that get assigned on instance creation to facilitate access to EC2 instances through ssh. Those keys then typically get shared amongst the admin team to maintain the instances. Managing those keys for thousands of EC2…
Bernie Lenz
  • 1,967
  • 23
  • 45
1
vote
1 answer

Cannot ping and ssh login to the ec2 instances after login to bastion host

I use the module "terraform-aws-modules/vpc/aws" and "terraform-aws-modules/ec2-instance/aws" provisioned VPC and ec2 instances. See the code below. I am able to ssh login to the bastion host via bastion host public ip. Inside bastion host, I am not…
1
vote
0 answers

I could not connect Tomcat deployed in ec2 instance from my local sand box

Here is the output on my ec2 instance [root@ip-172-31-15-53 bin]# sudo netstat -atpn | grep 8080 tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 1752/java when I telnet 172-31-15-53 8080. connect to 172-31-15-53…
mel win
  • 11
  • 1
1
vote
1 answer

AWS Instance Connect with a resource tag condition

I am trying to limit ssh access to ec2 instances by using a resource tag condition in my instance connect policy. So basically I have something like that: { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", …
1
vote
0 answers

Mock test failing for boto3.client(ec2-instance-cpnnect).send_ssh_public_key

I have the following code for ssh using instance id. filename.py - def command(self,args): ec2connect = boto3.client('ec2-instance-connect') ec2connect.send_ssh_public_key( InstanceId=args.instance_id, …
jack
  • 11
  • 1
1
vote
1 answer

Amazon Web Services Missing Instances

Sorry, I am really new to this AWS. I am stuck since yesterday. Our former developer creates an app and it is on AWS, unfortunately, we can't find the Instances on the account he created. But we can still access the IP, and also, there's nothing on…
1
vote
1 answer

Access to IAM users for EC2 Instance Connect

How can I restrict the user from connecting to my Linux instance using EC2 Instance Connect? I have tried to set policy and attach users to connect for my newly created Amazon Linux 2 instance using EC2 Instance Connect: { "Version":…
sony
  • 131
  • 1
  • 2
  • 4
0
votes
2 answers

aws ec2 my spring boot is runnig on port 8080 and I need to run on 80

I have configure AWS EC2 linux instance . So I run my spring boot app on that instance. So When I start my app its post is 8080 so after deployment and my app is active then URL is like : 55.12.15.78:8080/myapp/ Can any one help how to run my app…
0
votes
0 answers

when i try to connect ec2 instances via ssh it says no such file or dic

I download pem file while launching t2.micro instance. When I try to connect it via ssh it say no such a file in directory. But am sure that pem file is in directory. $ chmod 400 web-dev-key.pem chmod: cannot access ‘web-dev-key.pem’: No such file…