hundreds-printer-10986
06/27/2025, 7:59 PMBadRequestException: /endpointConfiguration/types/0 Invalid request input
the code
domain_name_resource = aws.apigateway.DomainName(f"api-{stage}-domain",
domain_name=custom_domain_name,
regional_certificate_arn=certificate.arn,
endpoint_configuration=aws.apigateway.DomainNameEndpointConfigurationArgs(
types="PRIVATE",
),
opts=pulumi.ResourceOptions(parent=self)
)
it works when types is set to "REGIONAL", but then the DomanNameAccessAssociation fails
domain_name_access = aws.apigateway.DomainNameAccessAssociation(f"api-{stage}-domain-name-access-association",
domain_name_arn=domain_name_resource.arn,
access_association_source_type="VPCE",
access_association_source=vpc_endpoint_id,
)
with the following error
BadRequestException: Invalid private custom domain name arn.
quick-house-41860
07/01/2025, 10:26 AMREGIONAL
to PRIVATE
?
The UpdateDomainName
API doesn't support replace
operations for the endpointConfiguration
. (see docs).