Where running a Terraform Apply, and changing from private to public subnets i would expect the subents to be changes and the EIP's to be associated with the new subnet.
Would be good to note that this did work and not fresh code.
I have a feeling AWS maybe changed there API, Looking in the AWS Console there is now and internal and Internet Facing radio button.
Actual Behavior
Terraform reports an issue with the subnetids being changed
│ Error: updating Transfer Server (s-xxxxxxxxxxxx): InvalidRequestException: Specified SubnetIds must exist in the server before attaching AddressAllocationIds
│ with aws_transfer_server.this,
│ on main.tf line 1, in resource "aws_transfer_server" "this":
│ 1: resource "aws_transfer_server" "this" {
It would be good to reflect and add that when i move from Public back to Private that terraform run acts as expected without issues. Its only when moving from Private -> Public and associating the EIP's
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
1.6.6
AWS Provider Version
5.30.0
Affected Resource(s)
aws-transfer-family-server
Expected Behavior
Where running a Terraform Apply, and changing from private to public subnets i would expect the subents to be changes and the EIP's to be associated with the new subnet.
Would be good to note that this did work and not fresh code.
I have a feeling AWS maybe changed there API, Looking in the AWS Console there is now and
internal
andInternet Facing
radio button.Actual Behavior
Terraform reports an issue with the subnetids being changed
It would be good to reflect and add that when i move from Public back to Private that terraform run acts as expected without issues. Its only when moving from Private -> Public and associating the EIP's
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
N/A
Steps to Reproduce
N/A
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None