terraform-provider-iterative: `task` name is null in the Terraform state when not specified

Seems that name property is ~useless right now~ is not stored if not specified. It should be stored the generated name to feed the name to keep the state coherence

"name": null,
"parallelism": 1,

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 21 (10 by maintainers)

Most upvoted comments

any later plan/apply operations will trigger a “value” ~> null diff and recreate the resource even when it’s unchanged.

I think that we can update it during the creation without triggering the recreation. I will give it a try

When a provider sets a non–computed attribute in the state to values other than the one specified in *.tf files, any later plan/apply operations will trigger a "value" ~> null diff and recreate the resource even when it’s unchanged.

TL;DR if you’re querying the state, use always id

We already do that, just that it doesn’t get saved to the name attribute.

Nice! it should be saved to keep coherence

Where did you get that JSON (?) excerpt from?

Running a task without specifying the name