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

gefragt vor einem Jahr251 Aufrufe
1 Antwort
1
Akzeptierte Antwort

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
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen