scottmuc / infrastructure

Documentation / Automation for personal third-party infrastructure
The Unlicense
11 stars 2 forks source link

Use Personal Account Token (PAT) for gandi access #70

Closed scottmuc closed 6 months ago

scottmuc commented 6 months ago

After upgrading to the 2.3.0 version of the terraform-provider-gandi a warning is now displayed when apply changes:

╷
│ Warning: Argument is deprecated
│
│   with provider["registry.opentofu.org/go-gandi/gandi"],
│   on init.tf line 17, in provider "gandi":
│   17:   key = var.gandi_api_key
│
│ use personal_access_token instead
│
│ (and one more similar warning elsewhere)

This lines up with the release notes for this version.

scottmuc commented 6 months ago

Summary

Very straightforward. The PAT has a mandatory expiry which will be a lot more secure too. Creating the PAT and storing it is done manually for now.