36,740 questions
3
votes
3
answers
4k
views
Error: route table and network gateway belong to different networks
I'm trying to connect a route table and an internet gateway in the AWS VPC dashboard.
It's serving me this error:
route table and network gateway
belong to different networks
Specifically, I'm ...
6
votes
2
answers
12k
views
Can't connect to EC2 instance via web browser
I have an EC2 instance running which was stopped and restarted. Since that I haven't been able to connect via a web-browser to the site but can connect via SSH.
2
votes
1
answer
10k
views
getting "skipping: no hosts matched" with ansible playbook
my below ansible (2.1.1.0) playbook is throwing "skipping: no hosts matched" error when playing for host [ec2-test]. The ansible hosts file has the fqdn of the newly created instance added. It runs ...
6
votes
2
answers
12k
views
DBeaver connection via SSH tunnel [closed]
Using DBeaver, I'm trying to connect to my AWS ec2 instance where I've installed a MariaDB database.
I've created a new connection as:
Connection: AWS / Maria DB
Server Host: localhost (because I'm ...
13
votes
6
answers
9k
views
CORS issue from CloudFront to server for font
We are getting CORS issue for cloudfront to my site for FONT only.
Access to Font at 'http://d2v777xrj.cloudfront.net/assets/simple-line-icons/fonts/Simple-Line-Icons-ff94ad94c3a9d04bd2f80cb3c87dcccb....
5
votes
3
answers
20k
views
How to upload local files to AWS Elastic File System (EFS)
I'd like to add files to my efs using command line but can't see any info online. I've mounted my EFS to an EC2 instance. Any idea how to do this?
-3
votes
1
answer
67
views
How to Run many script python with low memory in EC2? [closed]
I have many python script that run in schedule (its crawlers). currently i'm using tmux to automate the script running in my ec2 instance. but since the number of scripts are growing, its getting ...
15
votes
4
answers
8k
views
Is there any way to turn a non-elastic IP into an elastic IP on aws? [closed]
I have done some research and don't think it is possible but figured I would ask on here just to be sure.
My predecessor decided to use the public and private IP of one of our database servers in an ...
17
votes
5
answers
26k
views
Locking an s3 object best practice? [closed]
I have an S3 bucket containing quite a few S3 objects that multiple EC2 instances can pull from (when scaling horizontally). Each EC2 will pull an object one at a time, process it, and move it to ...
8
votes
5
answers
44k
views
Ubuntu AWS instance reachability check failed [closed]
I've recently added more storage to the /dev/sda (it was 8GB..made it to 150GB) by stopping the instance, detaching the volume and adding storage and reattaching and then starting the instance. I get ...
Best practices
0
votes
2
replies
62
views
Best way to structure solution on AWS
Let's say there's a VM on AWS that is being used to host multiple instances of the same web app.
The web app has a React front end and an ASP.NET Core backend, and the VM runs IIS.
Each instance of ...
2
votes
2
answers
8k
views
How to connect to Amazon redshift cluster from within my Amazon EC2 instance
I have a Redshift Cluster in my AWS account. I am able to connect to it in python and when I run the script locally, it runs perfectly fine:
import psycopg2
con = psycopg2.connect(dbname='some_dbname'...
2
votes
1
answer
3k
views
What created the /tmp/ICE-unix directory on my EC2 (EBS) instance?
My AWS (Elastic Beanstalk) EC2 instance has a /tmp/ICE-unix directory, which did not exist there before.
And after doing some research I found it is usually created by "applications using the Inter-...
0
votes
1
answer
45
views
"SMTPAuthenticationError: Authentication disabled due to threshold limitation" on production server on AWS
I've set-up email sending in my Django project that is deployed on AWS. When I run it locally the emails go out without a problem, but when I try it on production server on EC2 ubuntu VM, I get ...
8
votes
3
answers
13k
views
Value of property Parameters must be an object with String (or simple type) properties
I am trying to pass parameters to one of the nested stacks by populating the values from another nested stacks output.
And i do not want any cross-referencing (unless there is no way around it)
The ...
9
votes
8
answers
34k
views
AWS Systems Manager - Instance not showing
Could anyone help me investigate an issue with EC2 instance profile? I have create an EC2 instance and I put an IAM role.
But, when I check on the instance I see: No roles attached to instance profile:...
3
votes
1
answer
11k
views
Error handling for AWS CLI in bash script for duplicate security group
I am creating a security group using AWS CLI using Bash script. I want to implement an error handling in the script for example if I create a security group with the same name I can handle it with if-...
1
vote
2
answers
11k
views
Specify the port ChromeDriver runs
H community, I am trying to set up the Selenium Grid on EC2 server, and below are the steps I took so far.
1.start the hub on port 4044
java -jar /ebst/wrangler/upla/bin/selenium-server-standalone-3....
1
vote
2
answers
11k
views
EC2 - chmod: cannot access ‘mypemfile.pem’: No such file or directory
I download pem file while launching t2.small instance. When I try to connect it via ssh it say no such a file in directory. But am sure that pem file is in directory.
$ ls
mypemfile.pem
...
0
votes
0
answers
57
views
aws ec2 ubuntu : why a command works with terminal BUT not with user_data?
i lanched an ec2 instance (ubuntu), and i have a script which looks like :
#!/bin/bash
# works fine (even directly in terminal or via user_data)
hostnamectl set-hostname ${hostname}
# works fine as ...
30
votes
6
answers
33k
views
SparkContext Error - File not found /tmp/spark-events does not exist
Running a Python Spark Application via API call -
On submitting the Application - response - Failed
SSH into the Worker
My python application exists in
/root/spark/work/driver-id/wordcount.py
...
1
vote
1
answer
9k
views
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component
I deployed war on tomcat on localhost is fine, but when I deployed the war on my ec2 server, it had a error follow up:
Caused by: java.lang.AbstractMethodError: org.apache.logging.log4j.core.config....
2
votes
0
answers
406
views
How do I create an AWS EC2 Instance with an encrypted instance storage EBS volume with Powershell?
I am attempting to build a script that deploys an EC2 instance with an instance storage volume that is both slightly larger than the default for the AMI selected and encrypted with a KMS key.
When ...
0
votes
0
answers
56
views
Getting an update when trying to change Drive letters with powershell
So I'm trying to create an AMI in AWS EC2 that can be spun up by our developers. It needs to take user-data, and to do this, I had to shutdown the instance with sysprep before I could take an AMI of ...
2
votes
1
answer
876
views
Is it possible to find the source AMI for an existing AMI?
Given a specific AMI, I would like to find the AMI it was originally built from. I know that an AMI is built from an EC2 instance, but what AMI was it created with? Is there a way to find out the ...