AI / RenovateBot Interview Questions
How does Renovate handle Terraform and infrastructure-as-code updates?
Renovate's terraform manager updates provider versions, module versions, and the Terraform core version in .tf files.
# main.tf â Renovate detects and updates these terraform { required_version = ">= 1.5.0" required_providers { aws = { source = "hashicorp/aws" version = "~> 5.0" } } } module "vpc" { source = "terraform-aws-modules/vpc/aws" version = "5.1.2" }
{ "packageRules": [ { "matchManagers": ["terraform"], "matchPackageNames": ["hashicorp/aws"], "matchUpdateTypes": ["major"], "enabled": false }, { "matchManagers": ["terraform"], "matchUpdateTypes": ["minor", "patch"], "automerge": true } ] }
More Related questions...