Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot specify AddressAllocationids when updating server to EndpointType: VPC #19250

Closed
hello-ish opened this issue May 5, 2021 · 3 comments
Closed
Labels
bug Addresses a defect in current functionality. service/transfer Issues and PRs that pertain to the transfer service.

Comments

@hello-ish
Copy link

hello-ish commented May 5, 2021

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • 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
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform AWS Provider Version

Terraform v0.12.26
provider "aws" (hashicorp/aws) 3.8.0

Affected Resource(s)

  • aws_transfer_server

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

resource "aws_transfer_server" "foo" {
  endpoint_details {
    address_allocation_ids = ["eipalloc-..."]
    subnet_ids = ["subnet-..."]
    vpc_id = "vpc-..."
    vpc_endpoint_id = "vpce-..."
  }
  endpoint_type = "VPC"
}

Debug Output

With all required field above given correctly: the Error is as below:

Error: error updating Transfer Server (s-exxxxxxx): InvalidRequestException: Cannot specify AddressAllocationids when updating server to EndpointType: VPC

Panic Output

Error: error updating Transfer Server (s-exxxxxxx): InvalidRequestException: Cannot specify AddressAllocationids when updating server to EndpointType: VPC

Expected Behavior

Should have deployed sftp with specified or given elastic ip within EndpointType: VPC

Actual Behavior

Error: error updating Transfer Server (s-exxxxxxx): InvalidRequestException: Cannot specify AddressAllocationids when updating server to EndpointType: VPC

Steps to Reproduce

I am not too sure if anyone else have tried the same thing to try deploying sftp with "VPC" endpoint type and static ip. Stuck with above error message.

References

@ghost ghost added the service/transfer Issues and PRs that pertain to the transfer service. label May 5, 2021
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label May 5, 2021
@ewbankkit ewbankkit added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels May 6, 2021
@ewbankkit
Copy link
Contributor

@hello-ish Thanks for raising this issue.
Whilst looking at merging #13371 I have been taking an in-depth look at this code and think I see the bug (we are not clearing the AddressAllocationIds specified for the UpdateServer call). I will address this as part of the merge.

@ewbankkit
Copy link
Contributor

ewbankkit commented May 6, 2021

@hello-ish Digging around further I see that this issue has already been noticed in #16556. I'm going to close this one as a duplicate so that we can concentrate discussion in the linked issue.
Please add any additional comments there.

@github-actions
Copy link

github-actions bot commented Jun 6, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/transfer Issues and PRs that pertain to the transfer service.
Projects
None yet
Development

No branches or pull requests

2 participants