Open saikrishnagaddipati opened 1 year ago
Voting for Prioritization
Volunteering to Work on This Issue
Related: #29406 Related: #27689
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 judwaite@amazon.com, I'd like to learn more about your use case and needs.
@jud-waite currently workflows aren't supported by AS2. I am not using workflows with AS2 currently. But i am using workflows with SFTP. Would be great if we have the workflows supported by both SFTP & AS2.
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. https://github.com/hashicorp/terraform-provider-aws/issues/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:
operation error Transfer: DeleteWorkflow, InvalidRequestException: Workflow is still in use by server s-xxxxxxxxxxxxx
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
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