Below is the code snippet where i am trying to parameterize the variable name using PYTHON but unable to do so.
Is it even possible?
PROJECT_ID = 'dev' # this will change according to environment(like test,prod)
ENV=PROJECT_ID.upper()
#consider these values needs to be present in the code, ie., we cannot parameterize the VALUES of SA_DEV, SA_TEST, SA_PROD
SA_DEV = f'{PROJECT_ID}.account.com'
SA_TEST = f'{PROJECT_ID}.account.com'
SA_PROD = f'{PROJECT_ID}.account.com'
chain=SA_{ENV} #this value i want to capture as per environment
Like for PROJECT_ID='test'
chain should be SA_TEST
and similarly for
PROJECT_ID='prod', chain should be SA_PROD