22
OpsJAWS Meetup #3 ~ CloudWatch Events ~ Amazon Web Services Japan パートナー ソリューション アーキテクト Sakatoku Tomoaki

Ops jaws meetup#3

Embed Size (px)

Citation preview

  • OpsJAWSMeetup #3~ CloudWatch Events ~

    Amazon Web Services Japan

    Sakatoku Tomoaki

  • ( )

    ISV

    AWSAWS CouldWatch Events

  • CloudTrail Update

  • CloudTrail

    http://aws.typepad.com/aws_japan/2015/12/aws-cloudtrail-update-turn-on-in-all-regions-use-multiple-trails.html

  • Amazon Elasticsearch Service Elasticsearch

    Kibana

    CloudWatch Logs

    CloudWatch Logs Elasticsearch Service

  • Kibana

  • CloudTrail

    Config

    CloudWatch Logs

    S3 Access Logs

    ELB

    Amazon Elastic ServiceLambda

    VPC Flow Log

    S3

    Kinesis

    AWS log management

    CloudFront

    OS / APP

  • CloudWath Events

    CloudWatch AWS

    / /

    CloudWatch Logs AWS/OS/APP

    CloudWatch Events AWS

  • AWSPolling- DescribeInstances- DescribeVolumes- ListQueues

  • CloudWatch Events

    CloudWatch Events () ()

  • CloudWatch Events

    API

    (AWS Lambda)

  • CloudWatch Events ()

  • EC2 Instance states change notification Pending/Running/Shutting down/Stopped/Stopping/Terminated

    Schedule (Minites)/(Hours)/(Days)

    AWS API call AWS CloudTrail

    AWS console sign-in Auto Scaling

    Launch Successful/Launch Unsuccessful/Terminate Successful/Terminate Unsuccessful

  • Lambda Function SNS Topic Kinesis Stream Built-in target

    EBS EC2 EC2 EC2

  • CloudWatch Event User accounts

    IAM events:*, iam:PassRole

    AWS CloudTrail logging AWS API call

    CloudTrail

    AWS Security Token Service

    ()

    {"Version": "2012-10-17","Statement": [

    {"Action": [

    "events:*","iam:PassRole"

    ],"Effect": "Allow","Resource": "*"

    }]

    }

  • CloudWatch Events CloudWatch Event

    (AWS Lambda)CloudWath LogsLambda Function

    IDconsole.log(event.detail['instance-id']); i-4f181eaconsole.log(event.detail.state); runningconsole.log(event.region); ap-northeast-1

  • 100$1.00***** Each 64KB of payload (rounded up) is billed as one custom event. For example, a single custom event with a 256KB payload will be billed as four custom events. A single custom event with a 65KB payload will be billed as two custom events.

    https://aws.amazon.com/cloudwatch/pricing/?nc1=h_ls

  • DEMO

  • EC2!!!

  • AMI Details Instance Type Security Groups Instance Details Storage Tags

    Name CostCenter

    Tags Name:opsjaws CostCenter:123

    Tags Name:opsjaws CostCenter:123

    Demo: EC2!!!

    CostCoster

  • 2OpsJAWS Meetup#4

    DoorKeeperhttps://opsjaws.doorkeeper.jp/

  • AWS Partner SATips

    http://aws.typepad.com/aws_partner_sa/2015/06/aws-ops.html

    DoorKeeper: OpsJAWS https://opsjaws.doorkeeper.jp/

    OpsJAWS