-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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]: Unable to add/remove AS2 #31273
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Hi @saikrishnagaddipati, do you have a need to use workflows with AS2? Or only with SFTP? Beyond the expectation of adding/removing AS2 from the server, would you expect workflows to work / be invoked by both SFTP and AS2? Currently, workflows are not supported with AS2, though we do plan to add support in the coming months. Could you reach out to me at [email protected], I'd like to learn more about your use case and needs. |
@jud-waite |
Hello @saikrishnagaddipati, could you please attempt to enable AS2 on an SFTP server without a workflow? Do you receive an error? What about creating a new AS2 server from Terraform with or without a workflow? Do you receive an error then? We are currently working to support Terraform for our AS2 protocol, but is likely the source of your problem. Please watch this issue to be notified when we official support AS2 for Terraform. #29406 |
Hi, this is happening for us on Terraform 1.3.1 and hashicorp/aws 5.55.0. For us it has nothing to do with AS2. To reproduce, create an SFTP server with an associated workflow with Terraform. Then change something about the workflow that forces replacement (e.g., change one of the step names). Terraform tries to delete the workflow to replace it, but AWS doesn't allow it with:
Workaround is to use the console to create a dummy Workflow, change the server to point to the dummy workflow, then run the Terraform, which can now delete the original workflow, re-create it, and update the Transfer server to point to the new workflow. Then manually delete the dummy Workflow. I assume there's some limitation on the AWS API side that doesn't allow un-associating a workflow with a transfer server, it just allows switching to a different workflow. At least, in the console it doesn't allow it. |
Terraform Core Version
0.14.11
AWS Provider Version
4.66.1
Affected Resource(s)
aws_transfer_server
identity_provider_type = "SERVICE_MANAGED"
protocols = ["AS2","SFTP"]
Expected Behavior
AS2 protocol should be added/removed to AWS transfer server.
Actual Behavior
AS2 tries to delete transfer workflow and fails because workflow is still use by transfer server.
Relevant Error/Panic Output Snippet
Error: deleting Transfer Workflow (w-434d33afbecbbf7e4): InvalidRequestException: Workflow is still in use by server s-81c8f4c167ca42109
Terraform Configuration Files
Steps to Reproduce
create a transfer server with "SFTP" protocol with workflow_details.
After the transfer server with SFTP is created.
Add AS2 protocol and apply terraform.
terraform fails with below error.
Error: deleting Transfer Workflow (w-434d33afbecbbf7e4): InvalidRequestException: Workflow is still in use by server s-81c8f4c167ca42109
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
My code with workflow
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: