Coder Social home page Coder Social logo

lambda-function-url's Introduction

Create & Invoke Lambda Function URLs

This is a companion repo for my youtube video explaining the process of creating and invoking Lambda Function URLs.

YouTube Video: https://youtu.be/QQsicqtY3J8

URLs

Multi Env CDK Youtube Video: https://youtu.be/H7Ynxkk_jss

Develop, Test & Deploy TypeScript Lambda Functions: https://youtu.be/DUNEuhOQ1k4

AWS Profile NPM Package: https://www.npmjs.com/package/awsprofile

Git Branch NPM Package: https://www.npmjs.com/package/git-branch

AWS CDK Documentation: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-construct-library.html

Commands & Code Snippets

Create Lambda Function URL Using AWS CLI

aws lambda create-function-url-config \
    --function-name function-urls-demo-private1-develop \
    --auth-type AWS_IAM \
    --cors '{"AllowCredentials":false,"AllowHeaders":[],"AllowMethods":[],"AllowOrigins":["*"],"ExposeHeaders":[]}'

Code Snippet for Function URL CfnResource in CDK

new CfnResource(this, 'private2FunctionUrl', {
  type: 'AWS::Lambda::Url',
  properties: {
    TargetFunctionArn: lambdaFunction.functionArn,
    AuthType: 'AWS_IAM',
    Cors: {
      AllowCredentials: false,
      AllowOrigins: ['*'],
    },
  },
});

Get Lambda Function URL Config Using AWS CLI

aws lambda get-function-url-config --function-name <your-function-name>

lambda-function-url's People

Contributors

kheriox-technologies avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.