التخطي إلى المحتوى الرئيسي

المشاركات

عرض الرسائل ذات التصنيف AWS

Lambda , S3 Integration

 Lambda , S3 Integration: Lambda : it is server-less  service to perform dynamic operation under multiple S3 Services . it provide set of methods and API to communicate with various services without using resource. Task 1: Connect S3 to lambda to show bucket name, filename and file content when we upload file into s3: 1)  Edit Existing Role of Lambda with S3 { "Version": "2012-10-17", "Statement": [ { "Sid": "Statement1", "Effect": "Allow", "Action": [ "s3:GetObject", "s3:ListBucket" ], "Resource": [ "arn:aws:s3:::s3lambdapracticeindore/*" ] } ] } 2)  Code of S3 method to display content of S3 bucket file: import json import boto3 import os def lambda_handler ( event , context ):     bucket_name = event[ 'Records' ][ 0 ][ 's3' ][ 'bucket' ][ 'name' ]     object_key = event[ 'R...

What is Route53?

  Step 1: What is Route 53? (Classroom Explanation) Route53 is intermediate service of AWS that connect custom domain to AWS Instance. Domain provide path or url such as www.google.com is the domain and int point to google.com server. We should always integrate hosting server as a nameserver property under domain name. create free domain https://freedomain.one/Direct.sv?cmd=userDomainPanel&domainname=codemugindore.work.gd #!/bin/bash sudo yum update -y # Install Apache web server (httpd) sudo yum install -y httpd sudo systemctl start httpd sudo systemctl enable httpd # Create a simple HTML file to verify the web server is running echo "<html><h1>Welcome to Apache Web Server on Amazon Linux!</h1></html>" > /var/www/html/index.html "Imagine the internet is a giant city, and every website is a house with a unique address (IP address, like 192.0.2.1). But these addresses are hard to remember, so we give houses names—like ' www.example.co...

What is EKS in AWS | How it works explained step by step tutorials

 What is EKS in AWS | How it works explained step by step tutorials: Amazon Elastic Kubernetes Service (EKS) is a managed service that makes it easy to run Kubernetes on AWS without needing to install, operate, and maintain your own Kubernetes control plane. Here's a step-by-step guide to help you understand how it works: Step-by-Step Tutorial 1. Set Up Your AWS Account Ensure you have an AWS account and the necessary permissions to create and manage resources. 2. Install AWS CLI and kubectl AWS CLI : Install the AWS Command Line Interface (CLI) to interact with AWS services. kubectl : Install kubectl , a command-line tool for running commands against Kubernetes clusters. 3. Create an IAM Role for EKS Create an IAM role that EKS will use to access other AWS services. 4. Create a VPC (Virtual Private Cloud) Use CloudFormation or the AWS Management Console to create a VPC where your EKS cluster will reside. 5. Create an EKS Cluster Using AWS Management Console : Navigate to the EKS s...

Create CI-CD Pipeline using codepipeline, github, codebuild, codedeploy,s3

 Create CI-CD Pipeline using codepipeline, github, codebuild, codedeploy,s3: This article provide simple pipeline to deploy static website from github to s3 bucket using codepipeline services of aws. Step1st: Create github repository and upload normal web site  (index.html,style.css) Step2nd: create iam role  name as codepipelinerole add (codebuildaccess, codepipelineaccess,s3fullaccess) Add Inline Cloudwatch Policy { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "logs:CreateLogGroup", "logs:CreateLogStream", "logs:PutLogEvents" ], "Resource": "arn:aws:logs:us-east-1:060795909285:log-group:/aws/codebuild/*" } ] } Step3rd: create s3 bucket and unblock public access and enable static website option and add policy to GETBucket & putobject. {     "Version": "2012-10-17",     "Statemen...

Complete Tutorial for Elastic Beanstalk | AWS Tutorial by Shiva Concept

  What is AWS Elastic Beanstalk? AWS Elastic Beanstalk is a fully managed service that makes it easy to deploy, manage, and scale web applications and services. You can simply upload your code, and Elastic Beanstalk automatically handles the deployment, from capacity provisioning, load balancing, and auto-scaling to application health monitoring. Step-by-Step Guide to AWS Elastic Beanstalk Step 1: Set Up Your AWS Environment Create an AWS Account : If you don't have an AWS account, sign up for one . Sign in to AWS Management Console : Go to the AWS Management Console and sign in with your credentials. Step 2: Create an Elastic Beanstalk Environment Open Elastic Beanstalk Console : Navigate to the Elastic Beanstalk console . Click on "Create New Application". Name Your Application : Enter a name for your application and click "Create Application". Create an Environment : Click on "Create Environment" and choose "Web Server Environment". Click...

Complete Tutorial for Amazon Simple Queue Service (SQS) in AWS | #shivaconceptsolution

  Complete Tutorial for Amazon Simple Queue Service (SQS) in AWS Introduction Amazon Simple Queue Service (SQS) is a fully managed message queuing service that enables you to decouple and scale microservices, distributed systems, and serverless applications. SQS eliminates the complexity and overhead associated with managing and operating message-oriented middleware, and empowers developers to focus on differentiating work 1. Getting Started with Amazon SQS Sign in to AWS Management Console: Go to the AWS Management Console and sign in with your credentials. Navigate to Amazon SQS: In the AWS Management Console, search for "Amazon SQS" and select it. Create a Queue: Click on "Create Queue" and provide a name for your queue. Choose the appropriate queue type (Standard Queue or FIFO Queue) based on your requirements. Configure additional settings such as visibility timeout, message retention period, and dead-letter queue (optional). Click "Create" to create ...

SNS Tutorials

SNS Tutorials Amazon Simple Notification Service (SNS) is a fully managed messaging service provided by AWS (Amazon Web Services) that enables you to send messages, notifications, or alerts from various sources to a large number of subscribers. SNS supports multiple communication protocols such as HTTP, HTTPS, email, SMS, and AWS Lambda. Key Features of SNS: Topic-Based Publish/Subscribe Model: SNS uses topics to logically group messages and send them to multiple subscribers. Multiple Protocol Support: SNS supports various protocols including HTTP, HTTPS, email, SMS, and AWS Lambda functions. Scalability: SNS can handle large volumes of messages, making it suitable for applications that require high-throughput messaging. Message Filtering: SNS allows you to filter messages based on attributes, enabling subscribers to receive only the relevant messages. Mobile Push Notifications: SNS can send messages to mobile devices through services like Apple Push Notification Service (APNS) and Goo...

DynamoDb CRUD Operation Code using Lambda

Utilizing DynamoDB with AWS Lambda and Boto3 Presentation DynamoDB is a completely overseen NoSQL information base help given by AWS that supports key-worth and report information structures. AWS Lambda is a serverless process administration that runs your code because of occasions and consequently deals with the fundamental register assets. Boto3 is the Amazon Web Administrations (AWS) SDK for Python, which permits Python designers to compose programming that utilizes administrations like Amazon S3, Amazon EC2, and DynamoDB. Setting Up 1. Make a DynamoDB Table To begin with, make a DynamoDB table to store your information. You can do this utilizing the AWS The executives Control center or automatically utilizing Boto3. Model: Making a Table Utilizing Boto3 python import boto3 # Make a DynamoDB client dynamodb = boto3.client('dynamodb') # Make a table dynamodb.create_table(     TableName='Students',     KeySchema=[         {       ...

IAM in AWS | What is Roles | What is Policy | What is Users | What is Group

 IAM in AWS | What is Roles | What is Policy | What is Users | What is Group: In this article i will discuss about IAM(Indetity and Access Management in AWS) with step by step process: AWS Identity and Access Management (IAM) is a key component for securely managing access to AWS services and resources. By learning IAM, you gain control over user permissions and roles, helping maintain a secure environment and ensuring users can only access what they’re authorized for. Here's a structured guide to understanding AWS IAM, followed by practical assignments to reinforce learning. 1. What is IAM in AWS? IAM (Identity and Access Management) is a service that enables you to control access to AWS resources securely. IAM helps you: Create and manage AWS users and groups. Control access permissions for each user or group. Define policies that grant or deny specific AWS service access. 2. How IAM Works IAM works by using policies to define permissions: User: A person or application accessing...

S3 Complete Tutorials in AWS

  1. Introduction to S3 What is S3? Amazon Simple Storage Service (S3) is a cloud-based storage service. You can use it to store any type of data, like documents, images, or videos. Key Features of S3: Scalable: Handles any amount of data. Secure: Supports encryption and access controls. Durable: Stores multiple copies across regions. Accessible: Access data via HTTP/HTTPS protocols. Use Cases: Backup and Restore Storing static website files (HTML, CSS, JavaScript) Hosting media files for apps or websites 2. How to Create an S3 Bucket An S3 bucket is like a folder to store data. Let’s create one! Login to AWS Console: Open https://aws.amazon.com . Search for "S3" in the search bar and open the service. Create Bucket: Click Create Bucket . Enter a bucket name (must be unique across AWS). Select the Region where the data will be stored. Block Public Access: Choose whether the bucket is private or public. Leave Defaults: Keep other settings as they are for now. Click ...