aws / aws/serverless-application-model

missing validation error with Domain HostedZoneId

Open
#1,383 0 comments 0 reactions 0 assignees View on GitHub
area/resource/api area/validation maintainer/need-response
Dominant language
Python
Stars
9.6k
Forks
2.5k
Avg merge
1d 11h
Merged PRs (30d)
7

Description

**Description:**

I missed to nested `HostedZoneId` under `Route53` and didn't get an validation error.

**Steps to reproduce the issue:**

1. create a stack with
```yaml
Resources:
ApiGateway:
Type: AWS::Serverless::Api
Properties:
Name: FooBar
StageName: Prod
Domain:
DomainName: !Ref Domain
CertificateArn: !Ref CertificateArn
HostedZoneId: Z1WXXXXXXC4O
```
2. deploy the stack

**Observed result:**

Deploy without creating an creating a domain.

**Expected result:**

An validation error.

**SAM Version**

1.20.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.