Open jamiezieziula opened 8 months ago
ah. this is sort of a known issue / i'm unsure of how to solve for it. basically, the issue is that the Prefect Cloud API will return both (1) the scopes that you set in TF as well as (2) any scopes underneath it. for example, setting manage_blocks
on create/import will see a response of manage_blocks, see_blocks, write_blocks
from the API.
this kind of unexpected attribute conflict makes the plan/apply fail. right now, i'm not dealing with it, and instead having the user-defined TF configuration be the only thing saved into state (so the scopes in the response aren't persisted). not sure if there's another way to deal with dealing with API responses that are different than your input parameters like this
I've defined my resource as follows:
I then subsequently ran:
but when I run a terraform plan without changing my defined resource, I receive this proposed change: