创建数据仓库关联后轮询其状态。

0

【以下的问题经过翻译处理】 AWS CLI提供了检查数据仓库关联的“Lifecycle”值的轮询方式吗?

$ 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
        }
    ]
}

“aws fsx create-data-repository-association”命令运行后,是否会像“aws cloudformation wait stack-create-complete”命令一样将“Lifecycle”值变为AVAILABLE

profile picture
ESPECIALISTA
feita há 5 meses51 visualizações
1 Resposta
0

【以下的回答经过翻译处理】 目前没有。
您可以利用客户端过滤器 提取Lifecycle字段并在程序上进行循环查询,直到它变为 AVAILABLE 示例:

$ aws fsx describe-data-repository-associations --query 'Associations[*].Lifecycle'
profile picture
ESPECIALISTA
respondido há 5 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas