#[Terraform for ONTAP] AWS FSx ONTAP using Lambda Link?

1 messages · Page 1 of 1 (latest)

hallow tinsel
#

I am getting a timeout. I am unsure what can be the cause is.

terraform {
  required_providers {
    netapp-ontap = {
      source = "NetApp/netapp-ontap"
      version = "1.0.0"
    }
  }
}

provider "netapp-ontap" {
  # Configuration options

  connection_profiles = [{
    name           = "aws"
    username       = "fsxadmin"
    password       = "Passwoad"
    hostname       = "1..."


    aws = {
      function_name         = "MyLink"
      shared_config_profile = "default"

    }
  }]
}

resource "netapp-ontap_protocols_nfs_export_policy_resource" "testpolicy" {
  cx_profile_name = "aws"
  svm_name        = "svm1"
  name            = "exportpolicytest"
}

here is the error:

 Error: error reading svm info
│ 
│   with netapp-ontap_protocols_nfs_export_policy_resource.testpolicy,
│   on main.tf line 43, in resource "netapp-ontap_protocols_nfs_export_policy_resource" "testpolicy":
│   43: resource "netapp-ontap_protocols_nfs_export_policy_resource" "testpolicy" {
│ 
│ error on GET svm/svms: Get "https://<ip>/api/svm/svms?name=svm1": dial
│ tcp <ip>:443: i/o timeout, statusCode -1

Thanks

raw veldt
#

Could it be there security group blocking the port 443?

Also have you tried adding the config for validate_certs = false in the connection profile. If there is no ssl certificate configured inside FSx for ONTAP.

hallow tinsel
#

I also tried that without success. From the documentation, it should use the Lambda link I created in Workload Factory (WF). I am running from my local machine.

Also accessing the cluster works when accessing via WF UI.

hallow tinsel
#

I managed to get it to work. The connection key aws used in the documentation is incorrect. It should be aws_lamda.

#

Thanks @raw veldt

dull quail
#

Do note, we haven't release 2.0 with this yet, so your using a pre-release build that you build your self, that isn't complete. So please don't use this for any production code, until the offical release is out.