Questions tagged [amazon-ec2]
Amazon EC2 stands for "Amazon Elastic Compute Cloud". It is a part of Amazon Web Services (AWS) and allows users to rent virtual machine instances. You can create instances, launch and manage them through a central interface, through a web API or through a console.
34,116
questions
1
vote
0
answers
5
views
Elastic Bean Stalk: Updating load balancer named: awseb-e-w-AWSEBLoa-xxxxx failed Reason: ELB cannot be attached to multiple subnets in the same AZ
I'm trying to get HTTPS connection for my ElasticBeanStalk environment, to accomplish this I'm following https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https-elb.html, which ...
0
votes
0
answers
6
views
Disable Default Security Group attachment to ENI in AWS ECS
ECS service is using EC2 instances and ENIs are attached to EC2 instances. Is there any way to prevent the default Security group to be not attached to those ENIs and just the custom Security groups ...
0
votes
0
answers
7
views
Unable to reboot instance from aws ssm association
So I have an SSM association that would run a AWS-RunRemoteScript document to call a Powershell script that would run commands for domain join.
Its successfully doing the domain join but after I try ...
0
votes
0
answers
20
views
Moto how to create EC2 instance - InvalidAMIID.NotFound
Using moto how can you create an EC2 instance since theres no AMIs available to launch an instance with.
This repo seems to be "pre-loading" AMIs that are later used within tests but im not ...
-1
votes
0
answers
11
views
nvm is not compatible with the npm config "prefix" option: currently set to "" Run `nvm use --delete-prefix v18.1.0` to unset it
I am using ssh to connect Github with AWS EC2 and I am trying to install the node so I can run my server in VM. but it is showing me an error says
"nvm is not compatible with the npm config &...
1
vote
0
answers
14
views
Why web socket connection is finishing without establishing a connection on the AWS instance even with a secure connection?
The web socket connection is finishing without establishing a connection on the AWS instance even with a secure connection.
Working perfectly fine on my local and staging environments.
WebSocket ...
0
votes
1
answer
7
views
puppeteer Works Local But Not On EC2 AWS
local is fine but when i deployed on aws ec2 server
it stuck in page.goto, and got a **error ERR_CONNECTION_REFUSED**
so i tried install TightVNC for GUI
same as stuck in page.goto
i checked google-...
0
votes
0
answers
9
views
Can't connect to apache webserver running in docker container on ec2
Can't connect to apache webserver running in docker container on ec2.
Container was built from dockerfile:
FROM ubuntu:16.04
RUN apt-get -y update
RUN apt-get -y install apache2
RUN echo 'Hello World ...
-1
votes
0
answers
15
views
Parse server dashboard shows me white blank screen
I setup the parse server using npm install parse dashboard and then set my appId ,masterkey and server url in the parse-dashboard using cmd and it generates a url http://0.0.0.0:4040/. But after ...
0
votes
1
answer
18
views
Cloudformation EC2 run command lines after each update
I'm trying to have my cloudformation file trigger some commands after the EC2 instance has been deployed.
AWSTemplateFormatVersion: 2010-09-09
Description: Reports
Parameters:
AmiID:
Type: AWS::...
1
vote
1
answer
18
views
Convert Ansible variable to integer for arithmetic
I would like to execute a command to obtain the current AWS EC2 launch template version in an integer format so I can do basic arithmetic on it to use in subsequent queries / deletes.
For example:
...
1
vote
0
answers
54
views
AWS EC2 npm install suddenly very slow
In my ElasticBeanstalk environment, it always (for years) used to take ~5 mins for my Node.js app to be deployed and for the instance to change from status "Pending" to "OK" in the ...
0
votes
0
answers
14
views
Do AWS Snapshots made in a particular directory always need to be restored in the same directory?
Do AWS Snapshots made in a particular directory always need to be restored in the same directory again? (therefore making it impossible to view and verify a snapshot on the same EC2 device from which ...
-1
votes
1
answer
21
views
Using a "password" that effectively starts a lambda function that triggers an ec2 instance
So I have a lambda function that triggers an amazon ec2 instance and thanks to the api gateway I was able to create a URL for the lambda function.
How it works is that you enter the URL and the URL ...
-1
votes
1
answer
40
views
Is there an easy way to access s3 via ec2 from local machine?
I want to transfer files from s3 bucket to local, but for some reason I don't have the flexibility to generate credentials for direct access.
Instead I have access to an EC2 instance that has access ...
0
votes
0
answers
8
views
Alert/Notification when Target Group deregistesr instance on AWS
Is there a way to get an alert when an instance deregisters automatically from a target group? I occasionally will have an instance deregister due to being unhealthy.
0
votes
1
answer
43
views
SCP behaving abruptly when adding VPC resource
I am using SCP policy to stop ec2 resource ( subnet, security group, instance, vpc) creation when they don't have tags. i am using tag policy to check for compliant tags.
But as soon as i am adding ...
-1
votes
0
answers
20
views
Is there a way to list all resources/components (Models, endpoints, TrainingJobs, etc) associated with a AWS SageMaker Notebook/ Studio Project?
If I write a script to train and deploy a machine learning model on AWS SageMaker notebook or create a Project using AWS SageMaker Studio, when I try to list all the resources used, using boto3, the ...
0
votes
0
answers
18
views
RDP credential were use to connect did not work, please enter new credential
Last 2 weeks i have been facing remote desktop connection problem. I am new in AWS.
A few day back, I had received an account suspension mail because of payment due. I made all the payment done. Now i ...
-1
votes
0
answers
24
views
AWS Application Load Balancer error 404 on socket io
Is there anyone who encountered AWS ALB alternating errors 404 and 200?
1st refresh (404)
Cannot GET /socket.io/
2nd refresh (200)
0{"sid":"0tMHzHEjhSK3wRK2AAOE","upgrades&...
0
votes
0
answers
11
views
Ineffective mark-compacts near heap limit Allocation failed error when building next.js app
I have a next.js app running inside a docker container in a EC2 instance. When I run docker-compose up this will trigger the next.js app to be built. Now it is some time I am getting this error:
info ...
-1
votes
0
answers
31
views
Run go server forever with crash logs [closed]
I use pm2 on my Node.js applications which provides me logs and auto-restarts my application on failure in my EC2 server.
I am trying to use the same functionality for a go server so that I can turn ...
0
votes
0
answers
15
views
Terraform - AWS Auto-Scaling-Group not deleting when using Suspended-Policy option for 'Terminate'
I've searched online and not found an answer to this anywhere, so apologies if it is a replicate of another question.
I've created a CloudFormation Template from scratch (that I've carried over to ...
-1
votes
0
answers
22
views
How to resolve "No basic auth credentials" error in CICD pipeline [closed]
GitLab CICD Pipeline failed in development stage.
Successfully built and tagged.
Failed while push refers to repository
enter image description here
0
votes
0
answers
16
views
terraform attach root EBS volume which is generated from a snapshot to an EC2 instance created from AMI
I have the following code where I am trying to spin up an instance from an AMI and then replace the root volume with a volume I created from an earlier backup snapshot since we do not have periodic ...
-4
votes
0
answers
19
views
TypeError: unhashable type: 'list' (Can anyone help me fix this error)? [closed]
I using this python Boto3 script to pull aws EC2 Details like InstanceId, Type, State, Az, Tags, AMI_ID & AMI_Name but facing this error after successfull one run. I am not able to fix it. Thanks ...
0
votes
1
answer
28
views
open(/var/lib/php/session/...sesionid, O_RDWR) failed: Permission denied (13)
I am running my website on using ec2 nginx.
I have done a update on the instance and now I getting this error when the site loads.
open(/var/lib/php/session/sessionid, O_RDWR) failed: Permission ...
0
votes
0
answers
40
views
user-data shell is not executed when an EC2 instance launched by ASG/Launch Configuration with custom AMI
I have a set of Auto scaling group and launch configuration to manage certain EC2 instances.
After changing the AMI to a custom AMI, the user data script that I set in the launch configuration is not ...
0
votes
1
answer
15
views
How to copy folder having files, also having sub-folders with different files to aws S3 bukcet with same folder level structure using python language
Hi all can you please help to figure out this issue
How to copy a folder having py files, and aslo having sub folder level files which are present in a particular path with the same folder structure ...
0
votes
0
answers
10
views
App error after rebooting Aws EC2 Instance
I am having an error running my nodejs app afterI rebooted the Aws EC2 Instance. I've been resolving it for a couple of hours already but still got no luck.
Error: SyntaxError: Unexpected token (
...
-1
votes
0
answers
10
views
Upgrade ControlM agents on EC2 instance
I need to know what strategy we should use when we try to upgrade an agent on a running ec2.
In order to follow cloud standards what i did is. i created an AMI and that has got my agent installed, so ...
-3
votes
0
answers
27
views
EFS vs S3 from architectural perspective [closed]
Assuming we have a fleet of web servers (EC2 instances) which constantly need to retrieve user information, which AWS service (from an architectural perspective) is better: S3 or EFS?
-1
votes
1
answer
17
views
From AWS connect to external oracle database
I have an nodejs application deployed in aws, from nodejs application I want to connect to an external oracle database which is running on a different server, can anybody please tell me the steps to ...
0
votes
1
answer
24
views
User-data not working when starting EC2 instance
I am trying to run simple user data by following below link in my company's AWS EC2 server :
https://aws.amazon.com/premiumsupport/knowledge-center/execute-user-data-ec2/
user data is not working, ...
0
votes
1
answer
20
views
Not able to describe EBS snapshots more than 1000
Trying to list all the snapshots present in a region using boto3, but not able to list more than 1000. Is there a workaround for this to list all the ebs snapshots?
def ebssnapsot(aws_id):
...
-2
votes
0
answers
11
views
AWS Cache configuration issue
I don't know much about AWS
So the issue is when I push the UI code it's taking around 12-14 hours to reflect changes on the UI.
but for backend java services it's reflecting immediately.
SO I have do ...
0
votes
0
answers
9
views
Need to save files to cloud9 in AWS from my Application
I have an application with ReactJS as frontend and Python as backend running in AWS.
I have 2 requirements here
Saving files to cloud9 of the AWS from the backend of my application.
Running kubectl ...
0
votes
0
answers
19
views
PM2 cannot find module /home/ubuntu/{module_name}
I have been using PM2 to run a Node.js app on an EC2 instance for a while now. However, it crashed today and I can't get it to restart with pm2.
It would be great if someone could help me get it up ...
0
votes
0
answers
12
views
How to get notified of changes to the Azure OpenAPI
I am wondering can we subscribe the OpenAPI update from Azure such as API,WSDL,Json scheme or anything like this.
We would like to be able to fetch the latest info about changes/release notes to get ...
0
votes
0
answers
10
views
Trying to create AWS spot datafeed, getting error: InaccessibleStorageLocation
I am following the 'documentation' here: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html
With the goal of creating an ec2 spot instance price datafeed.
I use this command:
aws ...
0
votes
0
answers
51
views
Error creating EKS node-group with terraform
While I am trying to deploy EKS via Terraform, I am facing an error with node-group creation.
I am getting the following error:
Error: error waiting for EKS Node Group (Self-Hosted-Runner:Self-Hosted-...
0
votes
0
answers
6
views
Cannot use my Proxys on my AWS EC2 instance
I've been trying to use a proxy on my Ubuntu AWS EC2 instance for a while now. The problem is that I can't connect to them, even though having open inbound and outbound rules. I also tried to export ...
0
votes
0
answers
11
views
compile ffmpeg on ec2 linux instance - no libfdk-acc available
I’m compiling the ffmpeg on an ec2 amazon linux instance, but it threw me an error ERROR: libfdk_aac not found.
I'm following this guide http://trac.ffmpeg.org/wiki/CompilationGuide/Centos to first ...
0
votes
0
answers
9
views
How can I keep running my applications in AWS EC2 Windows instance even if i close my laptop
I'm using Microsoft remote desktop on Mac M1 to access the instance, how can I set it up in such a way that even if my laptop is closed or if the Microsoft remote desktop app is not opened, ...
0
votes
0
answers
24
views
How to make a linux service scalable in AWS
Im using the mongodb change streams with pyMongo to feed amazon kinesis data stream with the database logs. This is the code of the python script that im running as a service in an EC2 instance:
...
-1
votes
1
answer
14
views
permission denied while building project in jenkins . /tmp/jenkins7547483698503669612.sh: line 2: /root/hello.sh: Permission denied
I am facing an issue when I am trying to run the Jenkins job. I have tried to change the permission of the script, but it seems the error persisted.
chmod -R 777 file_name.sh
-1
votes
1
answer
14
views
I have to read config file and after reading it will run scp command to fetch all details from the available servers in config
I have a config file that has details like
#pem_file username ip destination
./test.pem ec2-user 00.00.00.11 /Desktop/new/
./test1.pem ec2-user 00.00.00.22 /Desktop/new/
Now I need to know how can ...
0
votes
0
answers
20
views
Code deployement in AWS says "overall deployment failed because too many individual instances failed deployment"
I was trying to deploy webserver in EC2 instance, this is the error i'm getting in deployment phase
I'm uploading code to s3 and implementing via CodeDeploy to EC2.
My Ec2 CodeDeploy agent service ...
0
votes
1
answer
28
views
Generating alert if AWS instances stops during scheduled period
We have used Instance Scheduler to start and stop the instances in different regions at specified time & its working great.
Now we want to receive an alert if the instances stops due to an issue ...
0
votes
1
answer
25
views
How to upgrade the GPG version installed on AWS EC2
I have a requirement to upgrade the GNU Privacy Guard(GPG) package installed on AWS EC2 instance. The OS installed on EC2 is Linux(Not Ubuntu).
The current version installed is 2.0.22-5.amzn2.0.4,...