Skip to content

Instantly share code, notes, and snippets.

@lantrix
Created February 17, 2020 07:57
Show Gist options
  • Save lantrix/535cb3048cb85e40212867914dda101b to your computer and use it in GitHub Desktop.
Save lantrix/535cb3048cb85e40212867914dda101b to your computer and use it in GitHub Desktop.
Buildkite pipeline example for Lambda PowerShell Build environment to deploy PowerShell .NET CORE 2.1 Lambda on AWS
env:
VERSION: 0.1.${BUILDKITE_BUILD_NUMBER}
steps:
- label: ":docker: Build Powershell Lambda Environment"
command: 'echo Building PS Docker Image...'
agents:
queue: myQueue
plugins:
- seek-oss/docker-ecr-cache#v1.5.0
- docker#v3.5.0:
environment:
- AWS_REGION
- AWS_DEFAULT_REGION
- wait
- label: ':aws-lambda: Deploy Lambda'
command: pwsh -c ./Deploy-Lambda.ps1
env:
ENVIRONMENT: "dev"
agents:
queue: myQueue
plugins:
- seek-oss/docker-ecr-cache#v1.5.0
- docker#v3.5.0:
shm-size: 512mb
environment:
- AWS_REGION
- AWS_DEFAULT_REGION
- VERSION
- ENVIRONMENT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment