Questions tagged with Amazon EC2
Content language: English
Sort by most recent
Hi,
Is there any change on the ENI (private ip address or mac address) when I change an EC2 EBS instance type, familly, size ?
Regards
I follow these steps:
https://repost.aws/knowledge-center/ec2-windows-install-ssl-certificate
and try to Install it. but getting errors (failed to remove the certificate) in step 2.
can you help me with this?
Cannot ping Printer or Gateway (Access Point) of IP address on my EC2 instance.
How to ping and connect printer or other hardware access point gateway with Amazon EC2 instance
Currently I am on the free plan. I am running a python web scraping on a windows script that could be refreshing potentially every minute for tracking several different (20-50 instance requests at a time. Hopefully expanding to more. What infrastructure should I be using, looking for cheapest possible option. Also the web scraping instances are tracking elements on a site that could potentially ban or timeout requests. My python script is connected to a proxies.txt, I am wondering what the best proxies or way to generate proxies is?
I have a T3 instance that I've AMI'd and went to deploy on a T2 instance. The server says starting, but it is never reachable. I was wondering if there is something I need to do before creating the AMI so that it can run on a T2 instance?
HI, I am following the tutorial here: https://docs.aws.amazon.com/codepipeline/latest/userguide/tutorials-simple-s3.html
But the deployment fails. Where I run status on the CodeDeployAgent Service using:
**sudo service codedeploy-agent status**
I get this error:
`
> <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:151:in `require': cannot load such file -- net/smtp (LoadError)
from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:151:in `require'
from /opt/codedeploy-agent/vendor/gems/logging-1.8.2/lib/logging/appenders/email.rb:2:in `<top (required)>'
from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:151:in `require'
from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:151:in `require'
from /opt/codedeploy-agent/vendor/gems/logging-1.8.2/lib/logging/appenders.rb:57:in `<module:Logging>'
from /opt/codedeploy-agent/vendor/gems/logging-1.8.2/lib/logging/appenders.rb:2:in `<top (required)>'
from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:151:in `require'
from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:151:in `require'
from /opt/codedeploy-agent/vendor/gems/logging-1.8.2/lib/logging.rb:537:in `<module:Logging>'
from /opt/codedeploy-agent/vendor/gems/logging-1.8.2/lib/logging.rb:18:in `<top (required)>'
from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:162:in `require'
from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:162:in `rescue in require'
from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:152:in `require'
from /opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/log.rb:2:in `<top (required)>'
from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:99:in `require'
from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:99:in `require'
from /opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager.rb:9:in `<top (required)>'
from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:162:in `require'
from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:162:in `rescue in require'
from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:152:in `require'
from /opt/codedeploy-agent/lib/instance_agent.rb:10:in `<top (required)>'
from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:88:in `require'
from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:88:in `require'
from /opt/codedeploy-agent/bin/../lib/codedeploy-agent.rb:22:in `<main>'
<internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:151:in `require': cannot load such file -- logging (LoadError)
Did you mean? logger
from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:151:in `require'
from /opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/log.rb:2:in `<top (required)>'
from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:99:in `require'
from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:99:in `require'
from /opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager.rb:9:in `<top (required)>'
from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:162:in `require'
from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:162:in `rescue in require'
from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:152:in `require'
from /opt/codedeploy-agent/lib/instance_agent.rb:10:in `<top (required)>'
from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:88:in `require'
from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:88:in `require'
from /opt/codedeploy-agent/bin/../lib/codedeploy-agent.rb:22:in `<main>'
<internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:88:in `require': cannot load such file -- process_manager (LoadError)
from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:88:in `require'
from /opt/codedeploy-agent/lib/instance_agent.rb:10:in `<top (required)>'
from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:88:in `require'
from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:88:in `require'
from /opt/codedeploy-agent/bin/../lib/codedeploy-agent.rb:22:in `<main>'
`
Has anyone experienced this before.
My ec2 instance is of type g4dn.xlarge. I tried nvidia-smi but it seems the drivers are not pre-installed so I want to install them.
I couldn't find much documentation for Amazon Linux online. On the nvidia instructions it isn't specifically mentioned.
When running `sudo cat /etc/os-release` I get this output:
```
NAME="Amazon Linux"
VERSION="2023"
ID="amzn"
ID_LIKE="fedora"
VERSION_ID="2023"
...
```
So i tried to follow the instructions for fedora (randomly fedora34) but I got errors during the installation (I guess because of incompatibility).
Any help highly appreciated.
Hello,
I'm running a computation in Python using `pool.map()` of the `multiprocessing` library. On the EC2 parent instance, when I run the process first using only one thread and then 2 threads using `pool.map` the processing time is approximately divided by two as I would expect. However, in the Nitro Enclave (with 2 cpus) the computation time is the same.
Any idea what could be wrong?
Thanks
I am trying to get SSL certificate with let's encrypt nginx. First, I added epel using the commands ```$ wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm``` and
```$ sudo rpm -ihv --nodeps ./epel-release-latest-8.noarch.rpm``` and it was added with no problem then I used ```
sudo yum install python3-certbot-nginx``` and got the error message:
```
Problem: package certbot-1.22.0-1.el8.noarch requires python3-certbot = 1.22.0-1.el8, but none of the providers can be installed
- conflicting requests
- nothing provides python3.6dist(setuptools) >= 39.0.1 needed by python3-certbot-1.22.0-1.el8.noarch
- nothing provides python3.6dist(cryptography) >= 2.5.0 needed by python3-certbot-1.22.0-1.el8.noarch
- nothing provides python3.6dist(configobj) >= 5.0.6 needed by python3-certbot-1.22.0-1.el8.noarch
- nothing provides python3.6dist(distro) >= 1.0.1 needed by python3-certbot-1.22.0-1.el8.noarch
- nothing provides /usr/bin/python3.6 needed by python3-certbot-1.22.0-1.el8.noarch
- nothing provides python3.6dist(pytz) needed by python3-certbot-1.22.0-1.el8.noarch
- nothing provides python(abi) = 3.6 needed by python3-certbot-1.22.0-1.el8.noarch
(try to add '--skip-broken' to skip uninstallable packages)
```
I also tried
```
sudo dnf install python3-certbot-nginx
```
I learned i may need a Code ready builder but haven't been able to install it. Please how can I get it. If that is not the issue, please what I'm I doing wrong and how can I resolve it?
I have to launch an EC2 instance, running RHEL 8, with some storage requirements. And I was wondering how to set it up.
1. \>= 60 GB free storage for requirements:
- \>= 50 GB of free storage on the partition that contains /var/lib/<name>. The partition mountpoint should not have the noexec option.
- \>= 5 GB of additional space in /var/log
- \>= 5 GB of additional space in /var/lib/<othername>
2. \>= 500 GB of dedicated storage
My client is not able to access ALB URL, but I am able to access the same. ALB URL's security group has "All Traffic" rule in both inbound and outbound rules. Also my EC2 instance is windows and I have deactivated its firewall to not block any incoming IP addresses. How to solve this issue.
How to connect my EC2 instance(Microscoft window server 2022 with SQL base standard), with physical gateway IP address.
When i try to ping form command line of EC2, ping (my gateway ip) ... it show the request time out.
Anyway to connect with my Physical Gateway IP address with EC2?
When I try to ping the ip address of gateway in my laptop, it is working..
But when i try to ping in the EC2 remote desktop, it returns request time out.
And when i try to ping google.com, its working.
EC2 is successfully connected VPC .
Any solution ??