[Production] In the middle of a prod push and `Sta...
# help
d
[Production] In the middle of a prod push and
StaticSite
is erroring out with
[Error at /prod-idx-main/GatsbySite] Found zones: [] for dns:subdomain.klick.com, privateZone:undefined, vpcId:undefined, but wanted exactly 1 zone
when we try to run
npx sst diff prod-idx-main --stage prod --profile NOT_TELLING
I’ve confirmed there IS a Hosted zone in the profile account named
<http://subdomain.klick.com|subdomain.klick.com>
f
hmm.. as a sanity check, maybe check the AWS account is correct?
s
I've seen something similar when I was trying to define a subdomain in one account, while the domain was owned by another. account
d
@Seth Geoghegan You guessed it… we were mistakenly trying to
sst deploy —profile MYPROFILE
vs
AWS_PROFILE=MYPROFILE sst deploy
🤦‍♂️
s
Ahh, I made a similar change to how I set profiles
For those finding this thread, it should be
Copy code
sst deploy —-profile=MYPROFILE
at least that's what worked for me
d
wait … what? that is what I was doing minus the = and it wasn’t working
so I didn’t realize that SST had added this option to the cli. But perhaps you need the
=
for it to work
s
Hmm, I could be wrong, going off of memory here
but yeah, I'm specifying --profile=<profile name>
is it possible you were deploying to whatever you have specified as a default environment?
in other words, the
-profile <profile name>
was silently ignored?