I am trying to use s3 with api gateway. I have a stage variable that stored bucket name for each stage. But not able to use it in path override or path parameters

instead of bucket/{key} want to use stageVariable.variable/{key}. I have tried using ${stageVariable.variable}/{key},'${stageVariable.variable}'/{key} Nothing is working.

