EC2 (Elastic Compute Cloud)
EC2 (Elastic Compute Cloud)
EC2 BASICS
EBS(Elastic Block Store) are network attached, not the physically attached to the host machine.
EBS Volume
Lambda Essentials:
import boto3
sns = boto3.client('sns')
def handler(event,context):
sns.publish(
PhoneNumber='+919980403905',
Message=(
'Hello how are you'
)
)
return 'success'
6. Here role will show the permission the role has attached to .Ex- CloudWatch and SNS . Click on Test Button.
7. Configure the test event with name TestEvent. Click on "Create" button.
1. Launch as instance :
Once we are deleting the instance the Volume attached will also get deleted:
1. Launch an EC2 instance with User data of : Under Advance option : paste the below code
#!/bin/bash
yum update -y
yum install -y httpd
service httpd start