New Skills

New Training: Schedule AWS Lambda Functions with Amazon EventBridge and PowerShell

by Team Nuggets
New Training: Integrate Amazon Polly Voiceovers to Your Business Applications with Python picture: A
Follow us
Published on March 24, 2021

In this 8-video skill, CBT Nuggets trainer Trevor Sullivan explores how to use the AWS Tools for PowerShell to manage Amazon EventBridge. Watch this new DevOps training.

Learn DevOps with one of these courses:

This training includes:

  • 8 videos

  • 1.3 hours of training

You’ll learn these topics in this skill:

  • Introduction to Amazon EventBridge and PowerShell Automation

  • Setting Up Development Environment for Amazon EventBridge Automation

  • Create AWS IAM User for EventBridge and Configure AWS Tools for PowerShell

  • Finding Commands in the Amazon EventBridge PowerShell Module

  • Create Amazon EventBridge Rule with PowerShell: Write-EVBRule

  • Create AWS IAM Role for EventBridge and Update Rule with PowerShell

  • Build Sample AWS Lambda Function for EventBridge Integration

  • Configure Lambda Resource Policy, Test Integration, and Clean Up

AWS EventBridge is the Perfect Tool to Create an Automated, Event-Driven Application Bus

AWS EventBridge is a powerful tool to create a serverless event bus for event-driven applications. With EventBridge, those event-driven applications can easily be scaled. EventBridge can also be used with other SaaS applications or AWS services.

What makes EventBridge so powerful is the ability to create custom events. These custom events can be created to work with a variety of AWS resources. For example, developers can create a marketing-specific event that could send an email newsletter campaign based on a certain set of conditions. In this way, EventBridge can be used to create a fully automated marketing email campaign stack. Of course, EventBridge can be used to automate other tasks as well.

It makes sense because EventBridge is used to automate applications that developers may want to interact with through the CLI. In this way, developers can create scripts that further automate processes with EventBridge. PowerShell is one of those command-line environments that can be used with EventBridge thanks to the AWS Tools for PowerShell package. The AWS Tools for PowerShell is a PowerShell package that integrates the AWS SDK into the PowerShell environment, and PowerShell is the perfect shell environment for interacting with AWS since it can treat data as objects instead of generic strings.

Let's take a quick look to see how to get started with EventBridge in PowerShell.

Creating or updating an EventBridge rule in AWS through PowerShell is easy. Use the Write-EVBRule cmdlet to perform this action.

The Write-EVBRule rule includes 11 additional flags, not including the regional and authorization flags included with all AWS Tools for PowerShell cmdlets. Note that the Name flag is required when using this cmdlet. The rest of the flags are optional.

The EventBridge suite of cmdlets for PowerShell can do more than create or update rules in EventBridge, too. For example, developers can do the following with PowerShell:

  • Manage tags for resources

  • Disable rules

  • List and describe archives

  • List and manage partner events

  • Manage archives

  • Manage permissions

With these additional cmdlets developers can create an entirely automated serverless stack. Events in EventBridge can be created as both cron-based timed services as well as events that act when a pattern of incoming data matches a defined schema for an event.


Download

By submitting this form you agree to receive marketing emails from CBT Nuggets and that you have read, understood and are able to consent to our privacy policy.


Don't miss out!Get great content
delivered to your inbox.

By submitting this form you agree to receive marketing emails from CBT Nuggets and that you have read, understood and are able to consent to our privacy policy.

Recommended Articles

Get CBT Nuggets IT training news and resources

I have read and understood the privacy policy and am able to consent to it.

© 2024 CBT Nuggets. All rights reserved.Terms | Privacy Policy | Accessibility | Sitemap | 2850 Crescent Avenue, Eugene, OR 97408 | 541-284-5522