Yor is a powerful open-source tool that automates the process of adding informative and consistent tags across different infrastructure as code (IaC) frameworks, such as Terraform, CloudFormation, and Serverless Frameworks. By implementing Yor, developers can easily manage and organize their infrastructure code with effective tagging strategies. This article will guide you through the installation, usage, and troubleshooting of Yor.
Table of Contents
Getting Started
Yor simplifies the tagging process for your IaC frameworks. Below, we’ll discuss how to install and utilize Yor in your projects.
Installation
To get started with Yor, you need to install it based on your operating system.
For MacOS/Linux
brew tap bridgecrewio/tap
brew install bridgecrewio/tap/yor
For Windows
choco install yor
For Docker
docker pull bridgecrew/yor
Usage
Using Yor is simple. Imagine you’re a librarian categorizing books in a huge library. You need to ensure that every book has a label that indicates its genre, author, and other vitally important details. This is similar to what Yor does for your IaC resources.
Here is how you apply the tags with Yor:
yor tag --directory terraform
This command navigates through your specified directory (like searching through bookshelves) and applies all relevant tags to the files that fall under the Terraform framework.
Advanced Tagging Techniques
- Custom Tags: Apply key-value tags as needed.
- Dry Run: Preview what tags will be applied without making any changes to your files.
- Skip Tags: Exclude certain paths from tagging.
Here’s a quick example to see Yor in action with a dry run:
yor tag -d . --dry-run
Support
If you encounter any troubles or have questions, you can join the community at Slack for support and advice.
Customizing Yor
You can customize Yor further by defining specific tagging rules and configurations that cater to your workflow needs. Refer to the documentation for detailed instructions.
Troubleshooting
In case you run into issues while using Yor, consider checking the following:
- Ensure that Yor is correctly installed by running
yor --version. - Check if your IaC files are correctly formatted and accessible.
- Look for any skipped paths or inline annotations that might prevent tagging.
For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.
At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.

