diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e6ad8b3..12babbf 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -82,7 +82,7 @@ jobs: # Publish Lambda layer LAYER_VERSION=$(aws lambda publish-layer-version \ - --layer-name axiom-lambda-extension-$ARCH \ + --layer-name axiom-extension-$ARCH \ --region ${{ matrix.region }} \ --description 'axiom lambda extension to push lambda logs to https://axiom.co' \ --compatible-architectures $ARCH \ @@ -90,7 +90,7 @@ jobs: # THIS make the lambda layer only accessible by the Axiom AWS organization aws lambda add-layer-version-permission \ - --layer-name axiom-lambda-extension-$ARCH \ + --layer-name axiom-extension-$ARCH \ --version-number $LAYER_VERSION \ --statement-id axiomOrg \ --principal '*' \ @@ -149,7 +149,7 @@ jobs: # Publish Lambda layer LAYER_VERSION=$(aws lambda publish-layer-version \ - --layer-name axiom-lambda-extension-$ARCH \ + --layer-name axiom-extension-$ARCH \ --region ${{ matrix.region }} \ --description 'axiom lambda extension to push lambda logs to https://axiom.co' \ --compatible-architectures $ARCH \ @@ -157,7 +157,7 @@ jobs: # THIS makes the lambda layer public aws lambda add-layer-version-permission \ - --layer-name axiom-lambda-extension-$ARCH \ + --layer-name axiom-extension-$ARCH \ --version-number $LAYER_VERSION \ --statement-id allOrgs \ --principal '*' \ diff --git a/README.md b/README.md index 13fd71b..7844e2b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -# axiom-lambda-extension +# Axiom Lambda Extension -The axiom-lambda-extension can send the logs and platform events of your Lambda function to [Axiom](https://axiom.co/). Axiom will detect the extension and provide you with quick filters and a dashboard. +The axiom-extension can send the logs and platform events of your Lambda function to [Axiom](https://axiom.co/). Axiom will detect the extension and provide you with quick filters and a dashboard. But by using the axiom Lambda extension, you can forget the extra configuration regarding cloudwatch and subscription filters. @@ -22,7 +22,7 @@ to deny the Lambda Function access to cloudwatch by explicit IAM policies. ```shell $ aws lambda update-function-configuration --function-name my-function \ - --layers arn:aws:lambda::694952825951:layer:axiom-lambda-extension-: + --layers arn:aws:lambda::694952825951:layer:axiom-extension-: ```
@@ -32,23 +32,23 @@ All Lambda Layers | Region | arm64 | x86_64 | |---------|--------|---------| -| us-west-1 | `arn:aws:lambda:us-west-1:694952825951:layer:axiom-lambda-extension-arm64:` | `arn:aws:lambda:us-west-1:694952825951:layer:axiom-lambda-extension-x86_64:` | -| us-west-2 | `arn:aws:lambda:us-west-2:694952825951:layer:axiom-lambda-extension-arm64:` | `arn:aws:lambda:us-west-2:694952825951:layer:axiom-lambda-extension-x86_64:` | -| us-east-1 | `arn:aws:lambda:us-east-1:694952825951:layer:axiom-lambda-extension-arm64:` | `arn:aws:lambda:us-east-1:694952825951:layer:axiom-lambda-extension-x86_64:` | -| us-east-2 | `arn:aws:lambda:us-east-2:694952825951:layer:axiom-lambda-extension-arm64:` | `arn:aws:lambda:us-east-2:694952825951:layer:axiom-lambda-extension-x86_64:` | -| eu-west-1 | `arn:aws:lambda:eu-west-1:694952825951:layer:axiom-lambda-extension-arm64:` | `arn:aws:lambda:eu-west-1:694952825951:layer:axiom-lambda-extension-x86_64:` | -| eu-west-2 | `arn:aws:lambda:eu-west-2:694952825951:layer:axiom-lambda-extension-arm64:` | `arn:aws:lambda:eu-west-2:694952825951:layer:axiom-lambda-extension-x86_64:` | -| eu-west-3 | `arn:aws:lambda:eu-west-3:694952825951:layer:axiom-lambda-extension-arm64:` | `arn:aws:lambda:eu-west-3:694952825951:layer:axiom-lambda-extension-x86_64:` | -| eu-north-1 | `arn:aws:lambda:eu-north-1:694952825951:layer:axiom-lambda-extension-arm64:` | `arn:aws:lambda:eu-north-1:694952825951:layer:axiom-lambda-extension-x86_64:` | -| eu-central-1 | `arn:aws:lambda:eu-central-1:694952825951:layer:axiom-lambda-extension-arm64:` | `arn:aws:lambda:eu-central-1:694952825951:layer:axiom-lambda-extension-x86_64:` | -| ca-central-1 | `arn:aws:lambda:ca-central-1:694952825951:layer:axiom-lambda-extension-arm64:` | `arn:aws:lambda:ca-central-1:694952825951:layer:axiom-lambda-extension-x86_64:` | -| sa-east-1 | `arn:aws:lambda:sa-east-1:694952825951:layer:axiom-lambda-extension-arm64:` | `arn:aws:lambda:sa-east-1:694952825951:layer:axiom-lambda-extension-x86_64:` | -| ap-south-1 | `arn:aws:lambda:ap-south-1:694952825951:layer:axiom-lambda-extension-arm64:` | `arn:aws:lambda:ap-south-1:694952825951:layer:axiom-lambda-extension-x86_64:` | -| ap-southeast-1 | `arn:aws:lambda:ap-southeast-1:694952825951:layer:axiom-lambda-extension-arm64:` | `arn:aws:lambda:ap-southeast-1:694952825951:layer:axiom-lambda-extension-x86_64:` | -| ap-southeast-2 | `arn:aws:lambda:ap-southeast-2:694952825951:layer:axiom-lambda-extension-arm64:` | `arn:aws:lambda:ap-southeast-2:694952825951:layer:axiom-lambda-extension-x86_64:` | -| ap-northeast-1 | `arn:aws:lambda:ap-northeast-1:694952825951:layer:axiom-lambda-extension-arm64:` | `arn:aws:lambda:ap-northeast-1:694952825951:layer:axiom-lambda-extension-x86_64:` | -| ap-northeast-2 | `arn:aws:lambda:ap-northeast-2:694952825951:layer:axiom-lambda-extension-arm64:` | `arn:aws:lambda:ap-northeast-2:694952825951:layer:axiom-lambda-extension-x86_64:` | -| ap-northeast-3 | `arn:aws:lambda:ap-northeast-3:694952825951:layer:axiom-lambda-extension-arm64:` | `arn:aws:lambda:ap-northeast-3:694952825951:layer:axiom-lambda-extension-x86_64:` | +| us-west-1 | `arn:aws:lambda:us-west-1:694952825951:layer:axiom-extension-arm64:` | `arn:aws:lambda:us-west-1:694952825951:layer:axiom-extension-x86_64:` | +| us-west-2 | `arn:aws:lambda:us-west-2:694952825951:layer:axiom-extension-arm64:` | `arn:aws:lambda:us-west-2:694952825951:layer:axiom-extension-x86_64:` | +| us-east-1 | `arn:aws:lambda:us-east-1:694952825951:layer:axiom-extension-arm64:` | `arn:aws:lambda:us-east-1:694952825951:layer:axiom-extension-x86_64:` | +| us-east-2 | `arn:aws:lambda:us-east-2:694952825951:layer:axiom-extension-arm64:` | `arn:aws:lambda:us-east-2:694952825951:layer:axiom-extension-x86_64:` | +| eu-west-1 | `arn:aws:lambda:eu-west-1:694952825951:layer:axiom-extension-arm64:` | `arn:aws:lambda:eu-west-1:694952825951:layer:axiom-extension-x86_64:` | +| eu-west-2 | `arn:aws:lambda:eu-west-2:694952825951:layer:axiom-extension-arm64:` | `arn:aws:lambda:eu-west-2:694952825951:layer:axiom-extension-x86_64:` | +| eu-west-3 | `arn:aws:lambda:eu-west-3:694952825951:layer:axiom-extension-arm64:` | `arn:aws:lambda:eu-west-3:694952825951:layer:axiom-extension-x86_64:` | +| eu-north-1 | `arn:aws:lambda:eu-north-1:694952825951:layer:axiom-extension-arm64:` | `arn:aws:lambda:eu-north-1:694952825951:layer:axiom-extension-x86_64:` | +| eu-central-1 | `arn:aws:lambda:eu-central-1:694952825951:layer:axiom-extension-arm64:` | `arn:aws:lambda:eu-central-1:694952825951:layer:axiom-extension-x86_64:` | +| ca-central-1 | `arn:aws:lambda:ca-central-1:694952825951:layer:axiom-extension-arm64:` | `arn:aws:lambda:ca-central-1:694952825951:layer:axiom-extension-x86_64:` | +| sa-east-1 | `arn:aws:lambda:sa-east-1:694952825951:layer:axiom-extension-arm64:` | `arn:aws:lambda:sa-east-1:694952825951:layer:axiom-extension-x86_64:` | +| ap-south-1 | `arn:aws:lambda:ap-south-1:694952825951:layer:axiom-extension-arm64:` | `arn:aws:lambda:ap-south-1:694952825951:layer:axiom-extension-x86_64:` | +| ap-southeast-1 | `arn:aws:lambda:ap-southeast-1:694952825951:layer:axiom-extension-arm64:` | `arn:aws:lambda:ap-southeast-1:694952825951:layer:axiom-extension-x86_64:` | +| ap-southeast-2 | `arn:aws:lambda:ap-southeast-2:694952825951:layer:axiom-extension-arm64:` | `arn:aws:lambda:ap-southeast-2:694952825951:layer:axiom-extension-x86_64:` | +| ap-northeast-1 | `arn:aws:lambda:ap-northeast-1:694952825951:layer:axiom-extension-arm64:` | `arn:aws:lambda:ap-northeast-1:694952825951:layer:axiom-extension-x86_64:` | +| ap-northeast-2 | `arn:aws:lambda:ap-northeast-2:694952825951:layer:axiom-extension-arm64:` | `arn:aws:lambda:ap-northeast-2:694952825951:layer:axiom-extension-x86_64:` | +| ap-northeast-3 | `arn:aws:lambda:ap-northeast-3:694952825951:layer:axiom-extension-arm64:` | `arn:aws:lambda:ap-northeast-3:694952825951:layer:axiom-extension-x86_64:` |
@@ -75,7 +75,7 @@ resource "aws_lambda_function" "test_lambda" { } layers = [ - "arn:aws:lambda::694952825951:layer:axiom-lambda-extension-:" + "arn:aws:lambda::694952825951:layer:axiom-extension-:" ] } ``` @@ -93,7 +93,7 @@ module "lambda_function" { source_path = "../src/lambda-function1" layers = [ - "arn:aws:lambda::694952825951:layer:axiom-lambda-extension-:" + "arn:aws:lambda::694952825951:layer:axiom-extension-:" ] environment_variables = {