Skip to content

Commit d4c894a

Browse files
author
Sohan Yadav
committed
fixed terratest
1 parent 4da98b4 commit d4c894a

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

_example/example.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module "s3_bucket" {
1818
}
1919

2020
module "sftp" {
21-
source = "./../"
21+
source = "git::https://github.com/clouddrove/terraform-aws-sftp.git?ref=tags/0.12.1"
2222
name = "sftp"
2323
application = "clouddrove"
2424
environment = "test"

_example/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
output "sftp" {
1+
output "id" {
22
value = module.sftp.*.id
33
description = "The Server ID of the Transfer Server (e.g. s-12345678)"
44
}

outputs.tf

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@
22
#Description : Terraform sftp module variables.
33

44
output "id" {
5-
value = aws_transfer_server.transfer_server.*.id[0]
5+
value = concat(
6+
aws_transfer_server.transfer_server.*.id
7+
)[0]
68
description = "The Server ID of the Transfer Server (e.g. s-12345678)."
79
}
810

911
output "transfer_server_endpoint" {
10-
value = aws_transfer_server.transfer_server.*.endpoint[0]
12+
value = concat(
13+
aws_transfer_server.transfer_server.*.endpoint
14+
)[0]
1115
description = "The endpoint of the Transfer Server (e.g. s-12345678.server.transfer.REGION.amazonaws.com)."
1216
}
1317

0 commit comments

Comments
 (0)