Questions tagged with Amazon EC2
Content language: English
Sort by most recent
EC2 Session manager is not loading from inside AWS workspaces
EC2 Session manager is not loading for linux instances when trying to access it from inside AWS workspaces station. It shows blank black screen although I'm able to connect to EC2 session manager from my personal system. Please guide. Also, RDP connection for windows is working fine from AWS workspaces.
Access RDS via GUI with Linux Machines.
Hi All, Currently, I have a RDS instance that is sitting inside a private subnet and they are connected to EC2 [Linux Instances] that are in a public subnet. Is there any way for the developers to access the RDS using mysql workbench? Accessing the RDS via CLI is a challenge,
Cloudwatch issue - ModuleNotFoundError: No module named 'cwlogs'
Hello, I'm facing some complicated and un-thinking issue with Cloudwatch,I believe Cloudwatch are easy to use and install because i used to install it at others EC2 instance before. Unfortunately,but it doesn't happen this time.Might need your guys help for this issue. **The issue is:** -Cloudwatch unable to get the metric information from my EC2. **Troubleshooting i do as per below:** 1) Check config file: /etc/awslogs/awslogs.conf point to correct server - MyServer1 & /etc/awslogs/awscli.conf point to correct region = ap-southeast-1 **2)Following the step to re-install cloudwatch:** https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/QuickStartEC2Instance.html **Stuck at because there's an error at the log.** "To install and configure CloudWatch Logs on an existing Amazon Linux instance" section, (Optional) Check the /var/log/awslogs.log file for errors logged when starting the service. The error as per below - /var/log/awslog.log: File "/usr/lib/python3.7/site-packages/awscli/plugin.py", line 58, in _import_plugins plugins.append(__import__(path)) ModuleNotFoundError: No module named 'cwlogs' **What i do is install** = pip install awscli-cwlogs But the issue still persist.Any steps that i missing?Please advice.
Chaning AMI and apply it to ASG for refresh old instacnes automatically, once I deploy
Hello, recently, I use Windows 2019 of EC2 instances and using launchconfigurations for AutoScaling. I used own tool for deploy for ec2. Is there anyway I can make AMI and apply to ASG and also exchanging old ec2 to new AMI image automatically? I thought I could use 2 lambda to make it happend, but it didnt go well. My scnerio is deploy app -> API gateway -> lambda 1 ( making AMI) -> when the status chaged to 'available' -> trigger lambda 2 -> changing AMI image of ASG and refresh. anyone have experience of this?
EC2, Ubuntu, forgot Passphrase
Hi, I have PEM key pair to my EC2 instance, which have Passphrase (the password it ask when we SSH in) , for reason not clear to me, the Passphrase that in my record is not working and I keep getting access denied , tried the this two method, https://aws.amazon.com/premiumsupport/knowledge-center/user-data-replace-key-pair-ec2/ and https://docs.aws.amazon.com/systems-manager/latest/userguide/automation-ec2reset.html Both once completed, still asking for password when SSH in. Please guide me guide on how to reset/remove the password (Passphrase ) request when SSH in to this instance.
Uniqueness of EC2 instance id
Are Amazon EC2 instance Ids globally unique or regionally unique? For example, can two different regions have same EC2 instance id? Asking this because we are trying to export app metrics to an APM system and we need to know if we can rely only on the EC2 instance id or need to concatenate with the region / other identifier. Could not find any correct documentation regarding this hence wanted to confirm before we proceed.