refex
terraform-provider-aws
refex | terraform-provider-aws | |
---|---|---|
3 | 102 | |
14 | 9,467 | |
- | 0.6% | |
5.0 | 10.0 | |
7 months ago | 4 days ago | |
Python | Go | |
Apache License 2.0 | Mozilla Public License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
refex
-
Writing and Linting Python at Scale
As someone who worked on a similar tool (https://github.com/ssbr/refex/tree/main/refex/fix/fixers, I did a bunch of the work to prep this for open-sourcing, though I think all my contributions are hidden behind the "Google-internal" anonymization), having auto-applied or auto-appliable fixers like this is super useful.
They can be auto-applied by post-commit (e.g. a generic `git fixcommit` style command that runs all the relevant lint tools and fixes them in the working copy, letting you review before push), or applied during code review (automatic comments with a "click here to apply fix" interface), both of which are nice.
Plus the same underlying tooling can be used to write more complex one-off fixes that may be used for migrations or cleanups.
-
I learnt to use ASTs to patch 100,000s lines of python code
You might like Refex, which automates AST transformations like this:
-
Semgrep: Like Grep but for Code
There's lots of confusion about what semgrep does here, which is kind of unfortunate. I haven't touched it much, but I have built a very similar tool (I'm one of the contributors to refex[1], which is a very similar project).
The starting point of semantic grep is very useful. When you have a big codebase, you often want to detect antipatterns, or not even antipatterns, but just uses of a thing, say you're renaming a method and want to track down the callers.
Being able to act on the AST, instead of hoping you searched up all of the variants of whitespace and line breaks and, depending on the specific example, different uses of argument passing, is really useful.
But often when you're semantically grepping, your goal is to replace something with something else (this is what refex was initially built for: to aide in large scale changes in python, as a sort of equivalent to the C++ tools that Google uses).
But then you want to shift left even further: once you have a pattern that you want to replace once, you can just enforce that a linter yell at you when anyone does it again. So it's very natural to develop a linter-style thing on top of one of these[2].
This is, as I understand it sort of the same thing that happens in C++: clang-tidy and clang-format are written on top of AST libraries that can be used for ad-hoc analysis and transformations, but you can also just plug them into a linter.
The thing is, for most organizations, enforcing code style and best practices is more valuable than apply a refactoring to 10M lines of code, because most organizations don't have 10M lines of code to refactor. That doesn't mean that these tools aren't also useful for ad-hoc transforms and exploratory analysis. They absolutely are!
[1]: https://github.com/ssbr/refex
[2]: https://github.com/ssbr/refex/tree/main/refex/fix
terraform-provider-aws
-
Eliminate IPv4 tax on AWS, is it that easy?
API for IaaC: At least for Pulumi, it appears not all IPv6 settings are configurable. For example, I could not retrieve IPv6 automatically in the same way as IPv4 via Elastic IP, or I could not configure ICMPv6 ACL (a similar issue is reported in the Terraform repository).
-
How To Manage an Amazon Bedrock Agent Using Terraform
In this blog post, we will automate the deployment of the basic forex rate assistant in Terraform using the resources that were recently released in v5.47.0 of the Terraform AWS Provider. Let's start by looking at the AWS resources in the AWS Management Console.
-
How To Manage Amazon GuardDuty in AWS Organizations Using Terraform
⚠ There is currently an issue where the additional_configuration block order causes differences when applying the Terraform configuration without making any changes.
-
AWS EKS: From IRSA to Pod Identity With Terraform
For Terraform, instead, a new version of the AWS module supports a dedicated resource.
-
Authorization and Amazon Verified Permissions - A New Way to Manage Permissions Part XII: Terraform
If we check the support for the Terraform AWS Provider here (state for the date of publishing this article), we will see that the service is not yet fully supported. Last week, after more than half a year, support for creating a policy store was added. Additionally, we have the configuration to add template policies. However, the identity source is in the form of a PR draft, and there is no PR yet for the ability to create policies.
- 10 Ways for Kubernetes Declarative Configuration Management
- obsidian terraform code support (hcl)
-
HashiCorp silently amend Terraform Registry TOS
https://github.com/hashicorp/terraform-provider-aws/issues/3...
The size is what you get when you add every single AWS Go client into one binary.
Each service client like 1-2MB. But when you have 200 services....
-
Unveiling the Speed Mystery: Investigating Slow S3 Uploads from AWS EKS Pods
Issue with EC2 Instance Metadata running inside Container
-
A Cloud Development Troubleshooting Treasure Hunt
Well, at least we now have a promising lead. Some diligent googling and browsing through Github issues in the AWS provider project yielded no directly related findings. However, I did come across a few recent bug reports about the recent change AWS made regarding the treatment of public buckets. And interestingly, they described precisely the behavior I was encountering.
What are some alternatives?
pre-commit - A framework for managing and maintaining multi-language pre-commit hooks.
crossplane - The Cloud Native Control Plane
checkr - Custom static analysis rules for the lazy. Write project specific static analysis checks in a few lines of code.
terraform-provider-lastpass - Terraform Lastpass provider
tree-sitter-swift - Swift grammar for tree-sitter
cognito-custom-email-sender-lambda - AWS Cognito custom email sender Lambda trigger
ocaml-tree-sitter-semgrep - Generate parsers from tree-sitter grammars extended to support Semgrep patterns
rover - Interactive Terraform visualization. State and configuration explorer.
CCGrep - Code Clone Detector like grep
terraform-provider-opsgenie - Terraform OpsGenie provider
Bear - Bear is a tool that generates a compilation database for clang tooling.
terraform-provider-snowflake - Terraform provider for managing Snowflake accounts