Skip to content

Commit e31b5ee

Browse files
authored
Merge pull request #212 from SumoLogic/sumo_252260
SAM and Telemetry updated for AWSO 2.11.0
2 parents 393c57f + fcd84b0 commit e31b5ee

File tree

13 files changed

+51
-28
lines changed

13 files changed

+51
-28
lines changed

awsautoenableS3Logging/packaged.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ Metadata:
2424
- s3logging
2525
- flowlogs
2626
Name: sumologic-s3-logging-auto-enable
27-
SemanticVersion: 1.0.15
27+
SemanticVersion: 1.0.16
2828
SourceCodeUrl: https://github.com/SumoLogic/sumologic-aws-lambda/tree/main/awsautoenableS3Logging
29-
LicenseUrl: s3://appdevstore/AutoEnableS3Logs/v1.0.15/978602b5b9ec16f8bab0e38fd6b3998f
30-
ReadmeUrl: s3://appdevstore/AutoEnableS3Logs/v1.0.15/d05d411471e0bb4db3389f2523f515f0
29+
LicenseUrl: s3://appdevstore/AutoEnableS3Logs/v1.0.16/978602b5b9ec16f8bab0e38fd6b3998f
30+
ReadmeUrl: s3://appdevstore/AutoEnableS3Logs/v1.0.16/d05d411471e0bb4db3389f2523f515f0
3131
SpdxLicenseId: Apache-2.0
3232
Mappings:
3333
Region2ELBAccountId:
@@ -229,7 +229,7 @@ Resources:
229229
Type: AWS::Serverless::Function
230230
Condition: auto_enable_new
231231
Properties:
232-
CodeUri: s3://appdevstore/sumo_app_utils/v2.0.18/sumo_app_utils.zip
232+
CodeUri: s3://appdevstore/sumo_app_utils/v2.0.19/sumo_app_utils.zip
233233
Handler: awsresource.enable_s3_logs
234234
Runtime: python3.13
235235
Role:
@@ -467,7 +467,7 @@ Resources:
467467
Properties:
468468
Handler: main.handler
469469
Runtime: python3.13
470-
CodeUri: s3://appdevstore/sumo_app_utils/v2.0.18/sumo_app_utils.zip
470+
CodeUri: s3://appdevstore/sumo_app_utils/v2.0.19/sumo_app_utils.zip
471471
MemorySize: 128
472472
Timeout: 900
473473
Role:

awsautoenableS3Logging/sumologic-s3-logging-auto-enable.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Metadata:
2424
- s3logging
2525
- flowlogs
2626
Name: sumologic-s3-logging-auto-enable
27-
SemanticVersion: 1.0.15
27+
SemanticVersion: 1.0.16
2828
SourceCodeUrl: https://github.com/SumoLogic/sumologic-aws-lambda/tree/main/awsautoenableS3Logging
2929
LicenseUrl: ./LICENSE
3030
ReadmeUrl: ./README.md
@@ -208,7 +208,7 @@ Resources:
208208
Type: 'AWS::Serverless::Function'
209209
Condition: auto_enable_new
210210
Properties:
211-
CodeUri: s3://appdevstore/sumo_app_utils/v2.0.18/sumo_app_utils.zip
211+
CodeUri: s3://appdevstore/sumo_app_utils/v2.0.19/sumo_app_utils.zip
212212
Handler: "awsresource.enable_s3_logs"
213213
Runtime: python3.13
214214
Role: !GetAtt SumoLambdaRole.Arn
@@ -385,7 +385,7 @@ Resources:
385385
Properties:
386386
Handler: main.handler
387387
Runtime: python3.13
388-
CodeUri: s3://appdevstore/sumo_app_utils/v2.0.18/sumo_app_utils.zip
388+
CodeUri: s3://appdevstore/sumo_app_utils/v2.0.19/sumo_app_utils.zip
389389
MemorySize: 128
390390
Timeout: 900
391391
Role:

cloudformation-telemetry/install_python_dependencies.sh

100644100755
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
#!/bin/bash
22

33
# Pull the Amazon Linux image from Docker Hub
4-
docker pull amazonlinux
4+
# aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws
5+
docker pull public.ecr.aws/lambda/python:3.13-x86_64
56

67
# Run the Amazon Linux container in detached mode
7-
docker run -d --name telemetry amazonlinux tail -f /dev/null
8+
docker run -d --name telemetry public.ecr.aws/lambda/python:3.13-x86_64 lambda_function.lambda_handler
89

9-
# Install Python, pip, and other dependencies inside the container
10-
docker exec -it telemetry /bin/bash -c "yum update -y && yum install -y python3-pip zip && python3 -m pip install virtualenv"
10+
# Install dependencies inside the container
11+
docker exec -it telemetry /bin/bash -c "dnf install -y zip"
1112

1213
# Create a virtual environment and install dependencies
1314
docker exec -it telemetry /bin/bash -c "python3 -m venv temp-venv && source temp-venv/bin/activate && mkdir telemetry && cd telemetry && pip install crhelper sumologic-appclient-sdk future_fstrings setuptools -t ."
1415

1516
# Copy python file from host to container
16-
docker cp ./lambda_function.py telemetry:/telemetry
17+
docker cp ./lambda_function.py telemetry:/var/task/telemetry
18+
docker cp ./metadata.yaml telemetry:/var/task/telemetry
1719

1820
# Zip the contents of the telemetry directory
1921
docker exec -it telemetry /bin/bash -c "cd telemetry && ls -l && zip -r ../telemetry.zip ."
2022

2123
# Copy the telemetry.zip file from the container to the host
22-
docker cp telemetry:/telemetry.zip ./telemetry.zip
24+
docker cp telemetry:/var/task/telemetry.zip ./telemetry.zip
2325

2426
# Stop and remove the container
2527
docker stop telemetry
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Logging:
2+
LOG_FORMAT: "%(levelname)s | %(asctime)s | %(threadName)s | %(name)s | %(message)s"
3+
ROTATION_TYPE: D
4+
ROTATION_INTERVAL: 10
5+
ENABLE_CONSOLE_LOG: true
6+
ENABLE_LOGFILE: false
7+
LOG_FILEPATH: /tmp/cloudformation-telemetry/telemetry.log
8+
LOG_LEVEL: "DEBUG"
9+
10+
Collection:
11+
MAX_PAYLOAD_BYTESIZE: 500000
12+
MAX_RETRY: 5
13+
BACKOFF_FACTOR: 1
14+
COMPRESSED: true
15+
TIMEOUT: 60
16+
17+
DeployMetaData:
18+
PACKAGENAME: "cloudformation-telemetry"
19+
20+
SumoLogic:
21+
SUMO_ENDPOINT: null
4.09 MB
Binary file not shown.

cloudtrailbenchmark/packaged.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ Metadata:
4343
- benchmark
4444
- cloudtrail
4545
Name: sumologic-aws-cloudtrail-benchmark
46-
LicenseUrl: s3://appdevstore/cloudtrailbenchmark/v1.0.17/cac1a6df52c685e0f6ebe4ae72078c80
47-
ReadmeUrl: s3://appdevstore/cloudtrailbenchmark/v1.0.17/8a901bb4fbbe82f128fc502dd3077508
48-
SemanticVersion: 1.0.17
46+
LicenseUrl: s3://appdevstore/cloudtrailbenchmark/v1.0.18/cac1a6df52c685e0f6ebe4ae72078c80
47+
ReadmeUrl: s3://appdevstore/cloudtrailbenchmark/v1.0.18/8a901bb4fbbe82f128fc502dd3077508
48+
SemanticVersion: 1.0.18
4949
SourceCodeUrl: https://github.com/SumoLogic/sumologic-aws-lambda/tree/main/cloudtrailbenchmark
5050
Parameters:
5151
CollectorName:
@@ -127,7 +127,7 @@ Resources:
127127
Properties:
128128
Location:
129129
ApplicationId: arn:aws:serverlessrepo:us-east-1:956882708938:applications/sumologic-app-utils
130-
SemanticVersion: 2.0.18
130+
SemanticVersion: 2.0.19
131131
Metadata:
132132
SamResourceId: SumoAppUtils
133133
SumoRole:

cloudtrailbenchmark/template.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Metadata:
4949
Name: sumologic-aws-cloudtrail-benchmark
5050
LicenseUrl: ./LICENSE
5151
ReadmeUrl: ./README.md
52-
SemanticVersion: 1.0.17
52+
SemanticVersion: 1.0.18
5353
SourceCodeUrl: https://github.com/SumoLogic/sumologic-aws-lambda/tree/main/cloudtrailbenchmark
5454

5555

@@ -123,7 +123,7 @@ Resources:
123123
Properties:
124124
Location:
125125
ApplicationId: arn:aws:serverlessrepo:us-east-1:956882708938:applications/sumologic-app-utils
126-
SemanticVersion: 2.0.18
126+
SemanticVersion: 2.0.19
127127

128128
SumoRole:
129129
Condition: SetupSumoResources

cloudtrailbenchmark/testdeploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ else
1212
fi
1313
uid=$(cat /dev/random | LC_CTYPE=C tr -dc "[:lower:]" | head -c 6)
1414

15-
version="1.0.17"
15+
version="1.0.18"
1616

1717
sam package --template-file template.yaml --s3-bucket $SAM_S3_BUCKET --output-template-file packaged.yaml --s3-prefix "cloudtrailbenchmark/v$version" --region $AWS_REGION --profile $AWS_PROFILE
1818

sumologic-app-utils/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ rm sumo_app_utils.zip
3131

3232
./build.sh
3333

34-
version="2.0.18"
34+
version="2.0.19"
3535

3636
aws s3 cp sumo_app_utils.zip s3://$SAM_S3_BUCKET/sumo_app_utils/v"$version"/sumo_app_utils.zip --region $AWS_REGION --acl public-read
3737

sumologic-app-utils/packaged_sumo_app_utils.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ Metadata:
2020
- sumologic
2121
- serverless
2222
Name: sumologic-app-utils
23-
SemanticVersion: 2.0.18
23+
SemanticVersion: 2.0.19
2424
SourceCodeUrl: https://github.com/SumoLogic/sumologic-aws-lambda/tree/main/sumologic-app-utils
2525
SpdxLicenseId: Apache-2.0
26-
ReadmeUrl: s3://appdevstore/sumo_app_utils/v2.0.18/4d5a92c06a7fa9d956a900e51a1f6be4
26+
ReadmeUrl: s3://appdevstore/sumo_app_utils/v2.0.19/4d5a92c06a7fa9d956a900e51a1f6be4
2727
Resources:
2828
SumoAppUtilsFunction:
2929
Type: AWS::Serverless::Function
3030
Properties:
3131
Handler: main.handler
3232
Runtime: python3.13
33-
CodeUri: s3://appdevstore/sumo_app_utils/v2.0.18/sumo_app_utils.zip
33+
CodeUri: s3://appdevstore/sumo_app_utils/v2.0.19/sumo_app_utils.zip
3434
MemorySize: 128
3535
Timeout: 300
3636
Policies:

sumologic-app-utils/src/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"type": "array",
1313
"items": {
1414
"type": "string",
15-
"pattern": "^[a-zA-Z0-9_]+=[a-zA-Z0-9_;]+$"
15+
"pattern": "[a-zA-Z0-9=_;,]+$"
1616
}
1717
}
1818
},

sumologic-app-utils/sumo_app_utils.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Metadata:
1717
- sumologic
1818
- serverless
1919
Name: sumologic-app-utils
20-
SemanticVersion: 2.0.18
20+
SemanticVersion: 2.0.19
2121
SourceCodeUrl: https://github.com/SumoLogic/sumologic-aws-lambda/tree/main/sumologic-app-utils
2222
SpdxLicenseId: Apache-2.0
2323
ReadmeUrl: ./README.md
@@ -29,7 +29,7 @@ Resources:
2929
Properties:
3030
Handler: main.handler
3131
Runtime: python3.13
32-
CodeUri: s3://appdevstore/sumo_app_utils/v2.0.18/sumo_app_utils.zip
32+
CodeUri: s3://appdevstore/sumo_app_utils/v2.0.19/sumo_app_utils.zip
3333
MemorySize: 128
3434
Timeout: 300
3535
Policies:
3.83 KB
Binary file not shown.

0 commit comments

Comments
 (0)