poll status after creating data repository association

0

Does the aws cli provide a way of polling the "Lifecycle" value of a data repository association

$ aws fsx describe-data-repository-associations
{
    "Associations": [
        {
            "AssociationId": "dra-XXX",
            "ResourceARN": "arn:aws:fsx:YYY",
            "FileSystemId": "fs-ZZZ",
            "Lifecycle": "CREATING",
            "DataRepositoryPath": "s3://RRR",
            "BatchImportMetaDataOnCreate": true,
            "ImportedFileChunkSize": 1024,
            "S3": {
                "AutoImportPolicy": {
                    "Events": [
                        "NEW",
                        "CHANGED",
                        "DELETED"
                    ]
                },
                "AutoExportPolicy": {
                    "Events": [
                        "NEW",
                        "CHANGED",
                        "DELETED"
                    ]
                }
            },
            "Tags": [],
            "CreationTime": 1678000000.999
        }
    ]
}

to become AVAILABLE after running

aws fsx create-data-repository-association .., similar to the command

aws cloudformation wait stack-create-complete ..?

asked a year ago241 views
1 Answer
1
Accepted Answer

There is none currently.

You could leverage Client-side filtering https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html to extract the Lifecycle field and loop on it programmatically until it becomes AVAILABLE perhaps ?

ex.:

$ aws fsx describe-data-repository-associations --query 'Associations[*].Lifecycle'
AWS
JS-AWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions