4 Reasons You Cannot Ping Your AWS EC2 Instance and How To Fix Them

How to resolve ec2 public ip not working? This guide will explain how to use ping to diagnose an aws ec2 instance public IP not working. The overview is ensuring the public IP is allocated and the checking that your security group, NACL, and networking are configured corectly. How to ping ec2 instance when ping isn’t working? In this guide we will be review how to get ping working for your EC2 instance....

July 1, 2022 · 9 min · chart

AWS CDK: Place a Lambda function in specific subnets

I struggled for a while today to figure out how to place a lambda function inside of a given SubnetType of a VPC generated in the same CDK stack. To specify subnets for a lambda function it needs a SubnetSelection object passed in. I expected to find a method of ec2.VPC() which would give me an output with the type SubnetSelection but this doesn’t exist. After some reading of other people’s posts online I found an example which showed what I needed to do:...

January 27, 2021 · 1 min · chart