Questions tagged with Compute
Content language: English
Sort by most recent
Error running python selenium webdriver for chrome browser on aws ec2
``` from selenium import webdriver from selenium.webdriver.chrome.options import Options options = Options() options.add_argument("--headless") driver = webdriver.Chrome(options=options, executable_path=r'/usr/bin/chromedriver') driver.get("http://google.com/") print ("Headless Chrome Initialized") driver.quit() ``` **Error** ![Enter image description here](/media/postImages/original/IM0VYja0RaQZaGliHaTgF4ow)
EC2 instance created with public IP, but unable to access over HTTP
Created an EC2 instance, having a VPC with attached Internet gateway, Security groups with inbound rule to allow any traffic fro HTTP, HTTPS and having all traffic allowed for outbound rule. internet gateway created, attached to VPC using, and add it to the route table too. But even after successful launch, instance is unreachable when hitting the assigned public ip from browser. Also when used to connect the instance from "CONNECT" button , getting console opened but later errors out with message: `EC2 Instance Connect is unable to connect to your instance. Ensure your instance network settings are configured correctly for EC2 Instance Connect. For more information, see Set up EC2 Instance Connect at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-set-up.html.` Any pointers are highly appreciated.
RE : AWS Inspector Shows Critical Updates Pending But Instance Says Otherwise
Hi Team, Instance ID - i-0e5934adddc2d8372 I've updated all the packages (See Libcurl-2.png). But the Inspector still shows critical updates are pending on my instance (See Libcurl-1.png) Requesting help in investigating this.![![Enter image description here](/media/postImages/original/IMgUGzjYUXQAOinPmO1hAqZg) Enter image description here](/media/postImages/original/IMjXCbaW5ZTuaGmhzz6Nw26g) ![Enter image description here](/media/postImages/original/IMQf0BnF4-RvGK_YroaAC43Q) Eg : >>> This is what Inspector Shows For The Instance : Affected packages Name libcurl Installed version / Fixed Version 0:7.79.1-4.amzn2.0.1.X86_64 / 0:7.79.1-6.amzn2.0.1 Package manager OS Name curl Installed version / Fixed Version 0:7.79.1-4.amzn2.0.1.X86_64 / 0:7.79.1-6.amzn2.0.1 Package manager OS >>> This is what the Instance shows when trying to remediate (i.e update the package -> It says its already updated) sh-4.2$ sudo yum update libcurl Loaded plugins: extras_suggestions, langpacks, priorities, update-motd amzn2-core | 3.7 kB 00:00:00 No packages marked for update sh-4.2$
One user unable to sudo on specific EC2 instances (g4/g5.*). PAM account management error is thrown while trying to sudo
We have multiple EC2 machines in our account, all AL2. One user is unable to sudo on specific instance types (g4/g5), while others can. The user is a part of sudoers and other users able to sudo on the same instance types. This becomes weirder when this user is able to sudo on other instance types (c5, m5, etc.). Error thrown is PAM account management error: Authentication service cannot retrieve authentication info ; TTY=pts/2 ; PWD=/home/<userid>; USER=root ; COMMAND=/usr/bin/su The users on these servers are authenticated using sssd hitting the enterprise LDAP server, so they are not created locally. We upgraded/downgraded the sudo version but it did not help. Any advise would be appreciated. [root@ip-100-x-x-x log]# cat /etc/os-release NAME="Amazon Linux" VERSION="2" ID="amzn" ID_LIKE="centos rhel fedora" VERSION_ID="2" PRETTY_NAME="Amazon Linux 2" ANSI_COLOR="0;33" CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2" HOME_URL="https://amazonlinux.com/"
Lightsail - Adding a tag while the instance is already running
Hi. As per the Lightsail documentation, we should be able to manage tags on instances after they been created. https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-adding-tags-to-a-resource There should be a Tags tab into the management page of the resource. I can't see this tab. Everything else is there, except for "Tags" .... Is a special IAM role missing on my account to manage tags on Lightsail resources ? I checked and didn't see any roles about this... Thanks.
Patch manager doesn't work on Rocky Linux
Hello all, I'm trying to use the patch manager to update the Rocky Linux instance, But when I go to upgrade via Patch manager I received the following error: ![Enter image description here](/media/postImages/original/IMTRBft2xVRn-tyWt_xpzLhg) Any idea where I'm going wrong. Thanks
Restricting access to an EC2 Web app to only Amplify app access
We would like to restrict access to a chat web app running on our EC2 Linux server to only our Amplify hosted frontend app. Currently, the Linux-based chat app (Apache based) is accessible directly over the internet. We want to restrict access to only users coming from our Amplify-hosted frontend application. We thought about restricting HTTPS access to only the Amplify frontend app's IP address but we could not figure out what the Amplify app's IP address is. Any suggestions for implementing this restriction?
Right Size EC2 Instance
Hi, I have a physical on-premises server with 2 Intel Xeon Gold processors, running SQL Server 2019. As per the specifications, the Xeon processor has 20 cores and 40 Thread. I want to now migrate SQL Server to AWS EC2 and looking for right size EC2 instance. The Database is used quite extensively with 70% CPU utilisation in every 5 mins. Could someone please suggest the right instance type for EC2?
Socket.io architecture/configuration to connect to the closest server (GA) when it becomes available after the client has connected
We have Global Accelerator setup in Amazon to route requests to the closest node (EC2) from some multiple nodes. How does socket.io play out in this case? If let's say a user connected, and the socket client is connected to host A, but then host B which is closer, becomes available, is there some way for the socket requests to be routed through this closest server? The typical scenario would be that if for some reason host B is overloaded and the Accelerator just routes the socket client to use host A at the time, but now the user is stuck on the distant server until he refreshes his page. Thanks