i am creating an api gateway in my template :
functions
test:
handler: test.handler
events:
- http:
path: save-subscription
method: post
cors: false
later on i want to use the api address xxxxxxx.execute-api.us-east-1.amazonaws.com/dev/
as a domain name of an oigin of my cloudfront
Origins:
- DomainName: xxxxxxx.execute-api.us-east-1.amazonaws.com
OriginPath: dev
is there a way to reference the api address dynamically?
Thanks