NetApp / terraform-provider-netapp-cloudmanager

Terraform provider to create NetAPP OCCM instances, CVO resources, volumes, snapshots, ... in Azure, AWS, GCP.
Mozilla Public License 2.0
17 stars 27 forks source link

Request must contain saasSubscriptionId to deploy CVO with capacity-based license #173

Closed demaos closed 1 year ago

demaos commented 1 year ago

Hi,

I always have this error when i try to deploy a cluster but I don't know how i can send this ID. I don't see argument for this.

Error: code: 400, message: {"message":"Request must contain saasSubscriptionId to deploy CVO with capacity-based license","causeMessage":"BadRequestException: Request must contain saasSubscriptionId to deploy CVO with capacity-based license"} │ │ with netapp-cloudmanager_cvo_aws.cvo-aws, │ on main.tf line 18, in resource "netapp-cloudmanager_cvo_aws" "cvo-aws": │ 18: resource "netapp-cloudmanager_cvo_aws" "cvo-aws" {

chuyich commented 1 year ago

Would you please share your resource file so we can take a look?

demaos commented 1 year ago

The issue appear with the exemple on https://registry.terraform.io/providers/NetApp/netapp-cloudmanager/latest/docs/resources/cvo_aws#mediator_assign_public_ip

`terraform { required_providers { netapp-cloudmanager = { source = "NetApp/netapp-cloudmanager" version = "23.7.0" } } }

provider "netapp-cloudmanager" { sa_secret_key = "oGExxxxxxxxxxxxxxxxxx" sa_client_id = "ESxxxxxxxxxxxxxxxxxxxx" aws_profile = "Fxxxxxxx" }

resource "netapp-cloudmanager_cvo_aws" "cvo-aws" { provider = netapp-cloudmanager name = "TerraformCVO" region = "eu-west-3" subnet_id = "subnet-0b741d2xxxxxxxxxxxxxx" vpc_id = "vpc-07dxxxxxxxxxxxx" aws_tag { tag_key = "abcd" tag_value = "ABCD" } aws_tag { tag_key = "xxx" tag_value = "YYY" } svm_password = "Salut2023" client_id = "W19uxxxxxxxxxxxxxxxxxxxxxxx" writing_speed_state = "NORMAL" }`

chuyich commented 1 year ago

After checking with the team, it seems your subscription is contract based. In that case there is extra validation which requires the saasSubscriptionId. The example is based on the account subscription is paygo type. So there is no need to provide saasSubscriptionId. Current terraform resource does not support this parameter. Will fix this issue in the next release.

chuyich commented 1 year ago

Raised DEVOPS-6353 for tracking this issue.

chuyich commented 1 year ago

The new release 23.8.1 has the fix.