diff --git a/.!18244!terraform-provider-immich b/.!18244!terraform-provider-immich new file mode 100755 index 0000000..e69de29 diff --git a/README.md b/README.md index 1469cb6..f617f67 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,13 @@ A Terraform/OpenTofu provider for managing [Immich](https://immich.app/). +This provider and its documentation were developed with the assistance of Gemini, an AI assistant from Google. + Immich is a high-performance self-hosted photo and video management solution. This provider allows you to manage users, API keys, albums, and shared links programmatically. ## Documentation -Full documentation for the provider can be found on the [Terraform Registry](https://registry.terraform.io/providers/immich-app/immich/latest/docs). +Full documentation for the provider can be found on the [Terraform Registry](https://registry.terraform.io/providers/tfmm/immich/latest/docs). ## Requirements @@ -21,7 +23,7 @@ To use this provider, add the following to your Terraform configuration: terraform { required_providers { immich = { - source = "registry.terraform.io/immich-app/immich" + source = "registry.terraform.io/tfmm/immich" } } } diff --git a/docs/data-sources/activities.md b/docs/data-sources/activities.md index cb831f2..c709a92 100644 --- a/docs/data-sources/activities.md +++ b/docs/data-sources/activities.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "immich_activities Data Source - terraform-provider-immich" +page_title: "immich_activities Data Source - immich" subcategory: "" description: |- Retrieves a list of activities for an album or asset. diff --git a/docs/data-sources/albums.md b/docs/data-sources/albums.md index 4c421e0..5197ad3 100644 --- a/docs/data-sources/albums.md +++ b/docs/data-sources/albums.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "immich_albums Data Source - terraform-provider-immich" +page_title: "immich_albums Data Source - immich" subcategory: "" description: |- Retrieves a list of all Immich albums. diff --git a/docs/data-sources/libraries.md b/docs/data-sources/libraries.md index b8cc230..5ed4e20 100644 --- a/docs/data-sources/libraries.md +++ b/docs/data-sources/libraries.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "immich_libraries Data Source - terraform-provider-immich" +page_title: "immich_libraries Data Source - immich" subcategory: "" description: |- Retrieves a list of all Immich libraries. diff --git a/docs/data-sources/server_info.md b/docs/data-sources/server_info.md index 96ede37..ce8c02a 100644 --- a/docs/data-sources/server_info.md +++ b/docs/data-sources/server_info.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "immich_server_info Data Source - terraform-provider-immich" +page_title: "immich_server_info Data Source - immich" subcategory: "" description: |- Retrieves information about the Immich server. diff --git a/docs/data-sources/users.md b/docs/data-sources/users.md index 9937740..11a4504 100644 --- a/docs/data-sources/users.md +++ b/docs/data-sources/users.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "immich_users Data Source - terraform-provider-immich" +page_title: "immich_users Data Source - immich" subcategory: "" description: |- Retrieves a list of all Immich users. diff --git a/docs/resources/activity.md b/docs/resources/activity.md index bbbfd1f..53559a2 100644 --- a/docs/resources/activity.md +++ b/docs/resources/activity.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "immich_activity Resource - terraform-provider-immich" +page_title: "immich_activity Resource - immich" subcategory: "" description: |- Manages an Immich activity (comment or like). diff --git a/docs/resources/album.md b/docs/resources/album.md index 23585a0..2fb318d 100644 --- a/docs/resources/album.md +++ b/docs/resources/album.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "immich_album Resource - terraform-provider-immich" +page_title: "immich_album Resource - immich" subcategory: "" description: |- Manages an Immich album. diff --git a/docs/resources/api_key.md b/docs/resources/api_key.md index eb0c601..8644673 100644 --- a/docs/resources/api_key.md +++ b/docs/resources/api_key.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "immich_api_key Resource - terraform-provider-immich" +page_title: "immich_api_key Resource - immich" subcategory: "" description: |- Manages an Immich personal API key. Note that the secret is only available upon creation. diff --git a/docs/resources/library.md b/docs/resources/library.md index 77ae850..083b31d 100644 --- a/docs/resources/library.md +++ b/docs/resources/library.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "immich_library Resource - terraform-provider-immich" +page_title: "immich_library Resource - immich" subcategory: "" description: |- Manages an Immich library. diff --git a/docs/resources/memory.md b/docs/resources/memory.md index 9678e11..ed0f562 100644 --- a/docs/resources/memory.md +++ b/docs/resources/memory.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "immich_memory Resource - terraform-provider-immich" +page_title: "immich_memory Resource - immich" subcategory: "" description: |- Manages an Immich memory. diff --git a/docs/resources/partner.md b/docs/resources/partner.md index b63883c..788f21f 100644 --- a/docs/resources/partner.md +++ b/docs/resources/partner.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "immich_partner Resource - terraform-provider-immich" +page_title: "immich_partner Resource - immich" subcategory: "" description: |- Manages an Immich partner connection. diff --git a/docs/resources/person.md b/docs/resources/person.md index a55c2dd..8169ac2 100644 --- a/docs/resources/person.md +++ b/docs/resources/person.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "immich_person Resource - terraform-provider-immich" +page_title: "immich_person Resource - immich" subcategory: "" description: |- Manages an Immich person. Note: Persons are usually created automatically by Immich facial recognition. This resource is used to update their details. diff --git a/docs/resources/shared_link.md b/docs/resources/shared_link.md index a278215..02b7502 100644 --- a/docs/resources/shared_link.md +++ b/docs/resources/shared_link.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "immich_shared_link Resource - terraform-provider-immich" +page_title: "immich_shared_link Resource - immich" subcategory: "" description: |- Manages an Immich shared link for albums or individual assets. diff --git a/docs/resources/stack.md b/docs/resources/stack.md index 6492bfc..8a01ff4 100644 --- a/docs/resources/stack.md +++ b/docs/resources/stack.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "immich_stack Resource - terraform-provider-immich" +page_title: "immich_stack Resource - immich" subcategory: "" description: |- Manages an Immich asset stack. diff --git a/docs/resources/system_config.md b/docs/resources/system_config.md index cb25a8d..2418451 100644 --- a/docs/resources/system_config.md +++ b/docs/resources/system_config.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "immich_system_config Resource - terraform-provider-immich" +page_title: "immich_system_config Resource - immich" subcategory: "" description: |- Manages Immich system configuration. This is a singleton resource. diff --git a/docs/resources/tag.md b/docs/resources/tag.md index 874ba37..1053396 100644 --- a/docs/resources/tag.md +++ b/docs/resources/tag.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "immich_tag Resource - terraform-provider-immich" +page_title: "immich_tag Resource - immich" subcategory: "" description: |- Manages an Immich tag. diff --git a/docs/resources/user.md b/docs/resources/user.md index 809ce97..93c173c 100644 --- a/docs/resources/user.md +++ b/docs/resources/user.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "immich_user Resource - terraform-provider-immich" +page_title: "immich_user Resource - immich" subcategory: "" description: |- Manages an Immich user account. diff --git a/docs/resources/workflow.md b/docs/resources/workflow.md index e4d925e..00fbfd5 100644 --- a/docs/resources/workflow.md +++ b/docs/resources/workflow.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "immich_workflow Resource - terraform-provider-immich" +page_title: "immich_workflow Resource - immich" subcategory: "" description: |- Manages an Immich workflow (Experimental). diff --git a/go.mod b/go.mod index be4e457..f0ea559 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/immich-app/terraform-provider-immich +module github.com/tfmm/terraform-provider-immich go 1.26.3 diff --git a/internal/provider/activities_data_source.go b/internal/provider/activities_data_source.go index 57ee189..d00adf6 100644 --- a/internal/provider/activities_data_source.go +++ b/internal/provider/activities_data_source.go @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/immich-app/terraform-provider-immich/internal/client" + "github.com/tfmm/terraform-provider-immich/internal/client" ) // Ensure the implementation satisfies the expected interfaces. diff --git a/internal/provider/activity_resource.go b/internal/provider/activity_resource.go index d6aa283..a5b8238 100644 --- a/internal/provider/activity_resource.go +++ b/internal/provider/activity_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/immich-app/terraform-provider-immich/internal/client" + "github.com/tfmm/terraform-provider-immich/internal/client" ) // Ensure the implementation satisfies the expected interfaces. diff --git a/internal/provider/album_resource.go b/internal/provider/album_resource.go index 69cd700..5033293 100644 --- a/internal/provider/album_resource.go +++ b/internal/provider/album_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/immich-app/terraform-provider-immich/internal/client" + "github.com/tfmm/terraform-provider-immich/internal/client" ) // Ensure the implementation satisfies the expected interfaces. diff --git a/internal/provider/albums_data_source.go b/internal/provider/albums_data_source.go index 8a11cd7..5fbaf25 100644 --- a/internal/provider/albums_data_source.go +++ b/internal/provider/albums_data_source.go @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/immich-app/terraform-provider-immich/internal/client" + "github.com/tfmm/terraform-provider-immich/internal/client" ) // Ensure the implementation satisfies the expected interfaces. diff --git a/internal/provider/api_key_resource.go b/internal/provider/api_key_resource.go index a7038b7..5ba77e5 100644 --- a/internal/provider/api_key_resource.go +++ b/internal/provider/api_key_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/immich-app/terraform-provider-immich/internal/client" + "github.com/tfmm/terraform-provider-immich/internal/client" ) // Ensure the implementation satisfies the expected interfaces. diff --git a/internal/provider/libraries_data_source.go b/internal/provider/libraries_data_source.go index 6de0ee5..0ba80e3 100644 --- a/internal/provider/libraries_data_source.go +++ b/internal/provider/libraries_data_source.go @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/immich-app/terraform-provider-immich/internal/client" + "github.com/tfmm/terraform-provider-immich/internal/client" ) // Ensure the implementation satisfies the expected interfaces. diff --git a/internal/provider/library_resource.go b/internal/provider/library_resource.go index b8d79c0..6e778bf 100644 --- a/internal/provider/library_resource.go +++ b/internal/provider/library_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/immich-app/terraform-provider-immich/internal/client" + "github.com/tfmm/terraform-provider-immich/internal/client" ) // Ensure the implementation satisfies the expected interfaces. diff --git a/internal/provider/memory_resource.go b/internal/provider/memory_resource.go index 52b44f4..38a3584 100644 --- a/internal/provider/memory_resource.go +++ b/internal/provider/memory_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/immich-app/terraform-provider-immich/internal/client" + "github.com/tfmm/terraform-provider-immich/internal/client" ) // Ensure the implementation satisfies the expected interfaces. diff --git a/internal/provider/partner_resource.go b/internal/provider/partner_resource.go index f3c04a5..08235a4 100644 --- a/internal/provider/partner_resource.go +++ b/internal/provider/partner_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/immich-app/terraform-provider-immich/internal/client" + "github.com/tfmm/terraform-provider-immich/internal/client" ) // Ensure the implementation satisfies the expected interfaces. diff --git a/internal/provider/person_resource.go b/internal/provider/person_resource.go index 226cf0e..7a3adf4 100644 --- a/internal/provider/person_resource.go +++ b/internal/provider/person_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/immich-app/terraform-provider-immich/internal/client" + "github.com/tfmm/terraform-provider-immich/internal/client" ) // Ensure the implementation satisfies the expected interfaces. diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 8142e7a..0b1a1d3 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -9,7 +9,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/provider/schema" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/immich-app/terraform-provider-immich/internal/client" + "github.com/tfmm/terraform-provider-immich/internal/client" ) // Ensure the implementation satisfies the expected interfaces. diff --git a/internal/provider/server_data_source.go b/internal/provider/server_data_source.go index b0d6e6e..f7a0364 100644 --- a/internal/provider/server_data_source.go +++ b/internal/provider/server_data_source.go @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/immich-app/terraform-provider-immich/internal/client" + "github.com/tfmm/terraform-provider-immich/internal/client" ) // Ensure the implementation satisfies the expected interfaces. diff --git a/internal/provider/shared_link_resource.go b/internal/provider/shared_link_resource.go index f327ffe..fc7e38c 100644 --- a/internal/provider/shared_link_resource.go +++ b/internal/provider/shared_link_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/immich-app/terraform-provider-immich/internal/client" + "github.com/tfmm/terraform-provider-immich/internal/client" ) // Ensure the implementation satisfies the expected interfaces. diff --git a/internal/provider/stack_resource.go b/internal/provider/stack_resource.go index 84f022e..c4d75de 100644 --- a/internal/provider/stack_resource.go +++ b/internal/provider/stack_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/immich-app/terraform-provider-immich/internal/client" + "github.com/tfmm/terraform-provider-immich/internal/client" ) // Ensure the implementation satisfies the expected interfaces. diff --git a/internal/provider/system_config_resource.go b/internal/provider/system_config_resource.go index 55ad351..c7fa463 100644 --- a/internal/provider/system_config_resource.go +++ b/internal/provider/system_config_resource.go @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/immich-app/terraform-provider-immich/internal/client" + "github.com/tfmm/terraform-provider-immich/internal/client" ) // Ensure the implementation satisfies the expected interfaces. diff --git a/internal/provider/tag_resource.go b/internal/provider/tag_resource.go index f1e8e3c..dfabfab 100644 --- a/internal/provider/tag_resource.go +++ b/internal/provider/tag_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/immich-app/terraform-provider-immich/internal/client" + "github.com/tfmm/terraform-provider-immich/internal/client" ) // Ensure the implementation satisfies the expected interfaces. diff --git a/internal/provider/user_resource.go b/internal/provider/user_resource.go index 44a9af3..e7375b5 100644 --- a/internal/provider/user_resource.go +++ b/internal/provider/user_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/immich-app/terraform-provider-immich/internal/client" + "github.com/tfmm/terraform-provider-immich/internal/client" ) // Ensure the implementation satisfies the expected interfaces. diff --git a/internal/provider/users_data_source.go b/internal/provider/users_data_source.go index 3211963..be38b7d 100644 --- a/internal/provider/users_data_source.go +++ b/internal/provider/users_data_source.go @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/immich-app/terraform-provider-immich/internal/client" + "github.com/tfmm/terraform-provider-immich/internal/client" ) // Ensure the implementation satisfies the expected interfaces. diff --git a/internal/provider/workflow_resource.go b/internal/provider/workflow_resource.go index d107fe5..21201f6 100644 --- a/internal/provider/workflow_resource.go +++ b/internal/provider/workflow_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/immich-app/terraform-provider-immich/internal/client" + "github.com/tfmm/terraform-provider-immich/internal/client" ) // Ensure the implementation satisfies the expected interfaces. diff --git a/main.go b/main.go index b031076..b17572e 100644 --- a/main.go +++ b/main.go @@ -6,7 +6,7 @@ import ( "log" "github.com/hashicorp/terraform-plugin-framework/providerserver" - "github.com/immich-app/terraform-provider-immich/internal/provider" + "github.com/tfmm/terraform-provider-immich/internal/provider" ) // Run "go generate" to format example terraform files and generate the docs for the registry/website. @@ -31,7 +31,7 @@ func main() { flag.Parse() opts := providerserver.ServeOpts{ - Address: "registry.terraform.io/immich-app/immich", + Address: "registry.terraform.io/tfmm/immich", Debug: debug, }