Why is following format not working giving error "the attribute in Fn::ImportValue must be a string or a function that returns a string"?
Source: !Join [":", [!ImportValue [!Sub "${ProductEnvironment}-${ProductName}-IngressGreengrassProxyFunctionArn"], !ImportValue [!Sub "${ProductEnvironment}-${ProductName}-IngressGreengrassProxyFunctionAlias"]]]
but it works if I rewrite it as:
Source: !Join
- ":"
- - Fn::ImportValue: !Sub "${ProductEnvironment}-${ProductName}-IngressGreengrassProxyFunctionArn"
- Fn::ImportValue: !Sub "${ProductEnvironment}-${ProductName}-IngressGreengrassProxyFunctionAlias"