Giter Site home page Giter Site logo

aws-chatbot-for-end-user-computing's Introduction

Monitor and automate AWS End User Computing(EUC) with AWS Chatbot

This serves as README for the blogpost Monitor and automate Amazon EUC with AWS Chatbot on the AWS Desktop and Application Streaming channel.

Architecture diagram

Prerequisites

  1. AWS account with access to the console and CLI and permissions to create CloudFormation stacks, Lambda functions, SNS topics, IAM roles, IAM policies, and CloudWatch alarms.
  2. Microsoft Teams or Slack information.
    1. Microsoft Teams
      • Note down the Tenant ID, Team ID and Channel ID. Refer to the screenshots below. Channel Link IDs
    2. Slack
      • Note down the Slack Workspace and Channel ID from browser. Refer to the screenshots below. Slack IDs

Setup Process

  1. To configure a Slack chat client, follow the instructions in Step 1: Setting up AWS Chatbot with Slack. https://docs.aws.amazon.com/chatbot/latest/adminguide/slack-setup.html
    1. Follow steps 1 to 5.
    2. Add AWS Chatbot to the Slack channel by following step 14.
  2. To configure a Microsoft Teams client, follow the instructions in Step 1: Setting up AWS Chatbot with Microsoft Teams. https://docs.aws.amazon.com/chatbot/latest/adminguide/teams-setup.html#teams-client-setup
    1. Follow steps 1 to 5.
    2. Add AWS Chatbot to your team by following step 14.
  3. Create Lambda deployment packages by creating zip archives of the four python files in the source directory.
    1. Download the four python and the yaml file in the source directory https://github.com/aws-samples/aws-chatbot-for-end-user-computing/tree/main/source
    2. Create zip archives of the four python files. zip chatbot_cost_explorer01.py.zip chatbot_cost_explorer01.py && zip chatbot_launchtime_checks01.py.zip chatbot_launchtime_checks01.py && zip chatbot_unhealthy_workspace_checks01.py.zip chatbot_unhealthy_workspace_checks01.py && zip chatbot_workspace_latency_checks01.py.zip chatbot_workspace_latency_checks01.py
    3. The zip archives must be named as chatbot_cost_explorer01.py.zip, chatbot_launchtime_checks01.py.zip, chatbot_unhealthy_workspace_checks01.py.zip and chatbot_workspace_latency_checks01.py.zip.
  4. Create an S3 bucket in the EUC account and upload zip archives you created in the previous step along with the chatbot.yaml file. The files should appear in the bucket as S3BucketName/chatbot_cost_explorer01.py.zip. Contents in S3 Bucket
  5. Take note of the S3 Object URL of the chatbot.yaml cloudformation template and the name of the bucket. For example: https://BucketName.s3.Region.amazonaws.com/chatbot.yaml
  6. In the EUC AWS account, navigate to the CloudFormation console and create a new stack using the S3 Object URL of the chatbot.yaml file and the S3 bucket name.
  7. The required resources for the Chatbot service, such as the SNS topic, IAM role, IAM policy, and Lambda functions, will be created.

The template creates the following resources:

Resource Name Type
ChatbotServicePolicy AWS::IAM::ManagedPolicy
ChatbotServiceRole AWS::IAM::Role
EUCChatbotExecutionRole AWS::IAM::Role
EUCChatbotTopic AWS::SNS::Topic
LatencyCheckFunction AWS::Lambda::Function
LaunchTimeCheckFunction AWS::Lambda::Function
UnHealthyWorkSpacesCheckFunction AWS::Lambda::Function
CurrentEUCBillCheckFunction AWS::Lambda::Function

Understanding AWS chabot permissions

This solution creates an IAM role and policy for the AWS chatbot to interact with resources in your account. Please review and make amendments to IAM and guardrail policies if required to adhere to your organisation's security posture. Refer https://docs.aws.amazon.com/chatbot/latest/adminguide/understanding-permissions.html

License

This library is licensed under the MIT-0 License. See the LICENSE file.

aws-chatbot-for-end-user-computing's People

Contributors

amazon-auto avatar arunpc1711 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

dumulnet

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.