Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/pip/elastic-apm-6.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Spacca authored Jan 24, 2024
2 parents d849b02 + 1f019f9 commit 3ad4c3f
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .internal/aws/cloudformation/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,10 @@ Metadata:
LicenseUrl: %codeUri%/LICENSE.txt
HomePageUrl: https://github.com/elastic/elastic-serverless-forwarder
SourceCodeUrl: https://github.com/elastic/elastic-serverless-forwarder
Outputs:
EsfLambdaFunctionARN:
Description: ARN of the ESF Lambda Function
Value: !GetAtt ApplicationElasticServerlessForwarder.Arn
EsfLambdaFunctionRoleARN:
Description: ARN of the IAM role associated with the ESF Lambda function
Value: !GetAtt ApplicationElasticServerlessForwarderRole.Arn
7 changes: 7 additions & 0 deletions .internal/aws/cloudformation/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,10 @@ Metadata:
ReadmeUrl: %codeUri%/README.md
HomePageUrl: https://github.com/elastic/elastic-serverless-forwarder
SourceCodeUrl: https://github.com/elastic/elastic-serverless-forwarder
Outputs:
EsfLambdaFunctionARN:
Description: ARN of the ESF Lambda Function
Value: !GetAtt ElasticServerlessForwarderApplication.Outputs.EsfLambdaFunctionARN
EsfLambdaFunctionRoleARN:
Description: The name of ESF Lambda Function
Value: !GetAtt ElasticServerlessForwarderApplication.Outputs.EsfLambdaFunctionRoleARN
6 changes: 3 additions & 3 deletions .internal/aws/scripts/dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# or more contributor license agreements. Licensed under the Elastic License 2.0;
# you may not use this file except in compliance with the Elastic License 2.0.

set -e
set -ex

echo " AWS CLI (https://aws.amazon.com/cli/), AWS SAM CLI (https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/install-sam-cli.html), docker and Python3.9 with pip3 required"
echo " Please, execute from root folder of the repo"
Expand Down Expand Up @@ -35,10 +35,10 @@ CODE_URI="${TMPDIR}/sources"

trap "rm -rf ${TMPDIR}" EXIT

aws s3api get-bucket-location --bucket "${BUCKET}" --region "${REGION}" || aws s3api create-bucket --acl private --bucket "${BUCKET}" --region "${REGION}" --create-bucket-configuration LocationConstraint="${REGION}"
aws s3api get-bucket-location --bucket "${BUCKET}" --region "${REGION}" || aws s3api create-bucket --acl private --bucket "${BUCKET}" --region "${REGION}" --create-bucket-configuration LocationConstraint="${REGION}" || aws s3api create-bucket --acl private --bucket "${BUCKET}" --region "${REGION}"

# Check if region is in AWS GovCloud and create bucket arn
if [[ ${REGION} == *"$gov"* ]]; then
if [[ "${REGION}" == *gov* ]]; then
BUCKET_ARN="arn:aws-us-gov:s3:::${BUCKET}"
AWS_OR_AWS_GOV="aws-us-gov"
else
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
### v1.11.0 - 2023/11/27
### v1.11.0 - 2023/12/08
##### Features
* Add user agent with information about ESF version and host environment: [#537](https://github.com/elastic/elastic-serverless-forwarder/pull/537)
* Remove calls to `sqs.DeleteMessage` and refactor storage decorators: [#544](https://github.com/elastic/elastic-serverless-forwarder/pull/544)
* Add outputs for Lambda function ARN and IAM Role ARN [#552](https://github.com/elastic/elastic-serverless-forwarder/pull/552)
##### Bug fixes
* Fix regression when both `json_content_type: single` and `expand_event_list_from_field` are set: [#553](https://github.com/elastic/elastic-serverless-forwarder/pull/553)

Expand Down
2 changes: 1 addition & 1 deletion requirements-lint.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ isort
mypy
types-PyYAML
types-mock
pyflakes>=3.0.0,<3.2.0
pyflakes>=3.0.0,<3.3.0
4 changes: 2 additions & 2 deletions requirements-tests.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
mock==5.1.0
pytest==7.4.3
pytest==7.4.4
pytest-cov==4.1.0
pytest-benchmark==4.0.0
coverage==7.3.3
coverage==7.4.0
simplejson==3.19.2
ujson==5.9.0
pysimdjson==5.0.2
Expand Down

0 comments on commit 3ad4c3f

Please sign in to comment.