Images open in HTML on localhost but not in ec2 instance
I created a website in flask that runs flawlessly on my localhost (localhost:5000). I then created an Amazon Linux 2 AMI ec2 instance and connected to the instance from my browser. Everything is...
View ArticleRedis ERR unknown command 'FLUSHDB'
I deployed a laravel application into AWS EC2. The redis server is installed on another EC2 server.The connection to the redis server is being initialized successfully. But, whenever I attempt to clear...
View ArticleECS service did not stabilize
Answer did not have pointers for this problem, because rollback deletes the stack.Below is the CloudFormation template, written to launch Jenkins docker container in ECS container...
View ArticleWhat happens when the primary node crashes and it is on a different host?
I have read Mongo Docs and some posts, but it's not clear enough to me. I don't understand how it works when Mongo is distributed on different hostsI want to develop a cluster with replica sets (so an...
View ArticleMemoryError in "to_sql" command in Jupyter Notebook
I am working on a jupyter notebooks on AWS Sage Maker. I have performed text processing on a data with 5000 rows. I want to write this to another SQL query with the following...
View Articlecan i make direct login to my EC2 machine in private subnet from EC2 machine...
I have 2 instances . One in private and other in public subnet . Now i want to connect to my private EC2 machine from public EC2 machine without prompting for password or keypair . Is this possible...
View ArticleNACL setup to a private subnet connected to internet via nat gateway
Do we need to open NACL for private subnet from both inbound and outbound, to the internet when my subnet is routed to NATgateway to access internet . If yes how secured it is . The only restrictions...
View ArticleHibernate Search on EC2, "Unable to create index directory"
I'm trying to implement Hibernate Search on my aws application. As usual, everything works great on localhost, but when upload to aws, I receive the following...
View ArticleIf I assign a role for an EC2 instance to S3, does it mean all instance OS...
If I grant an EC2 instance to S3, does it mean all operating system level account in the EC2 instance will have the same access to the S3 resource? This would not be secure, how do I further limit...
View ArticleDoes AWS SSM agent cloudwatch resource:memory event?
Am picking ECS optimised instance(ami-05958d7635caa4d04) in data plane of ECS in ca-central-1 region.AWS Systems Manager Agent (SSM Agent) is Amazon software that can be installed and configured on an...
View ArticleGetting CORS error using Express + AWS, created API Gateway process/method,...
I've got an express server that I've uploaded to an ec2. Prior, I've verified that it works on my PC using localhost. I've added cors using node, I've created an API Gateway for post, still getting the...
View ArticleAWS + Remmina on Ubuntu - Remmina goes into a loop trying to reconnect
I followed this article to install xrdp on AWS Ubuntu 18 ec2 instance, and everything seemed to work properly for a few days.However, now, when I try to connect to the EC2 instance using Remmina (from...
View ArticleHow to get the metrics for a resource using its resource ARN in AWS using...
I have a resource ARN of a resource in AWS (eg ec2 instance). I want to get the list of the metrics for this particular resource in Go. How do I get it?
View ArticleThe Amplify CLI can NOT find command: pull
I have just installed amplify cli through the command:npm install @aws-amplify/cliIt mentions it has installed version 4.2.0.Following the directions of the document below, I tried to run an "Amplify...
View ArticleJenkins CLI download fails with 500 Error or 503 Error
I am using an EC2 instance to setup Jenkins. In the EC2 instance, I bootstrap the following script to download the Jenkins CLI in my EC2 instance.sudo wget...
View ArticleAWS EC2 instance self hosted webapi install ssl certificate
I have a self hosted rest api on a windows EC2 instance in AWS which is being used by a mobile application. I would like to install a certificate to make the http calls go over ssl layer. I also have a...
View ArticleStart and Stop logstash as a Service on Linux with multiple pipelines
I tried creating a pipeline which consumes data from a data source and saves it to ES. currently i'm using two pipeliens (conf files) and usingbin/logstash -f logstash-sample1.conf --path.data...
View ArticleProgrammatically set EBS Volumes Windows Drive Letters using Terraform, Chef...
I'm using terraform and chef to create multiple aws ebs volumes and attach them to an EC2 instance. The problem is I want to be able to give each ebs volume a specific windows drive letter. The problem...
View ArticleRaster package wont read file from URL in RStudio on Amazon ec2 instance
I am moving a model from laptop to cloud to increase compute power and storage. Loaded an AMI with Rstudio in an ec2 instance that works like a charm, except when attempting to raster() or stack() tif...
View ArticleTerminating AWS EC2 instance fails - the instance is still running
it seems that I have a technical issue regarding terminating the EC2 instance.When I terminate it, a new instance is being created with the same name. I terminate an EC2 instance. After a refresh,...
View Article