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

[Bug]: aws_transfer_server: 'As2Transport must be specified to enable AS2 protocol' #29332

Closed
jgohlke1 opened this issue Feb 9, 2023 · 3 comments · Fixed by #28621
Closed
Labels
bug Addresses a defect in current functionality. service/transfer Issues and PRs that pertain to the transfer service.

Comments

@jgohlke1
Copy link

jgohlke1 commented Feb 9, 2023

Terraform Core Version

1.3.7

AWS Provider Version

4.53.0

Affected Resource(s)

  • aws_transfer_server

Expected Behavior

When deploying a transfer server and specifying AS2 as a protocol, the provider should provide AWS with an As2Transports value of HTTP.

https://docs.aws.amazon.com/transfer/latest/userguide/API_CreateServer.html

Actual Behavior

The apply is failing with the following error:

│ Error: creating Transfer Server: InvalidRequestException: As2Transport must be specified to enable AS2 protocol
│
│   with aws_transfer_server.server,
│   on all.tf line 5, in resource "aws_transfer_server" "server":
│    5: resource "aws_transfer_server" "server" {

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

provider "aws" {
  region = "us-east-1"
}

resource "aws_transfer_server" "server" {
  protocols = ["AS2"]
}

Steps to Reproduce

  1. terraform init
  2. terraform apply

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

@jgohlke1 jgohlke1 added bug Addresses a defect in current functionality. needs-triage Waiting for first response or review from a maintainer. labels Feb 9, 2023
@github-actions github-actions bot added the service/transfer Issues and PRs that pertain to the transfer service. label Feb 9, 2023
@github-actions
Copy link

github-actions bot commented Feb 9, 2023

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • 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.

@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Feb 10, 2023
@trevorrea
Copy link
Contributor

trevorrea commented Feb 13, 2023

There seems to be a mismatch between Terraform and CloudFormation

https://docs.aws.amazon.com/transfer/latest/userguide/API_CreateServer.html#TransferFamily-CreateServer-request-ProtocolDetails

The ProtocolDetails configuration is missing from Terraform. As @jgohlke1 said AWS seems to want Terraform to set the equivalent of:-

ProtocolDetails:
As2Transports:
- HTTP

in order to be able to set AS2 as one of the protocols enabled.

In any case whether this is related or not Terraform is missing the ability to configure ProtocolDetails

@github-actions
Copy link

github-actions bot commented Apr 7, 2023

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 Apr 7, 2023
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

Successfully merging a pull request may close this issue.

3 participants