Skip to content

Commit

Permalink
Added api gateway domain
Browse files Browse the repository at this point in the history
  • Loading branch information
shaiq-dev committed Mar 12, 2024
1 parent 1fcb784 commit 54d22c7
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions deploy/stacks/lambda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ Parameters:
AllowedOrigins:
Type: String
Description: Allowed origins for resume api
DomainName:
Type: String
Default: *.shaiqkar.dev

Resources:

Expand Down Expand Up @@ -50,6 +53,27 @@ Resources:
Properties:
RestApiId: !Ref ApiGateway
StageName: !Ref ApiGatewayStageName

ApiGatewayDomainCertificate:
Type: AWS::CertificateManager::Certificate
Properties:
DomainName: *.shaiqkar.dev
ValidationMethod: EMAIL

ApiGatewayDomainName:
Type: AWS::ApiGatewayV2::DomainName
Properties:
DomainName: resume.shaiqkar.dev
DomainNameConfigurations:
- CertificateArn: !Ref ApiGatewayDomainCertificate

ApiGatewayApiMapping:
Type: AWS::ApiGatewayV2::ApiMapping
Properties:
ApiId: !Ref ApiGateway
DomainName: !Ref ApiGatewayDomainName
Stage: !Ref ApiGatewayStageName
ApiMappingKey: ""

LambdaFunction:
Type: AWS::Lambda::Function
Expand Down

0 comments on commit 54d22c7

Please sign in to comment.