如何将blobAttributeValue传递给Step Function?

0

【以下的问题经过翻译处理】 我有一个状态机需要设置 EC2 实例的 UserData,为此我使用了 EC2 ModifyInstanceAttribute 盒子,但是我无法弄清如何设置 UserData(根据 AWS 文档,它必须是 blobAttributeValue 类型)。例如:

{
  "InstanceId.$": "$.Instance",
  "UserData": "Peppa Pig"
}

无论我将其设置为“Peppa Pig”还是其 base64 表示,当我尝试保存状态机时,它都会失败并显示“Cannot construct instance of software.amazon.awssdk.services.ec2.model.BlobAttributeValue$BuilderImpl (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('Peppa Pig')”。

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

【以下的回答经过翻译处理】 嗨,Vitaly,

请你试试这个?

{
  "InstanceId.$": "$.Instance",
  "UserData": {"Value": "Peppa Pig"}
}

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