Skip to content

Commit 46e1ad4

Browse files
authored
Update main.tf - switched from using prime_hostname variable to referencing from pulled AWS data resource.
1 parent cd03094 commit 46e1ad4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Terraform/fsxn-replicate/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ provider "netapp-ontap" {
3737
connection_profiles = [
3838
{
3939
name = var.prime_clus_name
40-
hostname = var.prime_hostname
40+
hostname = join("", data.aws_fsx_ontap_file_system.source_fsxn.endpoints[0].management[0].ip_addresses)
4141
username = jsondecode(data.aws_secretsmanager_secret_version.ontap_prime_username_pass.secret_string)["username"]
4242
password = jsondecode(data.aws_secretsmanager_secret_version.ontap_prime_username_pass.secret_string)["password"]
4343
validate_certs = var.validate_certs

0 commit comments

Comments
 (0)