Comments (5)
$ terraform --version
Terraform v0.11.10
+ provider.newrelic v1.2.0
We are using the newest version of terraform
and the newrelic provider, but we are still facing the problem described in this issue.
Our policies and channels are correctly imported, but none of the conditions get linked to them. As a consequence, tf plan
wants to recreate all of them.
from terraform-provider-newrelic.
@ghstwhl
I ran into this issue recently and did some poking around.
I noticed you ran terraform import
with what looks to be a policy ID.
If you take a look at the code beneath the covers, the provider is parsing the ID passed into terraform import
and expecting two pieces: both the policy ID and the condition ID with a colon in the middle.
If you import using <policy_id>:<condition_id>
, you might see what I'm seeing now... which is a marshaling issue between float64 and string on the "threshold" field. The underlying alert_conditions API returns conditions given a policy ID.
from terraform-provider-newrelic.
Running into this as well. Has anyone been able to work around this?
from terraform-provider-newrelic.
Running into this as well. Has anyone been able to work around this?
When I changed the type of the threshold field to be a string instead of float64, I was able to get it working.
from terraform-provider-newrelic.
@ghstwhl Apologies for a delay in response. We've recently focused more resources on maintaining the provider and in doing so, we've updated the Terraform provider to our new client, newrelic-client-go. In doing so, I have a hunch this might have been fixed as part of that update (or potentially as a result of other updates/fixes). I was unable to reproduce the primary reported problem with the current version of our provider, v1.12.2. I was also unable to reproduce the marshaling bug reported by @thejohnlin. Closing the issue since this looks to be resolved, but if anyone runs into any other issues please feel free to open new issue with your scenario.
from terraform-provider-newrelic.
Related Issues (20)
- newrelic_group update is failing when removing a user when the user_id list is build by Terraform HOT 1
- `newrelic_log_parsing_rule` Resource: Issue with NRQL/query field not present HOT 3
- Feature Request: Implement support for configurable threshold markers in line charts and tables HOT 2
- CloudIntegration was not matched against all PossibleTypes: CloudAwsMsElasticacheIntegration HOT 12
- Error when executing terraform plan that there is no matching CloudIntegration. HOT 2
- interface CloudIntegration was not matched against all PossibleTypes: CloudAwsMsElasticacheIntegration HOT 3
- `newrelic_entity` Data Source: The data source does not return entity tags HOT 3
- Feature Request: Add the Ability to Add Users to Groups HOT 1
- Feature Request: Implementing resources to manage metric normalization rules HOT 1
- ⚠️ EOL Notice for the Synthetics Legacy Runtime in use with Synthetic Monitors
- Plugin crashed on v3.37.0 HOT 2
- Error: Plugin did not respond provider New Relic #2674 HOT 1
- `newrelic_notification_destination` Resource: Alert destinations are created multiple times, possibly due to retries HOT 2
- `newrelic_notification_destination` Data Source: sub-string search issue HOT 2
- Update the golden rules example to nrql query alerts HOT 1
- OpenTofu registry is missing GPG keys for this provider HOT 2
- Cannot change account ID of newrelic_nrql_alert_condition resource. HOT 1
- newrelic_synthetics_monitor This field is deprecated! Please use `relatedEntities` instead error HOT 1
- Missing legacy provider keys in OpenTofu Registry HOT 8
- Resource to manage log views
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-newrelic.