Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow_configuration_access does not update resource #448

Open
vartemenconvm opened this issue Aug 6, 2024 · 0 comments
Open

allow_configuration_access does not update resource #448

vartemenconvm opened this issue Aug 6, 2024 · 0 comments

Comments

@vartemenconvm
Copy link

Provider version

0.6.37

Affected Resource(s)

  • opsgenie_api_integration

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

Terraform Configuration Files

resource "opsgenie_api_integration" "test" {
  name = "EC2_AutoScalingTest"
  type = "AmazonEc2AutoScaling"
  enabled = true
  suppress_notifications = false
  allow_write_access = true
  allow_configuration_access = true

  owner_team_id = var.team_id
}

Terraform Plan Output

  ~ resource "opsgenie_api_integration" "test" {
      ~ allow_configuration_access = false -> true
        id                         = "REDACTED"
        name                       = "EC2_AutoScalingTest"
        # (6 unchanged attributes hidden)
    }

Expected Behavior

Should update configuration for integration, and remove configuration access.
When requesting integration info, should return following field in JSON:

"allowConfigurationAccess": false,

Actual Behavior

Configuration is not changed.
API request for integration info returns same output as before apply:

"allowConfigurationAccess": true,

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply with allow_configuration_access set to false
  2. Verify integrations info using API ( https://api.opsgenie.com/v2/integrations/{INTEGRATION ID} - allowConfigurationAccess is set to false
  3. terraform apply with allow_configuration_access set to true
  4. Verify integrations info using API ( https://api.opsgenie.com/v2/integrations/{INTEGRATION ID} - allowConfigurationAccess is still set to false

References

Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant