To migrate https://github.com/marketplace/actions/aws-lambda-deploy to using yml. Your workflow looks something similar to this:
action "Upload Simple Lambda" {
uses = "appleboy/lambda-action@master"
secrets = [
"AWS_ACCESS_KEY_ID",
"AWS_SECRET_ACCESS_KEY",
"AWS_REGION"
]
args = [
"--function-name", "hello-world",
"--source", "main.py"
]
}
Migrating this to YML
name: Upload Simple Lambda
on: [push]
jobs:
build:
name: Upload Simple Lambda
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: appleboy/lambda-action@v0.0.1
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION: eu-west-1
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
with:
args: --function-name hello-world --source main.py
Note that you need to add the Access Key ID and Secret Access Key to Github Security