Yaml模板中出现了模板参数验证问题。

0

【以下的问题经过翻译处理】 我有参数变量。如何在一行中引用多个引用变量? 参数:

 s3Bucket:
    类型:字符串
    描述:-------
    默认值:'...'
 s3Path:
     类型:字符串
     描述:-------
     默认值:'...'
 libraryFile:
     类型:字符串
     描述:------
     默认值:'...'

S3Bucket:!Ref s3Bucket S3Key:!Ref s3Path /libraryFile S3Key 抛出验证错误。

1 Risposta
0

【以下的回答经过翻译处理】 如果我理解你的问题正确的话,你需要的是 Fn::Sub。例如:

S3Bucket: !Sub ${s3Bucket}/${s3Path}/${libraryFile}

profile picture
ESPERTO
con risposta 5 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande