Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

resourcecoderd_template doesn't handle initial failed creation gracefully #271

Open
@jatcod3r

Description

@jatcod3r

Provider Version: 0.0.12

If thecoderd_template fails it's initial create sequence, it's not able to gracefully continue. For example, this was the first error that had occurred:

│ Error: Client Error│ │   with coderd_template.test,│   on main.tf line 14, in resource "coderd_template" "test":│   14: resource "coderd_template" "test" {│ │ Failed to create template ACL: PATCH https://rs97pvo65hdfo.pit-1.try.coder.app/api/v2/templates/5ca8e2fc-caf9-47c2-a8a2-ce2189ff770d/acl:│ unexpected status code 400: Invalid request to update template ACL│       group_perms: role "Use" is not a valid template role│       group_perms: Everyone is not a valid UUID.

After resolving it and attempting anotherterraform apply, it'll indicate that the template is already created:

│ Error: Client Error│ │   with coderd_template.test,│   on main.tf line 14, in resource "coderd_template" "test":│   14: resource "coderd_template" "test" {│ │ Failed to create template: POST│ https://rs97pvo65hdfo.pit-1.try.coder.app/api/v2/organizations/cee07bdd-0e0d-4ca7-802f-92497067ae30/templates: unexpected status code 409:│ Template with name "test" already exists.│       name: This value is already in use and should be unique.

I expected that the template wouldn't have been created since it failed, or the provider would automatically handle updating it correctly with my desired changes instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp