Skip to content

tiagofrancafernandes/AWS-Lambda-Function-Using-PHP8-Runtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using repo

Plain function file

// examples/app/index.php

function func(array $event): string
{
    return json_encode([
        'statusCode' => 200, // or other
        'headers' => [
            'any_header' => 'value'
        ],
        'body' => 'Success',
    ]);
}

CMD params

Se o arquivo for examples/app/index.php e a função alvo for func, o CMD precisa ser examples/app/index.func.

Exemplo:

CMD [ "examples/app/index.func" ]

Rebuild and deployment via CLI

( ! ) First copy utils/build-and-push-demo.sh to utils/build-and-push.sh and change info.

bash ./utils/build-and-push.sh

About

Lambda Function Using PHP8 Runtime

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published