Which AWS EC2 instance to choose?
I have a Node.js REST API which is expected to serve a total of approx 3000 requests(inbound+outbound) per day, in production. Which EC2 instance type would be the most appropriate choice for this kind...
View ArticlePermission denied trying to move file for loading test and prod properties -...
I read a lot of other answers but with no success, my goal is to load different properties reading environment name.I have this structure .ebextensions/properties/test_properties...
View ArticleCharges for Reboot and Stop an EC2 instance
The question is:The user just started an instance at 3 PM. Between 3 PM to 5 PM, he stopped and started the instance twice. During the same period, he has run the linux reboot command by ssh once and...
View ArticleHow to apply CloudFormation updates to EC2 instances?
I have an ECS cluster with 2 EC2 instances that use a CloudFormation stack. When I update anything in the CFN stack (be it a parameter like AMI ID or a script in the template) I see the events progress...
View ArticleGithub Workflow Actions And EC2: Error Loading Key Invalid Format
I am trying to set up CI for my nodejs server. I would like to use github actions to ssh into my ec2 instance, where I can then git clone/pull my updated repo.I can ssh into my ec2 instance on my local...
View ArticleR Server can't find Imported Python Modules after reboot
We had to restart our R Server (EC2 box), and following its restart, my Jupyter notebooks are throwing errors that regularly-used, imported modules cannot be found: (in Jupyter Notebook cell)import...
View ArticleTrouble configuring Django with AWS/ElasticIP
I am trying to attach my domain to my Django app on AWS.The first thing I did was get the app working and accessible from the IPv4 Public IP supplied by AWS. This, of course, involved updating my NGINX...
View ArticleHow to use R AWS packages in Single Sign-On environment
I have searched online but I cannot find a way to use the packages such as aws.translate. My company accesses AWS using SSO and we cannot generate key pairs. I launched an ec2 instance where I run a...
View ArticleHow to store environment variables on AWS EC2?
I'm using dotenv to fetch and use environment variables from a .env file in my node app while running it locally. But this .env file can't be committed to github for security reasons. I'm using...
View ArticleHow to add SSL certificate to AWS EC2 with the help of new AWS Certificate...
AWS has come up with a new service AWS Certificate Manager. One thing I got from the description is that if we are using this service we don't have to pay for the certificate anymore.They are providing...
View ArticleAutomatically provisioning EC2 instances with tls private keys
I have a mandate to encrypt traffic between services running on AWS EC2 instances, presumably with TLS. My (current) question is: how do I get the private key files onto my instances automatically...
View ArticleHow can I managed to get a reverse DNS assigned to an elastic IP if I use...
I have multiple environments on Elastic Beanstalk. Each environment is assigned a number of ec2 depending on traffic.I recently started looking at amazon's simple email service. Seeing that it seems...
View ArticleI want to upload files with extension to aws s3 but it will not upload file...
This is my File Upload.js but when i upload file it will get uploaded succesfully but its extension is missing i want to upload file with extension .Please help meconst aws = require('aws-sdk'); const...
View ArticleConnection to EC2 Node.js server in a private subnet times out
The architecture diagram shows how I have setup the application on AWS.Everything works fine if the Application Server group and the Web Server group are in public subnets. However when I have the app...
View ArticleHow to assign private IP only to EC2 instance?
Below is the cloudformation code creating EC2 instance in public subnet, taken from here:"EC2Instance":{ "Type": "AWS::EC2::Instance", "Properties":{ "ImageId": "ami-05958d7635caa4d04", "InstanceType":...
View ArticleHow to get list of EC2 instances with Amazon PHP SDK 2?
How to get list of Amazon EC2 instances matching some filters using AWS SDK for PHP 2?
View ArticleDoes not send email amazon linux 2 server from java [closed]
I have setup sending email code in java which working on local environment but when i push code on amazon linux2 server, unable to send email and also no error code occur.
View ArticleHow containers run on an AWS EC2 virtualization exactly?
As they say, containers do not run on the Hypervisor layer so what happens when we run Container on an AWS EC2 instance? Since EC2 itself is running on a hypervisor layer managed by AWS. Can someone...
View ArticleWhy am I failing to connect to my linux instance?
I have just launched an instance on AWS EC2 (free tier - t2.micro) - so I can start a Wordpress blog. I have tried connecting to this instance (using the basic 3 methods) so that I can download...
View ArticleCan't connect to RDS read replicas' domain name hosted via Route53
I have an RDS with multiple read replicas. In order to load balance the available read replicas, I used Route53's weighted hosted zone. I use this link for doing that: AWS Read ReplicaAfter completing...
View Article