(All) Fields of DomainNameAttributes should be made optional
See original GitHub issueIn order to be able to create an Alias record on Route53 with an API Gateway target, one needs to use the DomainNameAttributes
interface. However, currently all fields of DomainNameAttributes
are required, which makes it difficult to use.
Reproduction Steps
- Create a public hosted zone on Route53.
- Try to add an
ARecord
targeting an existing api gateway. - The
ARecord
constructor requirestarget
field of typeRecordTarget
. - The
RecordTarget
constructor takes a field,aliasTarget
, of typeIAliasRecordTarget
. - The constructor of
ApiGatewayDomain
, which implementsIAliasRecordTarget
, requires an argument of type,IDomainName
. - An object of type
IDomainName
can be obtained by callingDomainName.fromDomainNameAttributes()
. fromDomainNameAttributes()
takes an argument of typeDomainNameAttributes
.- There is currently no easy way to construct a
DomainNameAttributes
object because all of its properties are required,domainName
,domainNameAliasHostedZoneId
, anddomainNameAliasTarget
.
Error Log
N/A
Environment
- CLI Version - 1.30.0 (build 4f54ff7) :
- Framework Version: 1.30.0 ;
- OS Ubuntu 18:
- Language Typescript:
Other
This is needed, among other things, to support naked domains (zone apex record) pointing to the API Gateway.
This is 🐛 Bug Report
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
interface DomainNameAttributes · AWS CDK
The values are placeholders you should change. import * as apigateway from '@aws-cdk/aws-apigateway'; const domainNameAttributes: apigateway.
Read more >awscdkapigatewayv2alpha - Go Packages
Returns true if the construct was created by CDK, and false otherwise. Experimental. ... Authorizer IHttpRouteAuthorizer `field:"optional" json:"authorizer" ...
Read more >Cisco Prime Network Registrar 10.1 DHCP User Guide
Different use-cases for DHCPv4 and DHCPv6 DNS update made server design ... in the DHCP packet in fields other than the option space....
Read more >Oracle Transportation and Global Trade Management Cloud ...
For example, a) new or expanded BI subject areas need to first be ... request contained all GID, XID and Domain Name attributes...
Read more >DomainTools Iris Investigate - Connectors - Microsoft Learn
It enables easy pivoting through different domain name attributes and exposes meaningful insights with connection counts on most data fields.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@nija-at’s solution is totally ok for certain use cases, but consider the scenario to manage
route53
andapi-gateway
stacks separately in different repositories, the below seems impossible and even the documentation does not helped with such field domainNameAliasTarget:Closing for now since there hasn’t been a response in a while. Feel free to reopen.