• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
gwoods22

gwoods22

aws_eventbridge_toggler

Public
Like
aws_eventbridge_toggler
Home
Code
2
README.md
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
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
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.