Questions tagged [amazon-ec2]
Amazon Elastic Compute Cloud (EC2) provides self-service, on-demand, pay-for-what-you-use computing infrastructure resources.
6,557
questions
0
votes
0
answers
9
views
AWS ECR Tag Based Access Control
Error response from daemon: pull access denied for {ACCOUNT-ID}.dkr.ecr.ap-south-1.amazonaws.com/{repository-name}, repository does not exist or may require 'docker login': denied: User: arn:aws:iam::{...
0
votes
0
answers
19
views
Can access jenkins (ip:port 22) but not ssh
Before adding a rule, ssh was working fine. For Jenkins, I added the custom tcp security group rule (8080) so i could access it. Then jenkins was working fine. Now, ssh does not.
Security Group rules ...
0
votes
0
answers
19
views
AWS ECR Login error
AWS ECR Login error:
command: aws ecr get-login-password --region ap-south-1 | docker login --username AWS --password-stdin {id}.dkr.ecr.{region}.amazonaws.com
An error occurred (...
0
votes
1
answer
22
views
AWS instance connect decrypt password is giving error as invalid private key, how to fix it?
I have cretaed an instance using terraform code and also its key pair for windows.
To get the admin password I clicked on the below decrypt button and getting as invalid decrypt key.
Please suggest ...
0
votes
1
answer
22
views
How to change SQL Server sa password as part of ec2 userdata
I'm provisioning some development EC2 instances running Windows Server, with SQL Server installed. I use a custom Amazon Machine Image with the configuration we need, but as part of the provisioning ...
0
votes
0
answers
24
views
What is the stable DNS name of an EC2 instance?
Given an EC2 instance spun up in AWS, does AWS provide a stable, predictable, DNS name that resolves to both the public IPv4 and public IPv6 addresses of that instance?
If so, where can I find this ...
1
vote
1
answer
27
views
What is the corresponding AWS EC2 level for this specification?
We'd like to use AWS to build code.
Below is the specification for the build server, is there any corresponding hardware level for AWS EC2?
Ampere AC-1GB06A1S5 - Mt. Snow SATA DVT L6 2U Altra Server ...
0
votes
1
answer
57
views
Moving from Apache2 to NGINX configuration
I have been trying to get my website up after moving from apache2 to nginx on my AWS Ubuntu 20.04 server. I have translated the relevant files from apache2 over to my nginx configuration, however I ...
0
votes
0
answers
21
views
AWS AppStream is unable to push session script logs to s3
I have configured session scripts to log stdout and stderr to s3 bucket as described in https://docs.aws.amazon.com/appstream2/latest/developerguide/use-session-scripts.html#enable-S3-bucket-storage-...
0
votes
0
answers
23
views
Elastic Beanstalk deploy app in private VPC without public ip address for EC2
I'm currently developing a NodeJS application that I want to deploy in Elastic Beanstalk (EBS). To isolate & secure my cloud resources I'm using VPCs where I deploy the EBS app and also my ...
0
votes
0
answers
64
views
AWS EC2 ssh: connect to host, port 22: Operation timed out, nothing has changed?
I'm sure a number of you were seeing red and ready to hit that downvote button as soon as you saw this question popping up again. It really does pain me to be asking a question that was seemingly ...
0
votes
0
answers
60
views
Installing ODBC 18 driver on Amazon Linux
I see instructions from MS site on how to install ODBC drivers on various Linux distributions but not for Amazon Linux.
https://learn.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-...
0
votes
0
answers
25
views
Shared drive for Windows EC2 intances launched within an autoscaling group
I am looking to be able to share a single network storage between my fleet of Windows EC2 instances that are used as application webservers running IIS. These instances need to be able to access the ...
3
votes
1
answer
84
views
Unifi UDMP - Weird connectivity issue, routing/DNS, multiple WAN IPs?
We are experiencing an odd issue, seemingly related to routing or DNS.
We have a "hub and spoke" topology using Unifi equipment (UDMP's). Each site connects via IPSEC tunnel to an AWS EC2 ...
0
votes
0
answers
56
views
Certbot Google-DNS Failing from AWS EC2
I am trying to retrieve an SSL Cert using Certbot from an Unbuntu 22 instance on AWS and it keeps getting the following error:
Simulating a certificate request for studiojb-demo.com and *.studiojb-...
0
votes
0
answers
36
views
Setting up HA NAT instances on AWS
Question: Anyone have experience running HA NAT instances and how to set them up? Basically, I would need to have my own NAT instances with automatic failover in case something breaks. I've ran years ...
1
vote
1
answer
47
views
Apache Server Error After Setting Up SSL Configs
I am running an EC2 Linux 2 AMI and was following an AWS tutorial to enable HTTPS on my server.
But when I try to restart Apache, error seen in the logs:
Apr 10 06:56:40 <maskediphere> systemd[1]...
2
votes
1
answer
361
views
Fresh EC2 instance pending Kernel Upgrade
Just spin up an EC2 instance with Ubuntu, if it is a new fresh instance, isn't supposed the Kernel to be up to date?
After I run a sudo apt update && sudo apt install <any-package>, I ...
0
votes
1
answer
43
views
Why is the Microsoft Management Console empty on my EC2 instance?
This is a brand new Windows Server 2022 EC2 instance. I am Administrator.
I'm trying to use NICE DCV. I have it installed, I guess, but I don't see it anywhere. Amazon's instructions are to start it ...
0
votes
0
answers
34
views
AWS EC2: adding IP from a separate private block
I have an existing VPC with a CIDR in the 10.0.0.0/16 block.
I now have to create a VPN connection to an external service, who want us to use IPs in 192.168.0.0/16 block.
Unfortunately, AWS does not ...
0
votes
1
answer
22k
views
EC2 after reboot: how to resolve host ip-xxx-xx-xx-xxx: Resource temporarily unavailable
I rebooted my Ubuntu EC2 and I now can't do anything. I get the following error on trying pretty much anything:
sudo: unable to resolve host ip-xxx-xx-xx-xxx: Resource temporarily unavailable
where ...
0
votes
0
answers
84
views
EC2 instance Status Check failed and server stopped working
I am using an AWS EC2 instance (t3.xlarge) running on Ubuntu server 18.04.6 LTS, which was working fine. But suddenly I encountered an error where the instance status check failed "Instance ...
0
votes
1
answer
45
views
Do firewalld rich-rules apply irrespective of the allowed services in a zone?
Context: I have firewalld running on an AWS EC2.
Goal: I want to add a rich rule to the default zone (public) that allows traffic from a certain CIDR range/IP address range/subnet over port 443 (HTTPS)...
0
votes
1
answer
112
views
Cross Account SSM session: AccessDeniedException
I have two AWS accounts and one role in each account: Account-A have RoleA and Account-B have RoleB.
RoleA will assume the RoleB to be able to connect in an EC2 instance in Account-B through ssm start-...
0
votes
0
answers
27
views
How to make Ubuntu VM available to multiple users in the cloud?
I have a design technical question.
Let me describe the use case first:
I have 20 students. My idea is that they all can run a full Ubuntu Desktop from within their web browser. Everyone should have ...
0
votes
2
answers
54
views
EC2 instance randomly crash
My EC2 instance kept crashing, here is the syslog, can server admin expert share some insight?
https://pastebin.com/jfP8qhZX
0
votes
0
answers
31
views
Randomly can not resolve host on web server running on ec2
I have a ec2 server running nginx inside a docker container that uses lets encrypt for https. Randomly for extended periods of time (roughly 10min - 1hour) the host name can not be resolved when ...
0
votes
0
answers
118
views
Configure Secondary Interface on EC2 using Ubuntu 22.04
I have launched a EC2 instance having OS Ubuntu 22.04 which has a primary interface ens5
I have attached a secondary Interface ens6.
This is the output of ifconfig -a
root@ip-172-31-7-213:/home/ubuntu#...
0
votes
0
answers
138
views
publish over ssh plugins in jenkins shows error post build
SSH: Remote root is not absolute, getting absolute directory from PWD
SSH: cd [/home/ansadmin]
SSH: OK
SSH: mkdir []
SSH: FAILED: Message []
SSH: Disconnecting configuration [] ...
ERROR: Exception ...
1
vote
1
answer
78
views
Are there any benefits in using HTTPS between a load balancer and EC2 targets?
I've spent some time refactoring a load-balanced web application in AWS in order to make it end-to-end HTTPS, CloudFront->ALB->EC2. This was mostly just for fun, to see if I could do it. Having ...
0
votes
1
answer
199
views
AWS VPN with split tunnel cannot connect to Internet after connecting to AWS VPN
AWS VPN with split tunnel enabled. When I connect to the VPN with the AWS VPN Client, I lose Internet on my Mac endpoint. However, I do seem to reach the VPN as I see my connection in the AWS VPN ...
0
votes
0
answers
198
views
How to port forward public IP of an Ubuntu 22.04 AWS EC2 VPN Wireguard Server Instance to a VPN Wireguard Client
I am running an Amazon EC2 Ubuntu 22.04 Instance, which is acting as a Wireguard server. I have a Wireguard client machine (also running Ubuntu 22.04) connecting to the EC2 WG Server instance ...
0
votes
1
answer
454
views
How to configure AWS Application Load Balancer to point to multiple ports on the same server
I cannot get access to the second port that I want to have to. So, here are the listeners I have in my ALB:
HTTP:80 - that does not have security policy or SSL cert but it is always redirecting to ...
0
votes
1
answer
21
views
Why does boot time and workload performance degrade after launching a large number of T2 instances on AWS?
I'm running a swarm of T2 instances on AWS, each with an average lifespan of 5 minutes. I start an instance, do some workload, and then terminate it. I'm using my own AMI on a GP2 volume.
After ...
0
votes
0
answers
65
views
From a running EC2 instance, how do I download the AWS generated private key for use with SSH and WinSCP?
From a running EC2 instance, how do I download the AWS generated private key for use with SSH and WinSCP in PEM format?
I expected to see Download on the Actions menu, but it's not there. I'm ...
1
vote
2
answers
106
views
Netcat successfully sends UDP packet despite all UDP traffic being blocked via Network ACL
I've created an AWS instance in the default VPC and I've blocked all UDP traffic in the Network ACLs. Here's how my outbound rules look:
Rule number
Type
Protocol
Port range
Destination
Allow/Deny
...
0
votes
1
answer
56
views
Using S3 instead of MinIO for video management
I am relatively new to AWS so I wanted to reach out to the gurus in the community to get some advice on architecture, and I thought I would share my thoughts.
I am building out cloud infrastructure ...
0
votes
0
answers
23
views
How is the correct MTU used for connections through an IGW on EC2
If you bring up a couple of default image VMs in the default VPC in EC2, they will generally have their interface MTU set to 9001. If you sent TCP traffic between those two instances using their ...
0
votes
0
answers
23
views
EC2 server losses internet connection and application fails to send email, sms and even yum updates
I have 5 EC2 servers in the same VPC and all of a sudden yesterday, all of my applications started failing to send email and sms. So I tried doing git pull of my project it also timed out. Then tried ...
0
votes
0
answers
35
views
git clone t2.micro new or existing instance not created git repo folder , shown error. fetch-pack: invalid index-pack output
I already have a t2.micro instance, but the git clone is t2.micro, and it was successfully cloned without error. fetch-pack: invalid index-pack output. I tried git clone again with another newly ...
0
votes
0
answers
117
views
EC2 with a Caddy + Gunicorn setup sporadically unreachable
I have an EC2 instance that runs a Django via gunicorn, in which Caddy sits on top of. The domain is hosted in Route53 with an A record pointing to the IP address of the instance.
Here's what I ...
0
votes
0
answers
53
views
Cannot establish an IPsec site-to-site VPN between an EC2 instance and a SonicWALL firewall
I'm trying to establish a site-to-site IPsec VPN between an EC2 instance running StrongSwan and a SonicWALL firewall. I've tried a lot of different configurations, but currently I have this at the EC2 ...
0
votes
0
answers
19
views
Can the Windows built-in VPN server be used in EC2?
I have a Windows Server 2019 VM in AWS EC2. I'd like to have a VPN server on it so I can connect to it from my dev machine and run a non-secure protocol across it. I've got the PPP RAS adapter ...
1
vote
3
answers
162
views
Best way to backup a WordPress site on EC2 instance
My WordPress site is sitting on a single EC2 instance. My site has 60GB worth of files and a 800MB database size. My site is running out of space just by running the Duplicator plugin to back it up. ...
0
votes
2
answers
335
views
AWS Billing for EC2 Data Transfer in Free Tier
I am new to AWS. I recently created a Free Tier account to install WordPress.
I followed instructions like this to install:
https://www.wpbeginner.com/wp-tutorials/how-to-install-wordpress-on-amazon-...
0
votes
0
answers
79
views
AWS: Ping between multiple namespaces in seperated EC2 Instance
I am encountering an issue where I am unable to receive a response when attempting to ping from a namespace located within a public EC2 instance to a private one. To better illustrate my situation, I ...
0
votes
0
answers
26
views
EC2 instance crashing when retrieving many files from S3
I have a very annoying problem with my EC2 instance. I have a ubuntu EC2 instance and in a Python Notebook cell I do a loop for retrieving many files from s3 (actually not that very much, around 300 ...
0
votes
1
answer
44
views
Can multiple EC2 Auto Scaling Group policies be defined for a single environment?
Given an Auto Scaling Group with a single EC2 environment, am I able to create a scheduled scaling policy and a CPU target tracking policy for the ASG?
For example, I would like to define a scheduled ...
0
votes
2
answers
38
views
AWS EC2 resource utilization
Wondering how everyone else looks at recourse utilization in AWS EC2 instances. For example, I'm trying to 'right-size' many of our over-provisioned instances to the correct instance type/performance ...
0
votes
1
answer
72
views
AWS EC2 Instance right-sizing, more suitable instance types?
I have some EC2 instances that are currently over-provisioned for cpu/mem. The problem I'm seeing in trying to right-size these instances is that a lot of them use barely any cpu and have a baseline ...