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

google_cloudiot_registry mqtt_config and http_config cannot be enabled #1627

Closed
ricochet1k opened this issue Jun 8, 2018 · 1 comment · Fixed by #1640
Closed

google_cloudiot_registry mqtt_config and http_config cannot be enabled #1627

ricochet1k opened this issue Jun 8, 2018 · 1 comment · Fixed by #1640
Assignees
Labels

Comments

@ricochet1k
Copy link

When I try to apply a google_cloudiot_registry with mqtt_config.mqtt_enabled_state = "MQTT_ENABLED", I get an error. Setting http_config does the same thing.

Terraform Version

Terraform v0.11.7

  • provider.google v1.13.0

Affected Resource(s)

  • google_cloudiot_registry

Terraform Configuration Files

resource "google_cloudiot_registry" "iot-registry" {
  name = "registry"

  event_notification_config = {
    pubsub_topic_name = "${google_pubsub_topic.device_telemetry.id}"
  }

  state_notification_config = {
    pubsub_topic_name = "${google_pubsub_topic.device_state.id}"
  }

  http_config = {
    http_enabled_state = "HTTP_ENABLED"
  }

  mqtt_config = {
    mqtt_enabled_state = "MQTT_ENABLED"
  }

  credentials = [
    /*{
      public_key_certificate = {
        format      = "X509_CERTIFICATE_PEM"
        certificate = "${file("rsa_cert.pem")}"
      }
    },*/
  ]
}

Debug Output

https://gist.github.com/ricochet1k/a6aa3defe4fa5bb0cc8bae7a957fa3f1

Expected Behavior

Enable MQTT and HTTP for IOT registry.

Actual Behavior

google_cloudiot_registry.iot-registry: Error updating registry registry: googleapi: Error 400: The provided 'update_mask' path 'mqtt_config' is not allowed. Only the fields ['credentials', 'event_notification_configs', 'http_config.http_enabled_state', 'log_level', 'mqtt_config.mqtt_enabled_state', 'state_notification_config.pubsub_topic_name'] are mutable., badRequest

Steps to Reproduce

  1. terraform apply
@ghost
Copy link

ghost commented Nov 18, 2018

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Nov 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants