我想在模板的“元数据”部分中使用fn::ImportValue
来替换${ECSCluster}
值:
files:
"/etc/awslogs/awslogs.conf":
content: !Sub |
[general]
state_file = /var/lib/awslogs/agent-state
[/var/log/dmesg]
file = /var/log/dmesg
log_group_name = ${ECSCluster}-/var/log/dmesg
ECSCluster:
Fn::ImportValue:
!Sub ${EnvironmentName}-ECSClusterName
那有可能吗?
Merci A