Questions tagged with Amazon EC2
Content language: English
Sort by most recent
Hello all.
I'm testing restores of an EC2 instance and I've found that it never retains the same private IP, regardless of whether it's restored from AWS Backup or an EC2 snapshot.
I've even tried deleting the original instance prior to doing the restore in hopes that the restored EC2 would have the same the private IP as the original (because I know you can't reconfigure the primary private IP of an EC2 or have the same IP on another NIC), but no luck.
It would seem this is a pretty basic functionality and concept, as some servers have hardcoded IPs that can't be changed without wrecking production environments. Am I missing something or is there just absolutely no ability to keep the same private IP when doing a restore?
Please advise.
Hallo guys, I'm writing to you in hope to get a help on a problem I'm facing, so basically I created a spring boot rest API for my app and I used AWS Elasticbeanstalk to deploy, now when I try to upload a file to my S3 bucket using the rest API, I'm facing an error saying that the body of my request is too large, even for some image files not larger than 1MB. So please how can I solve that issues.
Here's the error part of the logs of the app:
2023/03/21 05:12:26 [error] 2736#2736: *56 client intended to send too large body: 3527163 bytes, client: ..., server: , request: "POST /mobile/create_post HTTP/1.1", host: "..."
I have the free AWS account.
I’m logged on to my management console through Safari on my iPhone.
I want to create a dedicated host for a Mac EC2 instance.
How do I do that? Or does it have to be done on a windows computer?
Thanks
The SQL Server instance on an EC2 server was pre-installed by AWS, but when attempting to patch the installation, the process fails due to an attempt to download Python and R from third-party sites, which are inaccessible. There is no need for Python or R to be installed with SQL Server, but the option to exclude them was not available during the installation. Despite attempting to skip the upgrade, the installation process hangs during the Python and R download phase.
I was getting error as not a valid recognized account while launching instance.it was occuring from pas one hour. can u please look into this issue as soon as possible?
I have 2 different websites in 2 different elastic ips that is in same ec2 instance it has httpd running in redhat linux. now it is http i want them as https. How can i do?
so I am looking to get MySQL install if I specify parameter environment as prod and if dev mariadb get installed from userdata script of this cloudformation template but it is not happening. Please guide on this how to do it?
AWSTemplateFormatVersion: "2010-09-09"
Parameters:
Environment:
Description: "The environment to deploy to (dev or prod)"
Type: String
Default: "dev"
Resources:
EC2Instance:
Type: "AWS::EC2::Instance"
Properties:
InstanceType: "t2.micro"
ImageId: "ami-0f8ca728008ff5af4"
KeyName: "devops"
SecurityGroupIds:
- "sg-02464c840862fddaf"
SubnetId: "subnet-0b2bbe1a860c1ec8f"
UserData: !Base64 |
#!/bin/bash
if [ "${Environment}" == "prod" ]; then
# Install MySQL on production instances
sudo apt-get update
sudo apt install mysql-server -y
sudo systemctl restart mysql
sudo systemctl enable mysql
elif [ "${Environment}" == "dev" ]; then
# Install MariaDB on development instances
sudo apt-get update
sudo apt install mariadb-server mariadb-client -y
sudo systemctl enable mariadb
fi
Tags:
- Key: "Name"
Value: "MyNewInstance"
i kill it and it restart itself. i cannot work!! please help emergency
Hello Team,
In New Amazon Linux AMI AMI ID ami-02f3f602d23f1659d (al2023-ami-2023.0.20230315.0-kernel-6.1-x86_64), which they launched on 15th March,2023 the Instance Metadata Service comes with version 2 by default where HttpTokens is mandatory.
Direct curl http://169.254.169.254/latest/meta-data/instance-id command won’t work here.
For IMDSv2, we have fetch the data through token authentication right.
For reference
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
My question is
For the new AMI, I am seeing that by default it comes up with the Instance Metadata Service version as 2. Could you please confirm me that hereafter the NEW AMI released from Amazon will it be having the IMDS version with default version as 2?
I am performing the below activity.
I am collecting memory metrics of ec2 instance via cloud watch agent. I will then use that metrics to make dashboards, please let me know if this activity will extract any charges.
I have used **ml.g4dn.2xlarge** instance on SageMaker to test GPT-J6B model from HuggingFace using Transformer.
I am using `revision=float16` and `low_cpu_mem_usage=True` so that the model is only of 12GB.
It is downloaded but ***after*** that it suddenly crashes the kernel.
Please share the workaround. The memory of that instance is 32 GB wit 4 vCPU.
```python
!pip install transformers
from transformers import AutoTokenizer, AutoModelForCasualLM
model = AutoModelForCasualLM.from_pretrained("EleutherAI/gpt-j-6B", revision="float16", low_cpu_mem_usage=True) # It crashes here
tokenizer = AutoTokenizer.from_pretrained("EleutherAI/gpt-j-6B")
```
It downloads 12GB model but after that, it crashes.
I tried to follow this thread [here](https://repost.aws/questions/QUsO3sfUGpTKeHiU8W9k1Kwg/why-does-my-kernal-keep-dying-when-i-try-to-import-hugging-face-bert-models-to-amazon-sage-maker) but still there I can't update the sentencepiece.
Please help.
Thanks
How could I find out the four new name servers for our hosted zone on Route 53? Currently the old name servers can't find the hosted record via nslookup. And the hosted website is not responding on the Internet. Thank you.