You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The transfer server ID is not being returned and there is no clear direct way to identify the server. Return the server ID.
Expected Behavior
I understand the ID returned in outputs is not the transfer server ID, so a new output variable is required:
output "transfer_server_id" {
description = "The Transfer Server ID"
value = module.this.enabled ? join("", aws_transfer_server.default.*.id) : null
}
or alternatively return the whole object
output "transfer_server" {
description = "The Transfer Server"
value = module.this.enabled ? aws_transfer_server.default : null
}
Use Case
I would like to reference the transfer server downstream so I can add some features not managed by this module (i.e. an unrestricted user or multiple users on the same folder).
Describe Ideal Solution
data "aws_transfer_server" "sftp" {
server_id = module.sftp.transfer_server_id
}
Or if solution 2 is used, then I can just get it as
data "aws_transfer_server" "example" {
server_id = module.sftp.transfer_server.id
}
Alternatives Considered
I was looking to tag the transfer server so I can lookup the server by tags but this functionality is not available in the transfer_server data object.
Additional Context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
Describe the Feature
The transfer server ID is not being returned and there is no clear direct way to identify the server. Return the server ID.
Expected Behavior
I understand the ID returned in outputs is not the transfer server ID, so a new output variable is required:
or alternatively return the whole object
Use Case
I would like to reference the transfer server downstream so I can add some features not managed by this module (i.e. an unrestricted user or multiple users on the same folder).
Describe Ideal Solution
Or if solution 2 is used, then I can just get it as
Alternatives Considered
I was looking to tag the transfer server so I can lookup the server by tags but this functionality is not available in the transfer_server data object.
Additional Context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: