Skip to content

Commit

Permalink
fixed terratest
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohan Yadav committed Sep 11, 2019
1 parent 4da98b4 commit d4c894a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _example/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module "s3_bucket" {
}

module "sftp" {
source = "./../"
source = "git::https://github.com/clouddrove/terraform-aws-sftp.git?ref=tags/0.12.1"
name = "sftp"
application = "clouddrove"
environment = "test"
Expand Down
2 changes: 1 addition & 1 deletion _example/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
output "sftp" {
output "id" {
value = module.sftp.*.id
description = "The Server ID of the Transfer Server (e.g. s-12345678)"
}
Expand Down
8 changes: 6 additions & 2 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
#Description : Terraform sftp module variables.

output "id" {
value = aws_transfer_server.transfer_server.*.id[0]
value = concat(
aws_transfer_server.transfer_server.*.id
)[0]
description = "The Server ID of the Transfer Server (e.g. s-12345678)."
}

output "transfer_server_endpoint" {
value = aws_transfer_server.transfer_server.*.endpoint[0]
value = concat(
aws_transfer_server.transfer_server.*.endpoint
)[0]
description = "The endpoint of the Transfer Server (e.g. s-12345678.server.transfer.REGION.amazonaws.com)."
}

Expand Down

0 comments on commit d4c894a

Please sign in to comment.