get http AWS server error code in python with boto3
I'm building a system that works a lot with AWS using boto3 in python and I need to log every error that occurs during the running process.I know how to catch client errors (if exists represented using...
View ArticleFailed EC2 launching in AWS
I'm trying to replicate this lab :https://github.com/aws-samples/ec2-spot-montecarlo-workshop, But keep getting an error The provided credentials do not have permission to create the service-linked...
View ArticleHow does AWS EBS volume encryption prevent misuse after direct access?
Does an EC2 instance by default get privileges to decrypt data key of any EBS volume attached to it? I dont see any policies via roles attached to EC2 instance to restrict this behavior. By EBS...
View ArticleIs AWS EBS volume encryption always driven by EC2?
For a brand new EBS volume that has encryption enabled and connected to an EC2 instance, the EC2 instance will use the plaintext data key in hypervisor memory to encrypt disk I/O to the volume. This...
View ArticleHow do I resize an Amazon EBS backed volume programmatically in an EC2...
Looks like the only way to resize an Amazon EBS volume is to take snapshot, dismount, create a larger volume from the snapshot, mount the latter.Now my program is running on a Windows EC2 instance and...
View ArticleDeploying Flask API application in AWS
I had a general question that is it possible to host a flask API with SSL encryption through EC2 and without AWS lambda. I need help to understand the standard architecture to make the API SSL and...
View ArticleProblems with Memory and CPU limits in AWS ECS cluster running on reserved...
I am running the ECS cluster that currently has 3 services running on T3 medium instance. Each of those services is running only one task which has a soft memory limit of 1GB, the hard limit is...
View ArticleHow to diagnose a problem with Tensorflow
I am running a GAN using Tensorflow and Keras on an ec2 instance (AMI machine learning). Every time I try to run Tensorflow it only prints this:Using Tensorflow backendI am on Tensorflow and...
View ArticleHow to expand the new Windows Terminal to support AWS?
Loving the new Terminal but often I need to SSH into an EC2 instance on AWS. Right now I open an Ubuntu tab and then SSH into EC2. I see in the dropdown Azure Cloud Shell. Is there a way to directly...
View ArticleDocker keeps saying "No space left on device" when there's space in device
i have two volumes attached to my ec2 instance, one is /dev/sda1 which is root volume and it is 8 Gb while there's another volume /dev/sdb which is 500GB. I can see both volumes when i run sudo fdisk...
View ArticleRunning a Windows Powershell script on instance launch with Elastic Beanstalk
I have a simple Windows Powershell script I would like to have run on an EC2 instance when it launches within an Elastic Beanstalk environment. It simply sets up a self-signed SSL certificate and binds...
View Articletry_files not fixing 404 in EC2 container
I've seen multiple answers to make nginx server route an Angular application properly, but no solution has worked for me yet. I ran nginx -s reload after adding try_files to etc/nginx/nginx.confThe...
View ArticleCloudwatch alarm for ec2 launching without specific tags
I am trying to set an cloutwatch alarm, if any new ec2 instance without specific tag assigned to it while launching. Checked the cloudwatch metric but seems there is no such alarm pre-existthanks
View ArticleHow to solve Bus error (core dumped) in python?
I was running python script on EC2 instance. Due to out of storage, I had to extend the storage by 4GB. After I extended the storage of the instance. I try to run the python script, at that time I'm...
View ArticleSSH connection denied by EC2 instance
I'm trying to SSH into my instance on EC2 but getting permission denied. Port 22 is open in the security group. I set 400 as a permission for the file which is setting that supposedly works in this...
View ArticleError running linux container on windows 2019 server AWS
I'm having problem while running Linux container on Windows Server 2019, AWS.Following is the error:failed to register layer: failed to start service utility VM (applydiff...
View ArticleI can not access to the website with a public IP
I am setting up a new EC2 with Ubuntu, but I am getting a weird error and it is that I can not access to the public ip, it says refused connection.My security group has these ports enabled:HTTP TCP 80...
View ArticleAnt, sudo and copynot working
I am a newbie in ant. I am trying to do a simple deployment of index.html using GoCD. Basically I am trying to copy file from one folder to /var/www/html (which basically requires sudo permission to...
View ArticleDifferent output in AWS PHP SDK than in AWSCLI
The primary goal that I'm trying to achieve is to iterate over my running EC2 instances in PHP.It's really easy to get the data using a bash script, as shown below:Bash script:#!/bin/bashexport...
View ArticleUsing Cloudflare with Amazon EC2 and load balancers
I am running my website on AWS.I have one load balancer for my two web servers. My load balancer doesn't have a static IP address, it has a domain name.I want my traffic to come only via the load...
View Article