Code Monkey home page Code Monkey logo

aws_hands_on_3's Introduction

Hands on Contd

AWS SQS

Creation of queue in SQS

aws-9

Queue successfully created

aws-10

Queue access policy

aws-11

Creation of an event notification in S3 to connect to the SQS Queue

aws-12

SQS Policy to allow the sending of information

{
  "Version": "2012-10-17",
  "Id": "example-ID",
  "Statement": [
    {
      "Sid": "__owner_statement",
      "Effect": "Allow",
      "Principal": {
        "Service": "s3.amazonaws.com"
      },
      "Action": "SQS:SendMessage",
      "Resource": "arn:aws:sqs:us-east-1:058264276076:DemoQueue",
      "Condition": {
        "StringEquals": {
          "aws:SourceAccount": "058264276076"
        },
        "ArnLike": {
          "aws:SourceArn": "arn:aws:s3:*:*:demo-mide-bucket"
        }
      }
    }
  ]
}

Event notification successfully created

aws-13

Then we can now poll messages we got from the S3

aws-14

Creation of a DLQ

aws-15

aws-16

DLQ redrive hands on

aws-17

DelayQueue in action delaying the sending of message to consumers for 10 seconds

aws-17

Long Polling technique to increase a message wait time

aws-18

Creation of a FIFO Queue with message deduplication enabled

aws-19

Creating an AWS SNS topic named MyFirstTopic using Standard instead of FIFO

aws-20

Email from the subscription I recently created

aws-21

Successfully confirmed subscription

aws-22

Publishing a message using MyFirstTopic SNS topic after just creating a subscription

aws-23

Successfully recieved into my message

aws-24

Creation of Kinesis data stream shard

aws-25

Exisiting Cloudwatch log groups

aws-26

aws-27

Creation of a metric filter

aws-28

Assigning of Metric Filter

aws-29

Our metric filter is finally created

aws-30

Cloud tail running on the log group stream

aws-1

Creation of an EC2 instance to use a cloudwatch alarm

aws-2

Selecting of metric for the cloudwatch alarms

aws-3

The EC2 action for alarm in case it gets triggered

aws-4

The cloudwatch alarm has been finally created

aws-5

Creation of an event bus from amazon eventbridge

aws-6

Creation of eventbridge source to connect with partners such as salesforce, adobe, datadog and so on

aws-7

Creation of a rule for the aws eventbridge

aws-8

Event rules pattern for the EC2 Instance State Change Notification

aws-9

{
  "version": "0",
  "id": "7bf73129-1428-4cd3-a780-95db273d1602",
  "detail-type": "EC2 Instance State-change Notification",
  "source": "aws.ec2",
  "account": "123456789012",
  "time": "2015-11-11T21:29:54Z",
  "region": "us-east-1",
  "resources": ["arn:aws:ec2:us-east-1:123456789012:instance/i-abcd1111"],
  "detail": {
    "instance-id": "i-abcd1111",
    "state": "stopped"
  }
}

Finally the event rule has been created

aws-10

When it comes to debugging especially on the production, it is kind of tedious, that is where the X-ray comes into place

With X-ray,

  • You can understand troubleshooting performance
  • Understand the microservices architecture
  • Find errors and exceptions
  • Know which users are imapacted by our error
  • X-ray is compatible with EC2, lambda and several other AWS services.

Creation of a cloudformation stack to use with the X-ray

image

Selecting of subnets and VPCs

image

The result of the cloudformation stack being created

image

While playing the game, X-ray generated the service map, here is the map

image

The insights and analytics

image

Deletiing of stacks to prevent it from running all the time

image

A defualt sampling rule has been created for us by the X-ray

image

Total event history of all API calls I made from cloutrail

image

Creation of a new lambda function using the python 3.10

image

Creation of a test for the lambda function just created

image

image

Making use of the aws lambda list functions to list the functions we have from the cloudshell

aws lambda list-functions

image

aws_hands_on_3's People

Contributors

ham12-3 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.