This message was deleted.
# general
s
This message was deleted.
b
hey @gifted-student-18589 that parameter
apiGatewayId
just needs to be a unique field for the cloudfront distribution. You can't use the
arn
here. Try using the API gateway name instead
g
sorry, not sure what you meant by
apiGatewayId
don’t see that param anywhere 🤔 gonna check if I missed it
I did try changing the config like so:
it still basically says the same thing
Copy code
The parameter origin name cannot contain a colon.
gonna try a couple of things @billowy-army-68599
I think I found it.. let me just confirm it
so basically, the problem was here
the domain must not have
https://
before, which is logical
now I’m just trying to fetch the domain from the
api
response 😄
api.url
represents the whole URL, so now I’m searching for a property that will give me the domain immediately (I cannot perform any string operations on the
api.url
since it’s not string
made it like this in the end
not nice, but couldn’t find another way to get the domain-only from the ApiGW
final version p.s.
parse
comes from:
Copy code
import { parse } from "url";
we can “close” this