FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
gwoods22
gwoods22aws_eventbridge_toggler
Public
Like
aws_eventbridge_toggler
Home
Code
2
README.md
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
Settings
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
Sign up now
Code
/
Code
/
Search
README.md

AWS EventBridge Toggler

Script that allows you to enable and disable AWS EventBridge rules

Setup

  1. In AWS go to the IAM and create a new IAM user for Val Town

  2. On the Set permissions page, choose the permissions you require. To get this Val up and running you can attach the AmazonEventBridgeFullAccess policy but it's recommended to limit your permissions.

    The following policy allows for reading and toggling any EventBridge rule:

    { "Version": "2012-10-17", "Statement": [ { "Sid": "VisualEditor0", "Effect": "Allow", "Action": [ "events:DescribeRule", "events:EnableRule", "events:DisableRule" ], "Resource": "*" } ] }
  3. Finally add your AWS region as well as yourAccess Key ID and Secret Access Key from your IAM user to Val Town's environment variables as AWS_REGION, AWS_ACCESS_KEY_ID, and AWS_SECRET_ACCESS_KEY

Code
README.mdmain.tsx
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.