Rory  West

Rory West

1619248500

AWS SNS/Lambda with MS Teams

I have a setup where I use Jenkins as a CI tool to build and test docker image and then push it to ECR and deploy to ECS service using Code Deploy Blue Green.

The problem is I cannot use Jenkins’ office365ConnectorSend to announce to the developers that the ECS has been deployed. It is because Jenkins runs the AWS deploy command line and running the command line doesn’t mean the new services is deployed immediately. Those familiar with code deploys know that blue-green deployment takes a while, so the HTTP call has to come from AWS SNS/Lambda which is a more reliable source of information. From CodeDeploy you can accurately tell your developers has code deploy started, succeeded or failed.

#aws-sns #aws #aws-lambda

What is GEEK

Buddha Community

AWS SNS/Lambda with MS Teams
Rory  West

Rory West

1619248500

AWS SNS/Lambda with MS Teams

I have a setup where I use Jenkins as a CI tool to build and test docker image and then push it to ECR and deploy to ECS service using Code Deploy Blue Green.

The problem is I cannot use Jenkins’ office365ConnectorSend to announce to the developers that the ECS has been deployed. It is because Jenkins runs the AWS deploy command line and running the command line doesn’t mean the new services is deployed immediately. Those familiar with code deploys know that blue-green deployment takes a while, so the HTTP call has to come from AWS SNS/Lambda which is a more reliable source of information. From CodeDeploy you can accurately tell your developers has code deploy started, succeeded or failed.

#aws-sns #aws #aws-lambda

Trigger the alert message to MS-Team using AWS SNS and Lambda function

AWS offers many services to manage your infrastructure as well as monitor what happening with the services. You can alert the error message either to Email or SMS or other services.

In this article, I would like to share how to send the message to Microsoft-Team from AWS Cloudwatch alert with SNS and push to the Lambda function. So let’s get started. We are going to:

  • Create the Cloudwatch alarms are sending messages to SNS
  • Create a lambda function with Python programming language
  • Configure lambda which is triggered by the SNS topic
  • Add the ‘Incoming Webhook’ connector to our Teams channel
  • Add the webhook URL as an Environment variable to the lambda
  • Test out the lambda

Create SNS

  • Amazon SNS
  • Topic → Create topic

Image for post

#aws-sns #aws #msteams #lambda #python

Chet  Lubowitz

Chet Lubowitz

1595429220

How to Install Microsoft Teams on Ubuntu 20.04

Microsoft Teams is a communication platform used for Chat, Calling, Meetings, and Collaboration. Generally, it is used by companies and individuals working on projects. However, Microsoft Teams is available for macOS, Windows, and Linux operating systems available now.

In this tutorial, we will show you how to install Microsoft Teams on Ubuntu 20.04 machine. By default, Microsoft Teams package is not available in the Ubuntu default repository. However we will show you 2 methods to install Teams by downloading the Debian package from their official website, or by adding the Microsoft repository.

Install Microsoft Teams on Ubuntu 20.04

1./ Install Microsoft Teams using Debian installer file

01- First, navigate to teams app downloads page and grab the Debian binary installer. You can simply obtain the URL and pull the binary using wget;

$ VERSION=1.3.00.5153
$ wget https://packages.microsoft.com/repos/ms-teams/pool/main/t/teams/teams_${VERSION}_amd64.deb

#linux #ubuntu #install microsoft teams on ubuntu #install teams ubuntu #microsoft teams #teams #teams download ubuntu #teams install ubuntu #ubuntu install microsoft teams #uninstall teams ubuntu

Cross-account access to invoke AWS lambda using AWS CDK

If you are here, you may have a pretty good knowledge of how to use AWS CDK for defining cloud infrastructure in code and provisioning it through AWS. So let’s get started on how to grant permission to your lambda function to access the resources in another AWS account.

Let’s say you have two accounts called Account A and Account B, and you need to give permission to lambda function in Account A (ex: 11111111)to access the resources in Account B(22222222). You can easily do this by assuming an IAM Role in Account B and then uses the returned credentials to invoke AWS resources in Account B.

#acces #account #aws #lambda #aws lambda #aws cdk

Royce  Reinger

Royce Reinger

1615363132

Sending SMS with AWS Lambda and SNS

Let’s send SMS notifications with Lambda and SNS to a Phone Number.

Image for post

Amazon Simple Notification Service (Amazon SNS) is a web service that makes it easy to set up, operate, and send notifications from the cloud. It is a managed pub/sub messaging service.

Sometimes your applications need to send some notification to your phone number, right? Let’s say maybe an OTP or confirmation code. AWS SNS is capable of doing that.

In this article, we will send an SMS with a message to a specified phone number using Lambda.

Prerequisites

  1. Working AWS Account
  2. AWS Management Console Access

Using Lambda we can directly call SNS APIs to send notifications to your phone numbers if the lambda has enough permissions to do so.

Services Used

  1. AWS Lambda
  2. SNS
  3. IAM

#aws-sns #serverless #aws-lambda #aws