Can't connect to ec2 instance for the first time
I made the new ec2 instance with RedHat. I couldn't even connect once (I was trying to follow this guide https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html?icmpid=docs_ec2_console) Amazon...
View ArticleHow to fetch EC2 instance details and provide input to Jenkins as job...
Say suppose I create few EC2 instances and after few days I will kill the EC2 instances and will spin up again. In this case EC2 instances are created in VPC and only have private IPs. So, whenever I...
View ArticleR on EC2 not connecting to AthenaDB in a seperate AWS account, keeps throwing...
I have an R script on an EC2 instance on an aws account X that is trying to connect to an Athena database on an aws account Y. If I were to use the RJDBC package, I can connect pretty seamlessly...
View ArticleAutoDeploy rails app via jenkins and capistrano
As first steps I have configured AWS EC2 instance with Ubuntu 16.04 and configured Capistrano for deploy from local to this AWS EC2 instance.Now I am trying to make autodeploy rails app from GitHub to...
View Articleec2client.describe_instances returns UnauthorizedOperation after adding...
My goals is to restrict access to ec2 using tag key. It works fine if I remove the condition from the IAM policy. However, if I add the aws:TagKeys condition then I get UnauthorizedOperation error....
View ArticleHow to use a shared folder on Windows Server 2016 and Amazon AWS EC2?
I'm using Amazon AWS EC2(Windows 2016 64bit) and want to access to shared folders on it from my laptop(Windows 10 64bit). I configured Security Group policy and opened all traffic and port range(I...
View ArticleSSH to Elastic Beanstalk instance
I just signed up for Amazon's new Elastic Beanstalk offering. What I can't figure out is how to SSH to a Beanstalk instance. I don't have a private key because Beanstalk generated the instance on my...
View ArticleUsing plink commands from Rstudio with the AWS EC2 has disabled the instance DNS
I was trying to process GWAS data using plink1.9 with a rental AWS ubuntu server. I executed the plink commands from the "terminal" window from the Rstudio server. It turned out that if I execute a...
View ArticleFTP file from remote Solaris server to AWS S3 bucket
I've a requirement wherein I have to implement a script to transfer files from a remote Solaris server to AWS S3 bucket. I should be running this script on my AWS EC2 instance for every 24 hours such...
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 ArticleRunning Spark EC2 scripts with IAM role
I am trying to run Spark EC2 scripts to launch a cluster under an IAM role which my user under my root account can assume.According to this JIRA ticket, we can now specify --profile when running Spark...
View Articlesni-support-required-for-valid-ssl error with AWS EC2 instance while...
I have built a web app app.mywebapp.com. I'm planning to implement white labeling for my users. User example website: userwebsite.com. I want to point their subdomain to my app. Example:...
View ArticleHow do I get the AWS PHP SDK to find the credentials I stored in Elastic...
I am running a web application on AWS Elastic Beanstalk, using PHP.The application uses an RDS MySQL database. i would like to store the db credentials via AWS Secrets Manager.I successfully created...
View ArticleShould I need to open port 22 for sending email using ses from ec2 instance
I'm using Amazon SES to send emails from ec2 instance to the app users, I've sent emails using the sandbox ses account. I want to move out of sandbox, I'm little bit confused after gone through the...
View ArticleIs there a way to use the aws_ec2 ansible inventory plugin to define a...
I'm trying to configure a prometheus server working with ansible. I want to monitor some aws instances (ec2) but I'm stuck with the targets of prometheus. I probably should use a json file to define my...
View ArticleNodejs with nginx CSRF verification failed. Request aborted
I am new to nginx, i manage to run multiple Nodejs projects on single server with different ports. I used my domain to call my Nodejs apis. when I try to call my api from android error is throwing.if I...
View ArticleWhere to add CORS headers in AWS EC2
I'm making a POST request from a browser to my EC2 AWS server but getting the following error back.No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin...
View ArticleHow delegate DNS from NIC.ar to AWS-EC2
I've a Node.js back end running on a EC2 instance (AWS) and I've a NIC.AR domain registered. So the problem is that nic.ar not allow add CNAME records. It allows to add HOST and IPv4 records through NS...
View ArticleAWS Systems Manager - Session Manager and Run Command "document process...
I'm using sessions Manager/Run Command to access some of my instances and it's work for some instances and not for others. I have the same configuration for a few instances, same security groups, IAM...
View ArticleHow to use single EBS volume with a feel of spot EC2 instance
I am preparing for AWS certification and I found following question in mock test. The Question is as mentioned in below image :And they have mentioned EBS volume in the question, I selected to choose...
View Article