You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im trying to import newrelic_alert_policy_channel and in imports it but dont put the account_id in the ft_state. In the code it seems to take from the provider config. In other resources like newrelic_one_dashboard_raw account_id works well (I see in the code it reads from the sdk client and not the provider config the account_id).
This is my provider config
Run terraform -v to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.
Affected Resource(s)
Please list the resources as a list, for example:
newrelic_alert_policy
newrelic_alert_channel
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration
Please include your provider configuration (sensitive details redacted) as well as the configuration of the resources and/or data sources related to the bug report.
Terraform v1.2.3
on darwin_arm64
+ provider registry.terraform.io/newrelic/newrelic v2.47.0
Actual Behavior
What actually happened?
Expected Behavior
What should have happened?
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
Init provider
Config policy channel like in the documentation of terraform
Try tf import it in another folder (after terraform init there with same provider configruatino)
Hi @tamirFireFly 👋 this resource uses our legacy REST API which doesn't return the account ID in the payload. That's why it's not imported into the TF state.
Hi there,
Im trying to import newrelic_alert_policy_channel and in imports it but dont put the account_id in the ft_state. In the code it seems to take from the provider config. In other resources like newrelic_one_dashboard_raw account_id works well (I see in the code it reads from the sdk client and not the provider config the account_id).
This is my provider config
This is tf state after import
Maybe it also reproduced in another resources too. I hope i can get the real account id in the tf state on such import.
Thanks in advance :)
provider
configuration (sensitive details redacted)Terraform Version
Run
terraform -v
to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.Affected Resource(s)
Please list the resources as a list, for example:
newrelic_alert_policy
newrelic_alert_channel
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration
Actual Behavior
What actually happened?
Expected Behavior
What should have happened?
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
Debug Output
Please provider a link to a GitHub Gist containing the complete debug output: https://www.terraform.io/docs/internals/debugging.html. Please do NOT paste the debug output in the issue; just paste a link to the Gist.
The text was updated successfully, but these errors were encountered: