Posts

Learn AWS security cryptography

 Security based on Key or cryptography. known as KMS key. KMS Service - Encryption many service depends on this encryption. Or key. managed by KMS. Cryptography - secure writing. locking is known as encryption. , that data is know is cipher text. for unlocking need the same key. using the same key for encryption and decryption is known as symmetric key. AES is the algorithm used widely. Asymmetric key algorithm. - one is private and another is public key. HSM Appliances - Hardware security modules. AWS is having "aws cloud hsm"

Learn with me AWS

 Lambda, | cloud watch | API - Gateway are some of the serverless service. why we need the OS, to run a code . we took the example for web app.  Write a code in php language. if we need to run php then we need the php interpretor the code work as webapp  in php, so we need to setup a webserver also . if we need to run the application in EC2 - technically in real world we need to do many things. Plan is => Launch EC2 Instance =>  lambda function. import json def lambda_handler(event, context):     # TODO implement     return {          'statusCode': 200,           'body': json.dumps('Hello from manickaSundaram!')     } API Gateway :-  what is APIgateway.  Compare it with google search . contact to google by - google.com but it goes to google.com/search so here "search" is the program(code) that is running. in google server. its an interface to run the program search  i...

Launching EC2 Instance - Using Python inside lambda function.

This POST discuss about launching EC2 instance in AWS using python code in lambda. all the code written in Italic Written using "anaconda and Jupyter Notebook" Steps for Writing python code for launching AWS instance. import json import boto3 def lambda_handler(event, context):     myec2 = boto3.resource(         service_name = "ec2",         aws_access_key_id = "",         aws_secret_access_key = "",         region_name = "ap-south-1",         verify = False         )     myos = myec2.create_instances(         ImageId= "ami-0cc9838aa7ab1dce7",          InstanceType= "t2.micro",         MaxCount= 1,         MinCount= 1         )      print(myos[0].id)              # TODO implement     re...