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

FSX: Cannot create release repository task #3935

Closed
apetheriotis opened this issue Nov 16, 2023 · 3 comments
Closed

FSX: Cannot create release repository task #3935

apetheriotis opened this issue Nov 16, 2023 · 3 comments
Assignees
Labels
bug This issue is a confirmed bug. fsx p3 This is a minor priority issue response-requested Waiting on additional information or feedback.

Comments

@apetheriotis
Copy link

apetheriotis commented Nov 16, 2023

Describe the bug

Based on the FSX docs, I'd expect that I would be able to create a release_repository_task with boto3. Though it seems I get an error when trying to create a task of type RELEASE_DATA_FROM_FILESYSTEM

Expected Behavior

A release task to be created.

Current Behavior

Parameter validation failed:\nUnknown parameter in input: \"ReleaseConfiguration\", must be one of: Type, Paths, FileSystemId, Report, ClientRequestToken, Tags, CapacityToRelease"

Reproduction Steps

Use the following code:

    client = boto3.client('fsx')

    response = client.create_data_repository_task(
        FileSystemId='fs-foobar',
        Type='RELEASE_DATA_FROM_FILESYSTEM',
        Paths=[
            'studio',
        ],
        Report={
            'Enabled': True,
            'Path': 's3://foobar-s3-bucket',
            'Format': 'REPORT_CSV_20191124',
            'Scope': 'FAILED_FILES_ONLY'
        },
        ReleaseConfiguration={'DurationSinceLastAccess':{'Unit':'DAYS','Value':0}},
    )

Possible Solution

No response

Additional Information/Context

If remove the ReleaseConfiguration argument then I get

"An error occurred (BadRequest) when calling the CreateDataRepositoryTask operation: When creating a task of type RELEASE_DATA_FROM_FILESYSTEM, you must provide ReleaseConfiguration."

SDK version used

boto3-1.26.90

Environment details (OS name and version, etc.)

AWS Lambda - python 3.10

@apetheriotis apetheriotis added bug This issue is a confirmed bug. needs-triage This issue or PR still needs to be triaged. labels Nov 16, 2023
@RyanFitzSimmonsAK RyanFitzSimmonsAK self-assigned this Nov 16, 2023
@RyanFitzSimmonsAK RyanFitzSimmonsAK added p3 This is a minor priority issue fsx and removed needs-triage This issue or PR still needs to be triaged. labels Nov 16, 2023
@RyanFitzSimmonsAK
Copy link
Contributor

Hi @apetheriotis, thanks for reaching out. Based on the changelog, it looks like support for RELEASE_DATA_FROM_FILESTREAM type tasks was added in version 1.28.23 of Boto3. Could you upgrade to a more recent version and try your script again? Thanks!

@RyanFitzSimmonsAK RyanFitzSimmonsAK added the response-requested Waiting on additional information or feedback. label Nov 16, 2023
@apetheriotis
Copy link
Author

@RyanFitzSimmonsAK thanks for the update. Indeed, the latest version of boto3 seems to have full support for that and it seems it's working as expected! Thank you :)

Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a confirmed bug. fsx p3 This is a minor priority issue response-requested Waiting on additional information or feedback.
Projects
None yet
Development

No branches or pull requests

2 participants