Does IAM policy rules attached to EC2 instance overlap(&override) policy...
Below is the role assumed by EC2 instance:"AScaleLaunchConfig": { "Type": "AWS::AutoScaling::LaunchConfiguration", "Properties":{ ….. "IamInstanceProfile": { "Ref": "EC2InstProfl” }, ….. } }...
View ArticleCan't add new command when connection is in closed state
I am using the Amazon EC2 with Ubuntu.I am running the server using the PM2, aspm2 start bin/www --log-date-format "YYYY-MM-DD HH:mm" --watch It works fine but when I am trying to access API after 1 or...
View ArticleEC2 Instance Connect (browser-based SSH connection) doesn't work
Trying to connect Amazon AWS EC2 instance fails.Platform: Amazon LinuxConnection method: EC2 Instance Connect (browser-based SSH connection) Error: There was a problem setting up the instance...
View ArticleDoes the alarm monitor the whole autoscaling group
When I set up an alarm for an Amazon EC2 Auto Scaling group to scale up when CPU utilization is larger than 80%, will it calculate a mean CPU utilization value of all the instances in the group? Or it...
View ArticleAWS ECS Tasks - when in the state machine do charges begin?
I use AWS Elastic Container Service (ECS) run-task to schedule tasks using both EC2 and Fargate, and I use stop-task to cancel some of them. The state machine seems to be PROVISIONING ->PENDING...
View ArticleLost docker container after restarting EC2 instance
I was running a python script in EC2 within Docker container. I think the EC2 crashed because of 'Out of memory'. So I had to restart the EC2 else, couldn't get into EC2. After restarting I couldn't...
View ArticlePersisted keep alive connections are dropped suddenly
Tech stack Node.js v6.17.0 Restify v3.0.3 Amazon ALB, Amazon Linux 2The issue is that the Node.js API server in the above tech stack creates connections with a server with keep-alive true. The...
View ArticleHow to configure NGINX in AWS
I have set up k8s cluster in AWS ec2 instances with 1 parent and 2 child nodes using kops.Deployed 2 services and running with LoadBalancer service type in browser. Now I installed NGINX but through LB...
View Articlehow to stop s3fs from deleting files added to a mounted S3 bucket
Can s3fs-fuse be configured to synchronize the Linux filesystem [Amazon 2 EC2] to match what is in a mounted S3 Bucket..?It appears to do the opposite, files added to S3 via the console are being...
View ArticleIE doesn't work on my VPS even with enhanced security disabled
I am running a windows 2019 server with AWS. Internet Explorer doesn't work. I've disabled the enhanced security configuration but when I try to open after being brought to the softadmin page IE...
View ArticleDotnet core code sample for using DescribeInstancesAsync for getting AWS EC2...
I've used the AWS sample project with .NET Framework 4.6.1 and that had a DescribeInstances method which worked. When trying to move the sample code to ASP.NET Core I find that I have to use...
View ArticleAWS Restrict access from cloudfront to load balancer
I'm using Cloudfront with load balancing and ec2 instances.In AWS, my load balancer accepts traffic from all http connections. It is possible to restrict that to accept only http connections from my...
View ArticleUnable to connect to Spark UI on EMR
I have set up my SSH tunnel as per the instructions on the EMR console using ssh -i ~/SparkTest.pem -ND 8157 hadoop@ec2-52-1-245-67.compute-1.amazonaws.com. I have also set up FoxyProxy as per the...
View Articlecannot reach my laravel site on 8000 port on aws ec2 ubuntu 18.04 instance
I am a beginner for AWS. I have launched AWS, EC2, ubuntu 18.04 instance. Now i need to launch my laravel application with a sub domain with port 8000 as laravel default port is 8000. i have created a...
View Articlehow can i create lavalink server in es2 aws
lavalink is able to bind only on localhost ie if i use this config server: # REST and WS server port: 2333 address: 0.0.0.0 lavalink: server: password: "youshallnotpass" sources: youtube: true...
View ArticleHow to get list aws snapshot filtered by description string
How to retrieve snapshot list filtering by description of snapshot with a common string through AWS-SDK(Ruby).Here is ex 1. snapshot-id description 2. 1xxvfs snapdesp100 3. 2xxhgso snapdesp150 4....
View ArticleWhat is the difference between EC2 launch templates and AMI?
Both of them seem to do the same thing.. when should i use ec2-launch template and when should i use AMI i'm a bit confused.
View ArticleProper access policy for Amazon Elastic Search Cluster
I've recently started using the new Amazon Elasticsearch Service and I can't seem to figure out the access policy I need so that I can only access the services from my EC2 instances that have a...
View ArticleAutomatically attach and mount EBS volume on new EC2 instance
ScenarioI currently have an EC2 instance with a root EBS volume attached to it of 30gb and i have some files stored in that EBSIf i delete the EC2 instance and have delete on termination false then EBS...
View ArticleHow to mirror AWS traffic from container A into container B
I have an AWS traffic mirroring session that collects traffic from container A's ENI (elastic network interface) and sends it to container B's ENI.Inside A, /sys/class/net/eth0/iflink outputs '8', and...
View Article