| plugin name | NPM page | Serverless plugin page |
|---|---|---|
| serverless-pseudo-parameters | https://npmjs.com/package/serverless-pseudo-parameters | https://www.serverless.com/plugins/serverless-pseudo-parameters |
| serverless-domain-manager | https://npmjs.com/package/serverless-domain-manager | https://www.serverless.com/plugins/serverless-domain-manager |
| serverless-plugin-custom-domain | https://npmjs.com/package/serverless-plugin-custom-domain | https://www.serverless.com/plugins/serverless-plugin-custom-domain |
| serverless-python-requirements | https://npmjs.com/package/serverless-python-requirements | https://www.serverless.com/plugins/serverless-python-requirements |
| serverless-offline | https://npmjs.com/package/serverless-offline | https://www.serverless.com/plugins/serverless-offline |
| serverless-log-forwarding | https://npmjs.com/package/serverless-log-forwarding | https://www.serverless.com/plugins/serverless-log-forwarding |
| serverless-plugin-typescript |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| foreach($_ in [System.TimeZoneInfo]::GetSystemTimeZones()){if($_.Id.StartsWith('Greenwich') -or $_.Id.StartsWith('GMT')){ echo $_ }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| functions: | |
| function1: | |
| tracing: Active | |
| environment: | |
| AWS_LAMBDA_EXEC_WRAPPER: '/opt/otel-handler' | |
| layers: | |
| - !Sub arn:aws:lambda:${AWS::Region}:901920570463:layer:aws-otel-nodejs-0-23-0:1 # https://github.com/aws-observability/aws-otel-lambda#aws-managed-opentelemetry-lambda-layers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| variable "env" { | |
| type = string | |
| } | |
| # Read API Gateway API | |
| # The name is always {stageName}-{serviceName}, unless apiName is specified | |
| # Doesn't work with nested stacks created by serverless-plugin-split-stacks | |
| # https://www.serverless.com/framework/docs/providers/aws/guide/serverless.yml#api-gateway-v1-rest-api | |
| data "aws_api_gateway_rest_api" "rest_api" { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM python:3.8-alpine | |
| COPY ./requirements.txt /app/requirements.txt | |
| WORKDIR /app | |
| RUN pip install -r requirements.txt | |
| # copy every content from the local file to the image | |
| COPY . /app | |
| # configure the container to run in an executed manner | |
| ENTRYPOINT [ "python" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data "aws_ecr_repository" "repo" { | |
| name = var.repository_name | |
| } | |
| locals { | |
| image = "${data.aws_ecr_repository.repo.repository_url}:${var.image_tag}" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const users = Array.from($('#people > tbody').children).filter( | |
| /** | |
| * @param {HTMLTableRowElement} tr | |
| */ | |
| tr => tr.id | |
| ).map( | |
| /** | |
| * @param {HTMLTableRowElement} tr | |
| */ | |
| tr => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const brands = ["Toyota", "Jeep", "Mazda", 'Volvo', 'Ford'].map(brand => { | |
| const url = new URL( | |
| "https://www.atlanticchevrolet.com" | |
| ); | |
| url.searchParams.append("compositeType", "preowned"); | |
| url.searchParams.append("make", brand); | |
| url.pathname = '/all-inventory/index.htm'; | |
| console.log(url.href); | |
| }); |
- Build: run
serverless package, and cache the packaged content - Deploy: load the cached package, run
serverless deploywith the--packageoption and save time on packaging.
- Easier to troubleshoot
- There's a known issue with serverless-plugin-typescript building too slowly. The more functions per stack, the slower the build is. If deployment fails because of some IAM permission issues, we can re-run from failed and save some time on the build. The built artifacts are already cached using
save_cache, we just need to load them - In the future we can integrate with an artifactory (e.g. JFrog etc)