hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.85k stars 9.19k forks source link

[Bug]: Unable to create AS2 protocol for AWS transfer Server #27689

Closed Shravankumark closed 8 months ago

Shravankumark commented 2 years ago

Terraform Core Version

0.14.11

AWS Provider Version

4.24.0

Affected Resource(s)

aws_transfer_server

identity_provider_type = "SERVICE_MANAGED" protocols = ["AS2","SFTP"]

Expected Behavior

AS2 protocol should be added to AWS transfer server.

Actual Behavior

AS2 protocol is not added to AWS transfer server.

Relevant Error/Panic Output Snippet

Error: error updating Transfer Server (s-d8edb35ec2c74e123): InvalidRequestException: As2Transport must be specified to enable AS2 protocol.

Terraform Configuration Files

resource "aws_transfer_server" "example" { endpoint_type = "VPC"

endpoint_details { subnet_ids = [aws_subnet.example.id] vpc_id = aws_vpc.example.id }

protocols = ["AS2","SFTP"] certificate = aws_acm_certificate.example.arn

identity_provider_type = "SERVICE_MANAGED" url = "${aws_api_gateway_deployment.example.invoke_url}${aws_api_gateway_resource.example.path}" }

Steps to Reproduce

Create a aws transfer server with as2 protocol.

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

No

github-actions[bot] commented 2 years ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

justinretzolk commented 2 years ago

Related #27695

avizvaRumit commented 1 year ago

If we try to implement AS2 from scratch..terraform gives us this error..but once we enable AS2 manually in an already created transfer server..then delete the AS2 protocol manually and again try to implement AS2 using our terraform code..then it works fine...can someone give this a try?

justinretzolk commented 8 months ago

Closed via #28621

github-actions[bot] commented 7 months ago

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.