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

preguntada hace un año251 visualizaciones
1 Respuesta
1
Respuesta aceptada

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
respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas