ion
ion copied to clipboard
The argument "zone_id" is required
Hello!
My sst.config.ts looks like this (the run function):
async run() {
new sst.aws.Nextjs('MyApp', {
domain: {
name: 'app.mydomain.com',
aliases: ['app-qa.mydomain.com'],
cert: 'arn:aws:acm:us-east-1:123123123123123:certificate/9999999',
}
})
},
It had been working fine for several weeks, but yesterday all of a sudden we started seeing this issue in our GitHub Actions pipelines:
✕ Failed
MyCompanyMyAppCdnAAAARecordmyappmycompanycom aws:route53:Record aws:route53/record:Record resource 'MyCompanyMyAppCdnAAAARecordmyappmycompanycom' has a problem: Missing required argument. The argument "zone_id" is required, but no definition was found.. Examine values at 'MyCompanyMyAppCdnAAAARecordmyappmycompanycom.zoneId'.
This is likely because in our pipelines we always install latest CLI:
- name: Install SST
run: curl -fsSL https://ion.sst.dev/install | bash
- name: Unlock SST
run: sst unlock --stage prod
- name: Refresh
run: sst refresh --stage prod
- name: Deploy
run: sst deploy --stage prod --verbose
So I'm assuming some new change in the CLI introduced this issue.
It's unclear to me where I should provide the zone_id, and I was also wondering if SST can't use AWS CLI to figure the zone_id automatically based on the domain name argument (e.g. mydomain.com).
Thanks for such a great new engine!