Questions tagged [amazon-ec2]

For questions about using Amazon Elastic Compute Cloud in DevOps, including deploying, monitoring and scaling applications in EC2. For questions specifically about monitoring EC2 with [aws-cloudwatch] use that tag. For the EC2 container service use the [amazon-ecs] tag.

Filter by
Sorted by
Tagged with
0 votes
1 answer
7 views

Beginner Uptime Calculations Based on ELB?

Is there a clear way to calculate starting uptime metrics from AWS ELB? I need to start running uptime calculations. I'd like to start by just using AWS services for monitoring the uptime and then ...
Josiah's user avatar
  • 353
0 votes
0 answers
23 views

Load balancing between Slurm clusters

What strategy of load balancing in k8s would be recommended between Slurm (think SGE) clusters? The reason I raise this is Slurm has a Pythonic API governing the queuing system. Information can freely ...
M__'s user avatar
  • 101
0 votes
1 answer
24 views

EC2 instances cannot connect over Elastic IPs

I have 2 EC2 instances and I am trying to get them to connect over port 44874 (it's a layer 1 cryptocurrency like dogecoind). Both are running Ubuntu 22.04 AMI Both are in the same subnet Both are in ...
david2278's user avatar
  • 101
0 votes
1 answer
33 views

How to scrape only some targets of EC2 based on tag

I have a requirement, where I have enabled NGINX metrics and I am trying to plot metrics with Prometheus. I am trying to plot metrics for NGINX EC2 server which has a tag named test=nginx or by ...
Siva Malla's user avatar
0 votes
0 answers
14 views

Where are all these requests made by pods going to in a RKE2 kubernetes cluster?

I'm using tcpdump in my nodes to track all requests/connections made from pods and I noticed there's a lot of entries going to addresses like the ones below. They clearly belong to something in the ...
rasco22862's user avatar
0 votes
0 answers
19 views

Cannot select AWS System Manager Automation documents shared between accounts

My org has 2 AWS accounts where we run EC2 instances. AccountA and AccountB. I want to utilize the same Systems Manager automation documents that I created in AccountA in AccountB. I opened the ...
mhively's user avatar
0 votes
1 answer
14 views

Why does AWS wrap roles with instance profiles?

In AWS EC2, a machine is assigned privileges using instance profiles. Specifically: the desired permissions are articulated as an IAM policy, that policy is attached to an IAM role, that role is ...
benjimin's user avatar
  • 269
0 votes
2 answers
348 views

why does my Ansible playbook throw "Found existing installation: requests 2.25.1\n\n:stderr:ERROR: Cannot uninstall requests 2.25.1"?

I'm trying to run an ansible playbook that installs docker and docker-compose and runs a compose file on a ec2 t2.micro. To use the docker modules in ansible, I need to have docker and docker-compose ...
Keshav Singh N's user avatar
0 votes
1 answer
48 views

Number EC2 instances required for tasks

Let's say I want to place my tasks on EC2 instances of type m6i.large, which has 2 vCPU and 8GB of memory. I have 10 ECS tasks, each requiring 512 mCPU and 512MB of memory. How many EC2 instances do I ...
Code Different's user avatar
1 vote
0 answers
78 views

Can Loki accept/combine a log stream (unique set of labels) from multiple Promtail instances running simultaneously? (applies to Prometheus too)

I am using ec2_sd_configs in Loki (and Prometheus) to discover my EC2 instances, most of which are autoscaled, and therefore come and go. They are identical load balanced API instances, so I don't ...
Life5ign's user avatar
  • 130
1 vote
0 answers
75 views

EC2 after reboot: unable to resolve host ip-xxx-xx-xx-xxx: Resource temporarily unavailable [closed]

My Ubuntu EC2 worked fine and then I rebooted it. Now I get the following error on trying pretty much anything: sudo: unable to resolve host ip-xxx-xx-xx-xxx: Resource temporarily unavailable where ...
user984003's user avatar
0 votes
0 answers
358 views

ALB causing an additional +150ms latency

I've set up an Application Load Balancer - ECS stack and noticed the ALB is causing latency issues. Direct requests to the Fargate instance have a latency of ~15ms consistently, but requests to the ...
JunHyoung's user avatar
0 votes
1 answer
148 views

How to verify the time zone change is correct on AWS EC2 using Ansible?

We can use the following code to set a new timezone on AWS EC2 using Ansible. --- - hosts: linuxservers proxmoxservers remote_user: ansible become: yes tasks: - name: 'Set timezone to Buenos ...
Biju's user avatar
  • 255
0 votes
0 answers
343 views

Jenkins configure cloud not working with Amazon EC2 Credentials

I am new to AWS and Jenkins. I am trying to connect an ec2 instance that has Jenkins installed to the AWS cloud plugin but for some reason, I am unsure why i am getting the following issue ' Failed ...
lostForAWHile's user avatar
0 votes
0 answers
58 views

What is the difference between m6g.16xlarge and m6g.metal AWS EC2 intance type?

I heard there was new instance type available from AWS EC2 M6 graviton. Planning to use them but my question was what is difference between m6g.16xlarge and m6g.metal as both has same performance ...
Rocky Hai's user avatar
  • 287
0 votes
2 answers
432 views

Why is my AWS Application Load Balancer not exposing my Kubernetes service?

I am following a tutorial to set Kubernetes with an ingress managed service. The cluster is, 1 controller 2 worker Kubernetes cluster kubeadm built running Kubernetes v1.25.3 (latest at the time of ...
froxpotatoes's user avatar
0 votes
1 answer
85 views

Why is AWS ALB not talking to an ingress controller?

I'm taking TechnoWorld Kubernetes Administration class, where we learn to create a Kubernetes cluster from scratch using one Ubuntu EC2 for master node, and two Ubuntu EC2s for worker nodes. The ...
Chris F's user avatar
  • 384
1 vote
1 answer
121 views

What can Terraform be used to configure for hosting a web application?

I am new to Terraform. How can I use Terraform to configure EC2 instance for hosting a flask web application? Is it to configure a security group for the instance? How is that done in Terraform? ...
Tim's user avatar
  • 131
1 vote
1 answer
54 views

Is it possible to log into a new EC2 instance for the first time using a non-default user?

After launching a EC2 instance, do I have to always log into the instance for the first time, by SSH with the default user for the image of the instance? Or is it possible to first time log into a new ...
Tim's user avatar
  • 131
0 votes
1 answer
661 views

Cloudformation template with EC2 using docker compose

I'm relatively new to Cloudformation, and had a few questions about my template and best practices. I'm facing a few hurdles, and there is a lot of information out there, it's a bit overwhelming, so ...
kvnam's user avatar
  • 101
0 votes
2 answers
74 views

Docker Compose on AWS

I have no experience with AWS and I would like to know what the best approach is when it comes to embedding an environment built using Docker Compose (a simple application with two services, API and ...
DevOpsBeginner's user avatar
1 vote
1 answer
172 views

AWS- How to estimate a server configuration for nginx load balancer?

What kind of parameters can be used to estimate how much memory and the number of CPU cores are required for a load balancer? I have a requirement to setup LB based on Nginx to route the traffic to ...
Ankur's user avatar
  • 11
0 votes
0 answers
1k views

How can I limit output bandwidth on a pod with k8s?

I am trying to limit the output of a pod. This issue was not resolved or fully explained here. Please help me understand what is meant by the following or an alternative solution Both kubenet and CNI ...
Nat's user avatar
  • 135
0 votes
1 answer
82 views

How can I unevenly distribute pods across Instance Groups

What I'd like to do is distribute 10% of my pods to one instance group with the other 90% on the other group. I would like to experiment with using different AWS instance types (AMD, graviton, etc) ...
Mark Robinson's user avatar
0 votes
1 answer
93 views

Unable to connect from my local system to ec2 instance created by terraform script

Following is the source code: variable "ec2_instance_type_name" { type = string default = "t2.nano" } terraform { required_providers { aws = { ...
Vizeet Srivastava's user avatar
3 votes
1 answer
384 views

What does the ASCII art on the Amazon Linux 2 AMI MOTD mean?

When logging in to an Amazon Linux EC2 instance, one is greeted by the following MOTD: What does this ASCII art try to convey?
boardrider's user avatar
1 vote
1 answer
1k views

Terraform: Why is null_resource's remote-exec not connecting to aws_instance via SSH?

I've been going through answers to similar questions on this StackExchange and on StackOverflow and reading through documentations all day ... Here's the .tf file I'm executing: # defines the AWS ...
Omar Shazly's user avatar
0 votes
1 answer
157 views

Issue in running docker container on ecs

I am trying to run container on ecs but there is one specific image which is not running and give me error. I can see in docker container ec2 that image is pulled and it tried to run but it gave ...
Kamal Panhwar's user avatar
1 vote
1 answer
398 views

Unable to ssh into EC2 instance to the peered VPC which is in different region

It's a very simple setup in which there are two EC2 instances each in a different region but under the same account. Both are peered. Requester EC2 EC2Virginia has the following details: Public IP: 34....
Vizeet Srivastava's user avatar
1 vote
1 answer
31 views

Create AWS SG and use it

I am trying to create a security group (SG) using Terraform and then use it for an AWS instance. My config looks like resource "aws_security_group" "my_sq" { vpc_id = aws_vpc....
Eugene's user avatar
  • 113
1 vote
1 answer
969 views

What are the reasons AWS EC2 status check fails?

I have an instance on AWS free tier t3.micro. The problem I faced is suddenly my instance was not able to connect with other instances. I have checked on the dashboard and see that on the status check ...
Aks's user avatar
  • 111
2 votes
1 answer
40 views

Should I expect EC2 instances to act up?

I recently had an issue with an EC2 instance. Briefly, the site was unavailable for 2 hours, a peak of CPU usage for no apparent reason, network traffic dropped close to 0, docker containers restarted,...
x-yuri's user avatar
  • 143
0 votes
0 answers
84 views

After launching from AMI, how to make the AWS Instance to be able to retrieve metadata?

I have a Windows Server 2016 instance and I created a snapshot of it. And then I deleted the instance. Now, when I create AMI from that snapshot and launch instance from that AMI, I cannot decrypt the ...
kyi so thin's user avatar
2 votes
0 answers
538 views

How to speed up environment loading on network drive?

Background: I have about 15 AWS EC2 instances running Windows. They each have local drives and share a single network drive. Each needs to be able to run certain in-development python tools from ...
mars's user avatar
  • 21
0 votes
1 answer
633 views

How can we setup the services in my EC2 instance to startup automatically on boot?

When ever I restart my EC2 instance I have to manually use the command systemctl start <service name > to start the service. Is there any option to automate this thing in the Linux platform?
AV Reddy's user avatar
2 votes
1 answer
517 views

What are minimum permissions required for an IAM user to provision EC2 instances?

I want to provision an EC2 instance with Ansible. So for that purpose I want to create a separate IAM user to keep things clear. I can assign the full EC2 access to the user. But I don't want any ...
Santosh Kumar's user avatar
1 vote
2 answers
3k views

Where to get OS Hardening Scripts for CIS Hardening Standards?

CIS provides benchmarks for hardening OS on AWS CIS also provides images which meet their own benchmarks above These CIS images are available here - https://www.cisecurity.org/blog/everything-you-need-...
Biju's user avatar
  • 255
1 vote
1 answer
1k views

How to mount EC2 intances to AWS EFS via Terraform [closed]

I'm trying to Terraform a few EC2 instances, and would like to automate the provisioning steps that involve mounting their filesystems to EFS. The commands to run this manually are as follows: $ sudo ...
AndrewGentry's user avatar
1 vote
1 answer
204 views

Gitlab (self hosted gitlab) pipeline fail when trying to fetch repository

I've setup own gitlab server on AWS EC2 Instance based on this image - https://aws.amazon.com/marketplace/pp/prodview-w6ykryurkesjq?ref_=aws-mp-console-subscription-detail and assign Elastic IP for ...
Marcin Warzybok's user avatar
0 votes
0 answers
95 views

Restricting one module for one tf file

So I have file called main.tf in which I am calling the existing module for iam_role, but in same main.tf I have called one more module for service_role but I want to restrict that service_role module ...
Mandy's user avatar
  • 1
1 vote
0 answers
148 views

Deployment with Docker tensorflow/serving fails when training the model on another machine

I'm following the Coursera TensorFlow Serving with Docker for Model Deployment course. You have to train a simple Tensorflow model and export it in Protobuf. tf.saved_model.save(model, path) Then you ...
Alber8295's user avatar
  • 111
2 votes
1 answer
517 views

How to configure EC2 inbound rules for GitHub Actions deploy

I have a GitHub Actions workflow to deploy a service to an EC2 instance. I have currently opened the SSH access to all IPs but I want to restrict this to IPs used by GitHub Actions runners. However, ...
RichardM's user avatar
  • 123
1 vote
2 answers
505 views

AWS EC2: RDP without exposing instance to public

I'm planning to use AWS EC2 instances for the development purpose of my web application. So, I will like to disable all the outbound ports except RDP(3389) port. The RDP port will only be open to a ...
Yash's user avatar
  • 33
3 votes
3 answers
171 views

Should I shut down the staging environment when the deployment test ends?

I have a small application deployed on an EC2 instance. I need a staging environment so I've thought of two choices: Deploy the same app again on the same instance, and that would be a staging ...
mr L's user avatar
  • 131
1 vote
1 answer
67 views

Common permissions for EC2 usage and VPC Security Groups in enterprise use

Context: Looking to create some software that acts as middleware to a user's AWS account, where the user will provide their cloud credentials, and have the software use their EC2 instances. Question: ...
kwj2104's user avatar
  • 13
1 vote
1 answer
751 views

AWS: Restoring database snapshot to different environment

I've a webapp hosted on AWS. This has Electric Beanstalk, with EC2 and then a RDS Postgres database at the bottom. There's prod, UAT and staging environments and databases. I want to take a recent ...
Clinton's user avatar
  • 111
0 votes
1 answer
423 views

Setting up CircleCI to AWS EC2 for a simple node application deployment

I have a simple node application running on the EC2 instance, everything is working just fine and I want to integrate this application with CircleCI for the continuous deployment. I have been ...
Mukul Kumar Jha's user avatar
1 vote
2 answers
796 views

Kubernetes etcd bootstrapping - couldn't find local name <name> in the initial cluster configuration

I followed kelsey Hightower's setting up kubernetes the hard way tutorial kubernetes the hard way on AWS Stuck on bootstrapping etcd on the first control plane node. There are 2 lines in the error ...
Arghya's user avatar
  • 33
0 votes
1 answer
245 views

How do I create a LAMP server via EC2 Image Builder?

I am trying to set up a resilient way to deploy our monolithic web app on an AWS EC2. My current setup uses Ansible to "manually" install the components for a LAMP server on the latest ...
Thunder Rabbit's user avatar
1 vote
1 answer
212 views

Do any services other than EC2s consume ip addresses in AWS?

SCENARIO: I am running out of free ips in my AWS subnets. I would like to talk to my infra team and request them to create new subnets. But they are asking me list of all ips I have consumed so far ...
Biju's user avatar
  • 255