viernes, 16 de enero de 2026

Install oasdiff

Great tool to check openapi templates


go install github.com/oasdiff/oasdiff@latest

echo 'export PATH=$PATH:$HOME/go/bin' >> ~/.bashrc

source ~/.bashrc

oasdiff

lunes, 12 de enero de 2026

Configure the Terraform AWS provider to use a different AWS profile

To to configure the Terraform VSCode Extension to use a different AWS profile

Option 1: VS Code Settings (Recommended)

Open VS Code Settings (JSON) and add:

  1. Press Ctrl+Shift+P (or Cmd+Shift+P on Mac)
  2. Type "Preferences: Open User Settings (JSON)"
  3. Add this configuration:


{
"terraform.languageServer.terraform.path": "terraform",
"terraform.languageServer.enable": true,
"terminal.integrated.env.linux": {
"AWS_PROFILE": "profile-name"
}
}


jueves, 4 de diciembre de 2025

Terraform list block

 A way to query for bunch of resources.

Create a file name.tfquery.hcl :

list "aws_instance" "aws_instances" {
provider = aws
limit = 50
config {
region = "us-east-1"
}
}


 

Then run:

terraform query
Warning: list block(s) [list.aws_instance.APIGateways] returned 0 results.

The supported resource types:

terraform providers schema -json 2>/dev/null | jq -r '.provider_schemas."registry.terraform.io/hashicorp/aws".list_resource_schemas | keys[]' | sort
aws_batch_job_queue
aws_cloudwatch_log_group
aws_iam_policy
aws_iam_role
aws_iam_role_policy_attachment
aws_instance
aws_subnet
aws_vpc