Skip to content

fix(parameter_storage_definition): derive slug output from the created resource#436

Merged
sebastiancorrea81 merged 1 commit into
mainfrom
fix/parameter-storage-definition-slug-output
Jul 14, 2026
Merged

fix(parameter_storage_definition): derive slug output from the created resource#436
sebastiancorrea81 merged 1 commit into
mainfrom
fix/parameter-storage-definition-slug-output

Conversation

@sebastiancorrea81

Copy link
Copy Markdown
Collaborator

Summary

  • output "slug" in parameter_storage_definition was sourced from local.config.slug (the rendered template), not from the nullplatform_provider_specification resource itself.
  • Since the resource's slug attribute is server-computed (only known after apply), reading it from the template instead broke the implicit dependency edge: Terraform didn't know that anything consuming this output must wait for the specification to actually be created.
  • In practice this let parameter_storage_configuration.provider_specification_slug = module.parameter_storage_definition.slug race against the specification creation, and the value returned could mismatch whatever slug the API actually assigned.

Fix

Point the output at nullplatform_provider_specification.parameter_storage_specification.slug instead, so the value is both correct and forces the right ordering.

Test plan

  • terraform plan on a root module consuming both parameter_storage_definition and parameter_storage_configuration shows provider_specification_slug as (known after apply) instead of a statically-resolved value, confirming the dependency edge exists.
  • terraform apply creates the specification before the config resource (no more race).

🤖 Generated with Claude Code

…d resource

The slug output was sourced from the rendered template's local.config.slug
instead of the specification resource's own attribute, so it carried no
dependency edge on the resource and could expose a value that mismatches
what the API actually assigns, causing dependents to run before the
specification exists.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@sebastiancorrea81
sebastiancorrea81 merged commit d27b92a into main Jul 14, 2026
44 checks passed
@sebastiancorrea81
sebastiancorrea81 deleted the fix/parameter-storage-definition-slug-output branch July 14, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants