serverless-application-model icon indicating copy to clipboard operation
serverless-application-model copied to clipboard

Have AWS SAM call an UPSERT rather than CREATE when Attaching a domain to API Gateway

Open SilasCrosby opened this issue 9 months ago • 1 comments

When you attach a domain to AWS SAM AWS::Serverless::API

Aws sam calls Create, doesn't upsert make more sense?

  Domain:
    CertificateArn: arn:aws:acm:us-east-1:1324568975665:certificate/111111-11111-1111--111-1-111
    DomainName: !Sub ${apiDomain}
    BasePath: ""
    Route53:
      HostedZoneId: ZXXXXXXXXXXXXXX
    EndpointConfiguration: REGIONAL

SilasCrosby avatar Mar 28 '25 20:03 SilasCrosby

Can you explain a little bit more about this? SAM doesn't make any API calls and it just generates the CloudFormation resources, like the one you posted here. What do you mean with "Aws sam calls Create" in this case? If you mean an issue with the underlying CloudFormation resource, then we might try to pass the feedback to the corresponding API Gateway team, but it's not a SAM-specific issue.

But maybe if you explain a little bit more, we could understand how this is relevant to SAM in particular.

valerena avatar Apr 07 '25 18:04 valerena