With SST `Api` what is the equivalent to get the R...
# help
d
With SST
Api
what is the equivalent to get the RestApi Id? …. I need to get the https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html#aws-resource-apigateway-restapi-return-values I need to be able to do this in CDK/SST
!Sub "${ApiGatewayRestApi}.execute-api.${AWS::Region}.<http://amazonaws.com|amazonaws.com>"
When we use
api.url
it includes the protocol
https://
which we do not want. Is it
api.id
?
t
We recently exposed
sst.Api.httpApiArn
is that what you're looking for?
Oh you're looking for just the ID component, one second
Try
api.httpApi.apiId
d
yup…. thats the one! thanks @thdxr!