Open oponomarov-tu opened 7 months ago
Hey @oponomarov-tu - we are in the middle of a massive refactor of the codebase bringing it up to the lastest SDK version. I think we won't beable to test this out until that is shipped and then we'll most likely want to have your roll forward to that one to see if this is fixed there. I'll add this to our queue for checking on post refactor.
Hey @oponomarov-tu - we are in the middle of a massive refactor of the codebase bringing it up to the lastest SDK version. I think we won't beable to test this out until that is shipped and then we'll most likely want to have your roll forward to that one to see if this is fixed there. I'll add this to our queue for checking on post refactor.
Thanks for prompt feedback. I guess this is most likely blocking everyone from using OpsLevel provider and opslevel_service
resources in particular. Well, guess we have to wait then. Have a nice Friday!
@oponomarov-tu - we are going to look at getting your other issue as a fix into the pre-release so maybe once thats in you try to roll forward. The newest terraform provider gives provider writes alot more control over the state, config and plan/apply that we think might actually fix this. We suspect this is due to an underlying change with opslevel-go and unfortunately the current provider is an un tested codebase. Moving to the latest provider SDK will allow us to way more easily write tests for our code with an aim to stabilize the provider and move towards 1.0
@oponomarov-tu
i had the same thing. and although this is an issue, it doesnt make the opslevel_service
resource un-usable.
the clue is in the error message. Although the lifecycle_alias
and tier_alias
inputs are categorised as optional for this resource, the creation of the service wont work without them.
so all you gotta do in order to create a service via tf is specify those inputs. check the example usage on the link i referenced above to see how to go about that using data sources.
We've been using v0.11.0 successfully in the last couple of weeks. Since recently, when adding new
opslevel_service
resource withlifecycle { ignore_changes = ... }
it started to fail. This is not the first time we can not use a locked-down provider version to manage existing resources or create new ones with same configuration.Example HCL:
Terraform apply: