Closed demaos closed 1 year ago
Would you please share your resource file so we can take a look?
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" }`
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.
Raised DEVOPS-6353 for tracking this issue.
The new release 23.8.1 has the fix.
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" {