I have a stack which depends on a value which is exported in a different stack (value is supertest)
I try to use it as below
OriginAccessIdentity: !Join [ "", [ "origin-access-identity/cloudfront/", !ImportValue: !Sub "supertest-${Environment}" ] ]
But I got a syntax error while this works (hardcoding the supertest value)
OriginAccessIdentity: !Join [ "", [ "origin-access-identity/cloudfront/", "lol-dev" ] ]