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.
177
questions
-1
votes
0
answers
21
views
Jenkins Installation error in aws ec2 instance
I am trying to install Jenkins on Amazon Linux instance and getting the error:
Job for jenkins.service failed because the control process exited with error code.
See “systemctl status jenkins.service” ...
0
votes
0
answers
11
views
Error code 0x8007000d for any .NET IIS web app on an EC2
I'm trying to learn deployment of .NET web apps on Amazon EC2. I've created a template Blazor Server project targeting .NET7, published it in Release mode to a folder. After that, I uploaded all the ...
0
votes
0
answers
31
views
Deploy a ReactJS Application to AWS EC2 Instance using AWS CodePipeline
I am trying to deploy a simple React JS app onto Ubuntu EC2 instance through AWS CodePipeline. I am using the following code in the appspec.yml file:
# This is an appspec.yml template file for use ...
2
votes
0
answers
78
views
How to deploy dockerized MERN stack app on AWS EC2 instance?
I dockerized my MERN stack app (Next js, node js, MongoDB) and tried to deploy it on the AWS EC2 instance. When I try to access my backend on port 5000 via AWS Public IP, it works fine but when I try ...
0
votes
1
answer
40
views
How to design AWS infrastructure for my online course selling website?
I am designing an AWS architecture for hosting a website that sells online courses and merchandise products. For the purpose, I am planning to use the following architecture design:
1 VPC
1 ...
1
vote
1
answer
180
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 ...
0
votes
0
answers
49
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 ...
0
votes
1
answer
32
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 ...
0
votes
1
answer
173
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 ...
0
votes
0
answers
23
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 ...
0
votes
1
answer
19
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 ...
0
votes
2
answers
632
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 ...
0
votes
1
answer
128
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 ...
0
votes
1
answer
257
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 ...
0
votes
2
answers
715
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 ...