I hereby claim:
- I am tamarabartlett on github.
- I am tamarabartlett (https://keybase.io/tamarabartlett) on keybase.
- I have a public key ASBP3ENLdOKm5v4WiNZYOeftjLjclOpoKqT-ieFdjBi0JAo
To claim this, I am signing this object:
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "Create a security group for EC2 instances", | |
"Resources" : { | |
"PingAndSshSecurityGroupStelligentBlog" : { | |
"Type" : "AWS::EC2::SecurityGroup", | |
"Properties" : { | |
"GroupDescription" : "Security group that does not allow ping", | |
"SecurityGroupIngress" : [ | |
{ "IpProtocol" : "tcp", "FromPort" : "22", "ToPort" : "22", "CidrIp" : "0.0.0.0/0" } |
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "Create a single EC2 instance in AWS", | |
"Resources" : { | |
"InstanceOneStelligentBlog" : { | |
"Type" : "AWS::EC2::Instance", | |
"Properties" : { | |
"InstanceType" : "t1.micro", | |
"SecurityGroupIds" : ["this-is-the-security-group-output"], | |
"ImageId" : "ami-7f77b31f", |
ping -c 1 $1 > /dev/null 2>&1 | |
RETVAL=$? | |
if [ $RETVAL -eq 0 ]; | |
then | |
echo "Test Passed" | |
else | |
echo "Test Failed" | |
fi |
$ scp -i stelligent-blog-test.pem ping-test.sh ec2-user@public-DNS-from-aws-console:~/ |
$ ssh -i "stelligent-blog-test.pem" ec2-user@public-DNS-from-aws-consoleRed |
$ ./ping-test.sh public-DNS-of-the-other-ec2-instance-from-aws-console |
"SecurityGroupIngress" : [ | |
{ "IpProtocol" : "tcp", "FromPort" : "22", "ToPort" : "22", "CidrIp" : "0.0.0.0/0" }, | |
{ "IpProtocol" : "icmp", "FromPort" : "-1", "ToPort" : "-1", "CidrIp" : "0.0.0.0/0" } | |
] |
I hereby claim:
To claim this, I am signing this object: