Skip to content

Instantly share code, notes, and snippets.

@nidhi-canopas
Created September 22, 2022 07:29
Show Gist options
  • Save nidhi-canopas/47a0dbee7f41f3d2a9e812d108e9d8f9 to your computer and use it in GitHub Desktop.
Save nidhi-canopas/47a0dbee7f41f3d2a9e812d108e9d8f9 to your computer and use it in GitHub Desktop.
Resources:
LambdaApiGatewayInvoke:
Type: AWS::Lambda::Permission
Properties:
Action: lambda:InvokeFunction
FunctionName: !GetAtt LambdaFunction.Arn
Principal: apigateway.amazonaws.com
SourceArn: !Sub arn:aws:execute-api:${AWS::Region}:${AWS::AccountId}:${ApiGateway}/*/*/*
ApiGatewayDeployment:
Type: AWS::ApiGateway::Deployment
DependsOn:
- ApiGatewayResourceProxyMethod
Properties:
RestApiId: !Ref ApiGateway
StageName: !Ref ApiGatewayStageName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment