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] S3 Task Creation Failed - due to the Invalid IAM policy #150

Open
1 task
YikaiHu opened this issue May 9, 2024 · 3 comments
Open
1 task

[Bug] S3 Task Creation Failed - due to the Invalid IAM policy #150

YikaiHu opened this issue May 9, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@YikaiHu
Copy link
Collaborator

YikaiHu commented May 9, 2024

Describe the bug
The task fails to create and in the corresponding cloudformation stack it is seen that the iam policy fails to create with error:
Resource handler returned message: “Invalid policy (Service: Iam, Status Code: 400, Request ID: 852aa9bf-a51c-4588-bd84-e66357f7a67c)” (RequestToken: 4f9f8300-6a47-9acd-3dec-278c5272917d, HandlerErrorCode: InvalidRequest)

image

This deployment failure is due to changes in the underlying IAM logic of AWS. As a result, this issue may occur in some new AWS accounts.

To Reproduce
Create a S3 Transfer Task.

Please complete the following information about the solution:

  • Version: v2.6.1
@YikaiHu YikaiHu added the bug Something isn't working label May 9, 2024
@YikaiHu
Copy link
Collaborator Author

YikaiHu commented May 9, 2024

Workaround for S3 Plugin User

If you are only using S3 Plugin (not DTH Console), you can using this patch template

DataTransferS3Stack-fix-0509.json

@YikaiHu
Copy link
Collaborator Author

YikaiHu commented May 9, 2024

Workaround for DTH Web Console User

Step 1 Download the patched cloudformation template

DataTransferS3Stack-fix-0509.json

Step 2 Upload this template to a S3 bucket, and public this template.

  • You can choose any S3 bucket
  • You have to make this template public
  • Copy the template's Object URL, this URL will be used in Step3
image

Step 3 Update the Lambda Environment variables

Go to AWS Lambda Console.
Search for Data Transfer Hub - API V1

image

And change the PLUGIN_TEMPLATE_S3EC2 to your patched template URL
image

Step 4 Go back to DTH console, clone or create a new S3 transfer task.

@timandy
Copy link

timandy commented Jun 13, 2024

I have the same problem. Can I rollback to the old version to solve the problem. @YikaiHu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants