IBM-Cloud / terraform-provider-ibm

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs
Mozilla Public License 2.0
342 stars 673 forks source link

Message Queue on Cloud not supported on terraform #5325

Open shemau opened 7 months ago

shemau commented 7 months ago

Community Note

Terraform CLI and Terraform IBM Provider Version

Affected Resource(s)

There appear to be three plans available for service mqcloud, lite, default or custom.

Observation is that none of these three plans are supported and that Reserved Deployment Plan (note: camel case and spaces) is the only valid value. All three attempted and all three resulted in errors.

Terraform Configuration Files

The examples in the documentation do not work

Debug Output


│ Error: Create Application failed [ERROR] Terraform is only supported for Reserved Deployment Plan. Your Service Plan is: default for the instance 0d087168-881f-408d-8834-8e9f7b55a71f
│ 
│   with module.mq_on_cloud.module.application["my-app"].ibm_mqcloud_application.mqcloud_application,
│   on ../../modules/application/main.tf line 7, in resource "ibm_mqcloud_application" "mqcloud_application":
│    7: resource "ibm_mqcloud_application" "mqcloud_application" {
│ 
╵
╷
│ Error: Create Queue Manager failed [ERROR] Terraform is only supported for Reserved Deployment Plan. Your Service Plan is: default for the instance 0d087168-881f-408d-8834-8e9f7b55a71f
│ 
│   with module.mq_on_cloud.module.queue_manager.ibm_mqcloud_queue_manager.mqcloud_queue_manager,
│   on ../../modules/queue-manager/main.tf line 7, in resource "ibm_mqcloud_queue_manager" "mqcloud_queue_manager":
│    7: resource "ibm_mqcloud_queue_manager" "mqcloud_queue_manager" {
│ 
╵
╷
│ Error: Create User failed [ERROR] Terraform is only supported for Reserved Deployment Plan. Your Service Plan is: default for the instance 0d087168-881f-408d-8834-8e9f7b55a71f
│ 
│   with module.mq_on_cloud.module.user["my-user"].ibm_mqcloud_user.user,
│   on ../../modules/user/main.tf line 7, in resource "ibm_mqcloud_user" "user":
│    7: resource "ibm_mqcloud_user" "user" {
│ 

Expected Behavior

These three resources are basic starters. It is reasonable to expect that they all work on all plans.

Actual Behavior

All of them fail on all plans

Steps to Reproduce

  1. terraform apply
  2. Respond yes

Important Factoids

There are restrictions on locations. Errors detected in us-south and eu-gb. eu-de and for some plans us-east are supported. Service instance creation is documented in the queue manager docs.

References

shemau commented 7 months ago

@hkantare can you help with a new tag/label for service/MQ on Cloud?