How can I setup a server to run my python code and return a value to the user?
I have a python process/code configured on an AWS EC2 Linux server. The user inputs a string and it returns a string. Between the libraries and files required it is >1gb so I can't try Lambda or...
View ArticleHow to allow certain ports open to world only for certain security groups in...
I have this in my policy to allow only 80 and 443 open to world."or": [ { "Cidr": { "value": "0.0.0.0/0" }, "type": "ingress", "OnlyPorts": [ 80, 443 ] }, { "CidrV6": { "value": "::/0" }, "type":...
View ArticleSetting up AWS EC2 instance with Tensorflow 2.0 -- AMI versus building it...
I need to setup an AWS EC2 GPU instance with Tensorflow 2.0. All of the docs that I have seen indicate that the current AWS AMI images only support Tensorflow 1.14 or 1.15, but not Tensorflow 2.0....
View ArticleEC2 instance allow outgoing traffic to specific websites
Here is the use caseWe have multiple ec2 instances within a VPC.We want to allow access certain websites related to our work only and block the rest.The list is not static and we may need to add more...
View ArticleCrontab stopping - broken pipe with ubuntu server
First-time user of AWS/EC2/ubuntu here. I'm having an issue running a python script (a web scraper, using chromedriver, selenium, beautifulsoup, etc) on ubuntu server using crontab. This is an EC2...
View ArticleLaradock lost data (mysql)
I deployed two laravel projects on Laradock but sometime ago (about 2-3 days). Now, my databases on mysql are lost! My server is AWS EC2, and I didn't shutdown or stopped laradock. Is it a bug or did I...
View ArticleHow can I get the the ID of an AWS security group if I know the name?
I'm using the AWS CLI and I want to get the ID of security group whose name I know (kingkajou_sg). How can I do it?When I ask it to list all the security groups, it does so happily:$ aws ec2...
View Article`ansible_hostname` changes during play
tl;drWhen running a playbook the ansible_hostname changes from ip-10-234-0-237 to 10. detailsI've got a playbook that gathers facts and runs a few roles. In the beginning of the playbook I run - debug:...
View Articlechmod unable to change permissions
I'm facing an annoying problem. It's been pretty frustrating. I am using a computer at my school to work on the Coursera Startup class. I am trying to connect to an Amazon EC2 instance. I downloaded...
View ArticleAWS - rc.local is not run when /opt/aws/bin/cfn-init is present
I am launching an instance from AWS console from a pre-baked ami, by passing user-data, as"UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [ "#!/bin/bash -xe \n", "yum update -y aws-cfn-bootstrap\n",...
View ArticleForward local port through bastion to server in VPC
I have a gRPC server in an AWS VPC that I am trying to reach through a bastion server. Typically, I can get to this machine using ssh with host chaining to specify the bastion as the ProxyJump for the...
View ArticleSOLVED | AWS elastic beanstalck | whitelabel 404 | Angular | Java | error 111
I'm trying to deploy my project that includes: Java , Mysql, Angular. i've succeed to export the project as Jar and Open it LocalHost. The project runs well on local host.I've recently Opened AWS...
View ArticleHow to remove X-Frame-Options SAMEORIGIN header from request header in NGINX?
enter image description hereHello, everyone i need to remove X-Frame-Options SAMEORIGIN header from request header.i use nginx server and all setup is in aws.i try following solution but it does't work...
View Articleec2 user-data for Apache Tomcat installation [closed]
I'm trying to find the ec2-user data for apache tomcat installation for an RHEL server. Can you help me ?
View ArticleAWS and Docker: EC2 vs ECS vs Beanstalk
Problem: My application architecutre is build up on multiple docker images like bitnami/zookeeper or bitnami/kafka wich depend on each other. In order to run my multi-container Docker application I use...
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 ArticleWhy AWS distributes private key?
AWS provides access to EC2 by downloading the private key(.pem) into management host that connects to EC2.Key providers generally provide public key but not private key.Why AWS distributes private key?...
View ArticleError installing CodeDeploy Agent on AWS EC2
When installing the CodeDeploy Agent on my newly created EC2 instance (Ubuntu 14.04), I ran into an error with rpm as I was following the steps on the Install or Reinstall the AWS CodeDeploy Agent...
View ArticleAWS Cloudformation EC2 Windows Servername [closed]
I am trying to create a stack of 1 app and DB server in cloudformation, but unlike azure, aws windows machines don't have sufficient inputs to set up desired server. I am looking to input or just...
View ArticleDeploy Laravel to AWS with DNS and DB credentials (url, username/password)...
As a freelancer, I've been provided with following details to deploy the application to their sever.Server DNS: xxx-x-xx-xxx-x.eu-west-2.compute.amazonaws.comDB:...
View Article