Questions tagged with Amazon EC2

Content language: English

Sort by most recent

Browse through the questions and answers listed below or filter and sort to narrow down your results.

We are running an email processing application for one of our client, here they send the emails via smtp to our servers and before delivering the emails to the final MTA we are supposed to do some process on the incoming SMTP packet like adding tracker information. Currently we are doing this on an stand alone server at a data center in US which has Intel Xeon E3-1270v6 - 4c/8t - 3.8 GHz/4.2 GHz with SSD drives and 64 GB RAM. Here we are able to process very easily 130 - 150 mails per second. Now when we moved this to AWS EC2 on a c6a.4xlarge the same process is hardly processing 50 - 60 mails per second. Is there any throttle on AWS or have we selected a wrong EC2 instance ? Please guide.
0
answers
0
votes
12
views
asked 19 days ago
I have got the spring boot app running on ec2 instance in a private subnet where no internet connection is established. I want to send emails from this app so I decided to use VPC endpoint connected to AWS SES. Here are the inbound rules of security group of this vpc endpoint. ![Enter image description here](/media/postImages/original/IMtz4rNs3BREG13mRL2_am5A) Source column is private ip of my ec2 instance When I invoke the telnet command: ``` telnet email-smtp.eu-central-1.amazonaws.com 587 ``` I got the response: ``` Connected to email-smtp.eu-central-1.amazonaws.com. ``` So connection is established I guess. However, when I try to send emails from my application - the exception is thrown ``` amazon.awssdk.core.exception.SdkClientException: Unable to execute HTTP request: Connect to email.eu-central-1.amazonaws.com:443 [email.eu-central-1.amazonaws.com/<SOME_IP>, email.eu-central-1.amazonaws.com/<SOME_IP>, email.eu-central-1.amazonaws.com/<SOME_IP>, email.eu-central-1.amazonaws.com/<SOME_IP>, email.eu-central-1.amazonaws.com/<SOME_IP>, email.eu-central-1.amazonaws.com/<SOME_IP>] failed: Connect timed out ``` the method I use to send emails ``` fun sendEmail() { val url = "url" val destination = Destination.builder().toAddresses("email@domain.pl").build() val subject = Content.builder().data("Subject").build() val sesBody = Body.builder().text(Content.builder().data(data(url)).build()).build() val msg = Message.builder().subject(subject).body(sesBody).build() sesClient.sendEmail( SendEmailRequest.builder() .destination(destination) .message(msg) .source("email2@domain.pl") .build() ) } ``` and the sesClient config ``` @Bean fun sesClient(): SesClient { val basicAWSCredentials = AwsBasicCredentials.create(sesAccessKey, sesSecretKey) val credentialsProvider = StaticCredentialsProvider.create(basicAWSCredentials) return SesClient .builder() .credentialsProvider(credentialsProvider) .region(Region.EU_CENTRAL_1) .build() } ```
3
answers
0
votes
33
views
asked 19 days ago
Hello, I am being tasked to manage a AWS accounts, where ec2's are not tagged. However, now requirement is to have cost report of individual EC2 server on daily/monthly basis. I enabled cost report from billing section( CUR). However, under s3 bucket I can see there are multiple CUR zip files report are generated and I am not able to understand under which file should check the specific EC2. Need help here to get cost report for individual ec2's. either in cost explorer or through CUR. Thanks.
3
answers
0
votes
32
views
asked 19 days ago
Hello, I would like to know how can I change Ip in my EC2 Instance?
Accepted AnswerAmazon EC2
1
answers
0
votes
21
views
XaKov
asked 19 days ago
Hi! I am building for free a tool children to learn and play board games. For this board game there is an AI engine that works on command line. I installed this engine (including its books (=internal database with moves)) on an EC2 linux instance. I can run it and it works. Wow. Anyway, for a non-expert this is a win already. Anyway, I want to be able to somehow call this AI engine and send some simple (as per AI protocol) commands and wait for the info back. Basically what would happen when I run the executable on and type the commands. I presume this requires some kind of API that I then can call? I have no clue. I am just a simple man trying to do something good and if someone can help me he/she will be honored on the website forever! Please! I am available to supply all info!
0
answers
0
votes
25
views
MBVL
asked 19 days ago
Hello. I am trying to run Elasticsearch and Kibana on my local EC2 instance. I have them both installed but when I run them, Kibana asks me to visit `http://localhost:5601/?code=092017` in my browser. I substitute `localhost` with the public IP address of my EC2 instance but the desired page won't load—instead I get a page that says "This site can't be reached". I've tried to open up port 5601 through the security group, but I didn't have any luck with that. Perhaps, I'm not doing it right. But I've kind of run out of things to try. Note that when I run the command `curl http://localhost:5601` from the command line inside my EC2 instance, I get some output that looks like there should be a webpage displayed at that address. So, I do think the issue is just that I can't access the page from outside the EC2 instance itself.
1
answers
0
votes
38
views
Matt_J
asked 20 days ago
Hi, For EC2 Instance type "x2iezn.2xlarge", I see the EBS Bandwidth (Gbps) specified as 3.17. May I know if this bandwidth is per EC2 Instance or per mounted EBS volume on the EC2 instance? ![Enter image description here](/media/postImages/original/IM3Qk_gSvGSr62sYy6_jWmtw) To make sure my question is clear, if we have 3 EBS volumes attached to the EC2 instance type "x2iezn.2xlarge", is the combined EBS bandwidth of all the three volumes together is 3.17 Gbps or is it 3.17 Gbps per volume? Thanks.
3
answers
0
votes
24
views
asked 20 days ago
Hi all, I'm checking different EC2 instances, I need to put an app, is like the app will need more resources with the time, so, I'm looking over what would be the payment options with this in consideration, how to choose a plan with scability. Sadly I was not able to find in a clear way the advatages/disadvantages of the plan having this in consideration, even reading and checking the docs I don't know if Compute Savings Plans allow use to change the instance type.... Checking, I was able to find some docs, the docs: https://docs.aws.amazon.com/savingsplans/latest/userguide/what-is-savings-plans.html https://aws.amazon.com/es/ec2/pricing/reserved-instances/ Someone can give can give us a summary about the EC2 that can change type and how the payment is affected changing it plis? or at least how to focus this. Thx!
1
answers
0
votes
20
views
latot
asked 20 days ago
On AWS EC2 instance I've installed Bitnami and on top of that I've installed Wordpress and a Wordpress theme. After few months of customization few days ago I stopped and started the instance. Since then my site is unavailable. I am trying to bring the site up and for this I've found this tutorial: https://www.youtube.com/watch?v=xvtoVxk8kWA Following the tutorial I can say the following: * Status check for sys. reachability successfully passed * Status check for instance reachability successfully passed * Security groups look ok from my perspective * Network ACL looks ok from my perspective (all traffic allowed) In the tutorial (time 4:20) it says to start the following command: `sudo systemctl status httpd` When I run this command I get the following output `Unit httpd.service could not be found.` I tried running this command as "root" and as "bitnami" user. In both cases I am getting the same error message. In the aforementioned tutorial in the comments someone wrote that "sudo systemctl restart httpd" worked for him. But when I run this command I still get "Unit httpd.service not found.". Bottom line is - I am trying to bring the site up. This way or any other way. All checks which video describes until 4:20 minute look same/similar on my end. That's why I am trying to bring it up with "sudo systemctl...". can anyone please help me with this? Thanks! Following the video (4:41) I've run this command to check if the traffic is received on port 80/443: `netstat -tunlp | grep -i http` I don't get any result (at least not the result as shown in the video). Based on this I conclude that the site is NOT listening on port 80/443 I tried running this command and here is the result `sudo firewall -cmd --state sudo: firewall: command not found` If I run `sudo /opt/bitnami/ctlscript.sh status` Then I get this result ` apache already running mariadb already running php-fpm already running` Can anyone please help me to bring the site back up? The matter is urgent and critical. Thanks for support and understanding. ------------------------------------------------------------------------------ If I run this command: `sudo /opt/bitnami/bndiagnostic-tool` I get the following output ` An updated version is available. Would you like to download it? You would need t o run it manually later. [Y/n]: n Welcome to the Bitnami Diagnostic tool. Please read the following information carefully. Press [Enter] to continue: This tool collects system information and files from a Bitnami stack into a diagnostic bundle file to be uploaded and reviewed by the Bitnami Team, for the sole purpose of providing you support for any issue you may find. The uploaded information will be automatically removed from our systems after 1 month. In case you have any doubt regarding our privacy policy please check: https://www.vmware.com/help/privacy.html Press [Enter] to continue: Do you accept? [y/n]: y | The bndiagnostic tool has finished searching for errors and has found some issues that might be related to yours. The output will be shown on the next page: Press [Enter] to continue: ===== Begin of bndiagnostic tool output ===== ? Resources: Found possible issues ? Connectivity: Found possible issues ✓ Mariadb: No issues found ✓ Processes: No issues found ? Wordpress: Found possible issues ? Apache: Found possible issues ✓ Php: No issues found [Resources] Your instance has little available RAM memory. total used free shared buff/cache available Mem: 975 386 63 1 524 420 Swap: 634 12 622 You could try to increase your instance's memory. Please check your cloud provider's documentation for more information. Press [Enter] to continue: [Connectivity] Server ports 22, 80 and/or 443 are not publicly accessible. Please check the following guide to open server ports for remote access: https://docs.bitnami.com/general/faq/administration/use-firewall/ [Wordpress] Found recent WordPress plugin related error messages in the Apache error log. [Sun Feb 26 21:00:44.149415 2023] [proxy_fcgi:error] [pid 952:tid 140330003298048] (70007)The timeout specified has expired: [client **ip_address**:20346] AH01075: Error dispatching request to : (polling), referer: https://www.<my-domain-name.com>/wp-admin/plugins.php?s=&plugin_status=all Please check the following guide to deactivate plugins: https://developer.wordpress.org/cli/commands/plugin/deactivate/ [Apache] Press [Enter] to continue: Found recent error or warning messages in the Apache error log. [Sun Feb 26 20:59:56.709925 2023] [proxy_fcgi:error] [pid 952:tid 140329768302336] (70007)The timeout specified has expired: [client **ip_address**:32977] AH01075: Error dispatching request to : (polling), referer: https://www.<my-domain-name.com>/wp-admin/admin.php?page=w3tc_dashboard&_wpnonce=521586fa3b& w3tc_note=flush_all [Sun Feb 26 20:59:43.844511 2023] [proxy_fcgi:error] [pid 952:tid 140330158352128] (70007)The timeout specified has expired: [client **ip_address**:28814] AH01075: Error dispatching request to : (polling), referer: https://www.<my-domain-name.com>/wp-admin/admin.php?page=w3tc_dashboard&_wpnonce=521586fa3b [Sun Feb 26 21:00:29.519343 2023] [proxy_fcgi:error] [pid 689:tid 140329474819840] (70007)The timeout specified has expired: [client **ip_address**:51737] AH01075: Error dispatching request to : (polling) Please check the following guide to troubleshoot server issues: https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-erro rs-apache/ Press [Enter] to continue: ===== End of bndiagnostic tool output ===== Press [Enter] to continue: The diagnostic bundle was uploaded successfully to the Bitnami servers. Please copy the following code: 68c41c59-2922-1493-7306-970580d0b299 And paste it in your Bitnami Support ticket._` ------------------------------------------------------------------- Re. "connectivity": this is how my inbound rules are defined: https://prnt.sc/ieCq2NSsX6B6 -------------------------------------------------------------------- This video (https://www.youtube.com/watch?v=uLmjoHDCkag) shows how the issue with unreachable site is resolved (14:56 min). However, when I connect as bitnami user I can't run the commands show in the video. On the other hand, if I try to connect with the instance over console-aws either as "admin" or "ec2-user", I get the following error `Failed to connect to your instance Error establishing SSH connection to your instance. Try again later.` Why can't I connect with the instance?
6
answers
0
votes
61
views
asked 20 days ago
I can no longer access my instance. The instance status checks shows "2023/03/01 10:05 GMT-6 Instance reachability check failed". I attempted to reboot the instance. It says "Successfully rebooted". However, I can still not access it. What is the next step is recovering this instance?
1
answers
0
votes
14
views
asked 20 days ago
I have an Android app connected to my AWS account that has been linked to the same IP address and instance for the past few years now. AWS underwent maintenance at the end of Feb, so I started to receive an error message on my app: "Unable to connect to XXX IP address". There seemed to be nothing wrong with the instance, it was running normally and passed both status checks, but still my app did not work, and I kept receiving the same error message. I tried to reboot the instance, it didn't work. So I stopped the instance and restarted it, but now I have a different IP address which is not linked to my app. Does anyone know how I can fix this so that the new IP address is linked to my app? Or what are my options? Thanks for your help.
1
answers
0
votes
8
views
asked 20 days ago
Make a copy of your redhat-rhui.repo file, and do a search and replace with REGION with us-east-2 and you'll be able to grab updates again. Change: mirrorlist=https://rhui.REGION.aws.ce.redhat.com/pulp/mirror/content/dist/rhel9/rhui/$releasever/$basearch/appstream/os to mirrorlist=https://rhui.us-east-2.aws.ce.redhat.com/pulp/mirror/content/dist/rhel9/rhui/$releasever/$basearch/appstream/os It appears that the us-east-1 aarch64 RHEL9 repos are having issues again. But at least we're able to point to another region this time for updates. I've notified RHEL of the issue again. Both us-east-2 and us-west-2 work fine for me. us-east-1 has no updates, going on 24 hrs+ now.
1
answers
0
votes
24
views
asked 20 days ago