Questions tagged [amazon-ec2]

Amazon EC2 stands for "Amazon Elastic Compute Cloud". It is a part of Amazon Web Services (AWS) and allows users to rent virtual machine instances. You can create instances, launch and manage them through a central interface, through a web API or through a console.

0
votes
0answers
6 views

AWS EC2 metadata returns NullRole in associated iam credentials

I'm working with AWS EC2 instances and associated IAM role, trying to get this via metadata service to access S3 buckets. But when I try to get the role it responds with: > curl http://169.254.169....
0
votes
0answers
5 views

Install Winform Application in AWS EC2 to send Bulk Email

I am a new one in AWS. I have a ASP.Net eCommerce web application which is going to host in AWS EC2. Database is SQL Server 2014. I have a Email functionality in the application. I googled a lot to ...
0
votes
1answer
9 views

Could it be able to install AWS Logs agent in EC2 User data?

I'm curious that it could be possible to install aws logs agent in EC2 User-Data and start its service automatically after that, just like CodeDeployAgent? Because I've found tons of tutorials ...
0
votes
1answer
10 views

CloudFront forwarding Custom Headers to Origin but with null Values

I am using AWS EC2 for last couple of years. Now I want to enable HTTPS on my application developed in ASP. NET WEB API with front-end in AngularJS. For that I made a CloudFront distribution. It has ...
-1
votes
0answers
12 views

Large number of databases in SaaS platform

We have developed one SaaS platform which is hosted in AWS ec2. We are using MySQL for database and our database is hosted on AWS RDS services. The approach we are following is separate database for ...
-1
votes
0answers
8 views

Is it possible to apply multiple schedules to the same AWS EC2 instances?

I am using the AWS Instance scheduler and I have a created a schedule successfully. my period is { "begintime": { "S": "11:00" }, "description": { "S": "Office hours" }, "endtime": {...
0
votes
0answers
7 views

Dual home ec2 instance

I have VPC with CIDR of 10.0.0.0/16 and one more IPv4 CIDR to my Same VPC with 10.2.0.0/24. I have created a subnet with 10.0.0.0/24 and 10.2.0.0/25 on the same Availability Zone (us-east-1a). I ...
0
votes
2answers
21 views

HTTPS for each EC2 instance in an Auto Scaling group

How can you setup HTTPS for each individual EC2 instance in an Auto Scaling group? Usually a load balancer in front of the group would handle this by holding an SSL/TLS certificate, but in my ...
0
votes
1answer
10 views

Connection of a centOS with Amazon EC-2 Linux instance in Ansible

I have been trying to ping my client-1 (CentOS in VirtualBox) in ansible master (Amazon EC-2 Linux) instance, but it is showing this error: I have tried connecting another Amazon EC-2 Linux instance ...
-4
votes
0answers
18 views

I want to deploy small python middleware to aws-ubuntu server, I m not using flask/django, just .py files

I am facing issues in deploying a python code to AWS instance - ubuntu , do I need to use flask ? as it is not a web app just a middleware
-1
votes
0answers
9 views

Keystore doesn't load in EC2 instance

I'm experiencing some error which the keyStore doesn't load in the AWS EC2. When i'm trying to run it through my local, it successfully loads the Keystore without failure. this.getClass()....
4
votes
2answers
27 views

How can I automatically spin up my ec2 instance, run a command and then shut it down?

I want to run a machine learning model on my data in redshift postgres database once a week. I set up my R script as a rest api using plumbr and then I set it up to be managed as a task by pm2. I ...
0
votes
2answers
21 views

How to config two different applications in different EC2 instances under the same domain in Route53?

I'm setting up new two servers in different EC2 instances, and want to run two different applications, one on each EC2 instance: 3.14.23.108:8080/clients 18.23.34.23:8080/products I need that those ...
0
votes
1answer
8 views

Enforce tagging in ec2

Created an IAM policy that should restrict user to now to allow ec2 instance creation when tags value not met { "Version": "2012-10-17", "Statement": [ { "Sid": "...
0
votes
1answer
11 views

Amazon EC2: How can I monitor that my software is running?

I run a server application on an amazon EC2 Instance. As such it must always be running. IN the case that it does crashes, I need to know right away. Is there a simple way in which I can monitor that ...
0
votes
1answer
10 views

Restrict access to only company employees from anywhere in the world

I want to restrict access to a webpage on a AWS EC2 instance, to only company employees, which are spread all over the world. I have successfully whitelisted the UK offices, but i haven't for ...
0
votes
0answers
14 views

Connect to AWS Elasticache Redis cluster using Python

I have created a Redis Elasticache cluster in AWS and would like to read and write data to the cluster using Python script which will eventually become a Lambda function. I've read that the typical ...
0
votes
0answers
14 views

Javascript Error “Uncaught TypeError: Cannot set property 'src' of undefined”

I'm using a native Bitnami installation on Amazon AWS EC2 instance. All Wordpress, Woocommerce and server technology are the latest and greatest. I have multiple products with variations and when I ...
1
vote
1answer
26 views

EC2 instances recreated by Terraform when new AMI released

I have written some Ansible scripts to create some servers. For AMI I was using the Terraform data module to get the latest Ubuntu 16.04 image ID and assign it to the EC2 instances. Recently I ...
0
votes
1answer
43 views

Nginx Redirect to EC2 Instance

I had angular (version: 7) site which was deployed on S3 bucket, but for SEO purposes, recently I integrated Angular Universal. Now I moved site/frontend from S3 bucket to EC2 instance. I am trying ...
0
votes
1answer
13 views

Transfer/copy EC2 instance, on which Nodejs+MongoDB app through Bitnami is deployed, to another aws account

I previously deployed my Nodejs+MongoDB application on AWS EC2 instance, now I want to transfer it to another AWS account. I followed this video- https://aws.amazon.com/premiumsupport/knowledge-...
0
votes
0answers
19 views

I cannot access EC2 instance created with C++ run_request.SetKeyName

When I create an AWS EC2 instance using the C++ SDK (following their example program) and I add run_request.SetKeyName(sKeyName), the key name shows up in the AWS web console for the instance, but SSH ...
0
votes
1answer
31 views

AWS: confusion on multi-AZ setups for ASG and ELB

I am about to take my AWS Architect Associate Certification Exam and I have some things on ELB and ASG that I still don't get (or maybe I just did not study enough) and I liked to ask your help to ...
1
vote
1answer
34 views

Launch and shutting down instances suited for AWS ECS or Kubernetes?

I am trying to create a certain kind of networking infrastructure, and have been looking at Amazon ECS and Kubernetes. However I am not quite sure if these systems do what I am actually seeking, or if ...
0
votes
2answers
24 views

How to I resolve command not found in AWS EC2?

All of a sudden no linux command(ls, vi, etc..) is working in AWS EC2 instance and I get message saying command not found. I had launched an EC2 instance and all linux commands were working fine. I ...
0
votes
0answers
6 views

Install shiny server on EC2

I am trying to simply deploy a shiny app on my EC2 instance. I am on Centos and I have followed the instructions and ran the following commands in putty to install shiny server : wget https://...
0
votes
2answers
39 views

Do not allow users to create any ec2 instances if missing s tag value

Is there a way I can enforce tags on my ec2 instances. Below is what I am looking : Deny Users if they are missing required tags for Ec2 instances Send email to admin if someone tried to create ...
0
votes
1answer
19 views

Problem running logstash in aws ec2 linux ami

I am setting up "elasticsearch" in AWS, i am trying to use AWS linux AMI. When i run the bin/logstash -f "/path to config file" i get error saying: "logstash.yml" not found try using "--path....
0
votes
1answer
24 views

Laravel Application Shows Blank Screen

I finish setting up my laravel application on apache server in amazon ec2, but the application is showing a blank white screen after fixing all the permission issues.
0
votes
0answers
42 views

my container is not accessible to the internet even though security rules are allowing it

i am having a weird issue of my docker containers not being accessible to the internet. my containers are running and the correct ports have been opened but cant seem to access them. i am using ports ...
0
votes
1answer
19 views

Get EC2 CPU utilization using AWS SDK

I need to create a AWS Lambda function in JAVA to print the EC2 instance's CPU Utilisation. How to get the CPU utilization of EC2 instance using AWS JAVA SDK.
0
votes
0answers
18 views

Webhook was not set! Error: 400 Bad Request: bad webhook: Failed to set custom certificate file

Webhook was not set! Error: 400 Bad Request: bad webhook: Failed to set custom certificate file. I used PHP, Apache 2.4 and amazon web services EC2. Hi, I have to set the webhook of my Telegram bot ...
0
votes
0answers
26 views

Accessing NodeJs app running on AWS-EC2 from public network

Enabled EC2 security group inbound to all traffic, still not able to hit NodeJs server running on EC2 from Public WAN, but 'curl' command within EC2 works. Created and logged-in to EC2 instance ...
0
votes
0answers
21 views

getting error while doing curl to my website from AwS server

when I ran a curl to my website from AWS server its throwing below error. curl https://example.com curl: (7) Failed to connect to example.com port 443: Connection refused where as the same is run ...
0
votes
0answers
22 views

AWS Ubuntu java.lang.ClassNotFoundException: Jama.Matrix

I am trying to run a mutation clustering algorithm described in https://tinyheero.github.io/2015/08/26/TrAp.html Running java -jar TrApWithDependencies.jar --text figure1.txt works fine on my laptop ...
0
votes
0answers
13 views

Why does ApplicationStart timeout with AWS code deploy?

I am using codedeploy to deploy a springboot app to an ec2. But I keep getting a script timeout error. I event set the timeout to 60 seconds event tho the application always starts up within 20 ...
0
votes
0answers
31 views

Can't access another AWS ec2 instance (in the same subnet)

I'm setting up an AWS VPC with both private and public subnets. In public subnets, I created 2 instances: one as bastion host and one as a web server. For the web server, I only want to make port 80 ...
0
votes
1answer
61 views
+100

Laravel - AWS Beanstalk - Storage symlink not working (403 error)

I am using elastic beanstalk to deploy my laravel application. Everything is working fine except for my images as I need to create a symbolic link with storage to access it publically. P.S. Works ...
0
votes
1answer
21 views

AWS EC2 Ubuntu16.04 crontab not working at specified time

As titled, i have read through a lot different online resources, but still not be able to make crontab work at specified time, it only works when the the job is specified for every minute. p.s I have ...
0
votes
2answers
38 views

How to access files stored in s3 bucket from python program without use of boto3?

I want to access files stored in my s3 buckets running python script in ec2 machine . Boto3 python packages facilitates this but is there some other way files stored in the s3 bucket could be accessed ...
1
vote
0answers
23 views

tomcat in amazon-ec2 linux, only loads home page

I created on my local computer (windows) a spring-boot project that runs a tomcat server. Code: @RestController public class ServerController { @Autowired private CalculateService ...
0
votes
2answers
24 views

How to start a specific instance, when another instance is overloaded?

I have 2 instances, connected to a load balancer. I would like to stop 1 instance, and start it only when a certain alarm happens, for example when the first intance has a high CPU load. I couldn't ...
0
votes
0answers
18 views

Java app from CodeBuild cannot be deployed with CodeDeploy

I'm having issues trying to deploy a Java application with Codebuild + CodeDeploy. I am quite a newbie on this, so probably the issue is easy to spot and has been solved a thousand times, but I just ...
0
votes
0answers
4 views

How to make a text file persistent when you can read/write to it with multiple containers?

I have an AWS EC2 instance with an orchestrator which splits all the requests made to it to three containers running on 3 different port numbers. All these containers should read/write into a text ...
0
votes
1answer
37 views

How to find Security Group ID in ec2 metadata?

I'm trying to find security group ID in metadata, but there is only a name of the group. The get the name with curl like this: curl http://169.254.169.254/latest/meta-data/security-groups/ RESULT ...
0
votes
1answer
22 views

Unable to connect R to mysql which is hosted in Bitnami server in AWS

I am very new to AWS and Wordpress and am unable to connect to Bitnami MYSQL database server hosted in AWS form R shiny. I want to access the Mysql database which the wordpress is using to store the ...
0
votes
1answer
38 views

How to choose Elastic IP when my aws lambda function execute

I want to select specific Elastic IP my own when my lambda function executed. my service has to respond to several situations, and by user's attributes. Could I write code in a lambda function, ...
1
vote
1answer
47 views

AWS Auto Scaling DB

I was thinking exactly how Amazon AWS handles the data replication on the fly when a new DB instance is launched when auto scaling is turned on? I'm more interested about Cassandra, MySql, Redis, ...
0
votes
1answer
31 views

Postman request : ImportError: cannot import name DEFAULT_CIPHERS

I'm using a Red Hat EC2 instance in order to run AWS CLI commands and manage some tasks with Glacier and S3. I'm also designing a Rest API in order to execute the scripts I've deployed on the EC2. ...
0
votes
2answers
42 views

SSH Tunnel through Ubuntu bastion to instance in private subnet

I stocked in problem which I can't fully get how to solve. The question is very common, but I still can't get what am I doing wrong. According this AWS doc: Scenario 2: VPC with Public and Private ...

http://mssss.yulina-kosm.ru