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
However, setting the integration_key like this doesn't seem to be supported.
During a terraform apply, terraform tries to change the key over and over again. It seems the key is created by pagerduty, and whatever is passed in here is ignored.
I'm not sure if there's other services where integration_key can be set, but in the case of "API v2", the terraform provider should probably refuse setting integration_key. And the apiv2 example really shouldn't showcase setting an integration_key that's entirely ignored.
It looks like the actual key generated by pagerduty is available in a resource attribute later on, so I'd be happy to use that.
That attribute should probably be marked as sensitive.
i am getting same issue, do you got any solution so far for integration_key?
Any reason why it is generated by terraform and its not taking hardcoded values.
The example at https://registry.terraform.io/providers/PagerDuty/pagerduty/latest/docs/resources/service_integration lists the following example code:
I used some code like this to create a pagerduty_service_integration with a key generated from terraform:
Terraform Configuration Files
However, setting the
integration_key
like this doesn't seem to be supported.During a
terraform apply
, terraform tries to change the key over and over again. It seems the key is created by pagerduty, and whatever is passed in here is ignored.I'm not sure if there's other services where
integration_key
can be set, but in the case of "API v2", the terraform provider should probably refuse settingintegration_key
. And the apiv2 example really shouldn't showcase setting an integration_key that's entirely ignored.It looks like the actual key generated by pagerduty is available in a resource attribute later on, so I'd be happy to use that.
That attribute should probably be marked as sensitive.
Terraform Version
Terraform v1.1.7
on linux_amd64
Affected Resource(s)
Please list the resources as a list, for example:
pagerduty_service_integration
The text was updated successfully, but these errors were encountered: