aws_transfer_server: allow security group #19872
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/transfer
Issues and PRs that pertain to the transfer service.
Community Note
Description
The AWS console when you create a AWS Transfer Server and select:
You are presented with a box to the security groups
But that is is not possible with
resource "aws_transfer_server
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/transfer_server#endpoint_detailsas far as I know. When you use
endpoint_type = "VPC"
there is no way to specify the security groupSo that is very unfortunate because there is not good way to add the security group afterwards to the actual vpc endpoint that is created (under the hood) via the aws_transfer_server resource.
The current alternative / workaround is to:
aws_vpc_endpoint
resource and add the security group there.Also in a related note, the
aws_transfer_server
will NOT expose theaws_vpc_endpoint
's id or service name as an attribute either (having it expose at least would it make it easier to get the reference to the vpc endpoint in a terraform output)New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: