Skip to content

Instantly share code, notes, and snippets.

View martinflemingdev's full-sized avatar

Martin Fleming martinflemingdev

View GitHub Profile
@martinflemingdev
martinflemingdev / crossplane-resource-steps.md
Last active September 4, 2025 20:22
Add resource to Crossplane provider

Steps to Add a New Resource to an Upjet-based Crossplane Provider

1. Add External Name Configuration

Edit: config/externalname.go

Action:
Add an entry for your resource with either config.IdentifierFromProvider or config.TemplatedStringAsIdentifier, based on the import format described in the Terraform docs.

Reference:
Use the “Import” section from the Terraform Registry for the exact import path template.

@martinflemingdev
martinflemingdev / import-pseudo-version.txt
Last active September 4, 2025 20:23
TF update in go.mod using go pseudo version
UPDATE GO.MOD
How Go Module Pseudo-Versions Work
A pseudo-version follows this pattern:
v<major>.<minor>.<patch>-0.<yyyymmddhhmmss>-<commitHash>
git clone https://github.com/hashicorp/terraform-provider-google-beta.git
cd terraform-provider-google-beta