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 ..?

已提問 1 年前檢視次數 251 次
1 個回答
1
已接受的答案

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
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南