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 October 2, 2025 17:04
Add resource to Crossplane provider

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

source: https://github.com/crossplane/upjet/blob/main/docs/adding-new-resource.md

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.

@martinflemingdev
martinflemingdev / import-pseudo-version.txt
Last active October 1, 2025 16:30
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