Skip to content

Commit 6149c26

Browse files
authored
Release v1.0.2 (#4)
* changes for v1.0.2 * Update CHANGELOG.md
1 parent bad5aef commit 6149c26

File tree

12 files changed

+38
-14
lines changed

12 files changed

+38
-14
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To get the version of the solution, you can look at the description of the creat
2525
"Environment": {
2626
"Variables": {
2727
"SOLUTION_ID": "SO0248",
28-
"SOLUTION_VERSION": "v1.0.1"
28+
"SOLUTION_VERSION": "v1.0.2"
2929
}
3030
},
3131
```
@@ -34,7 +34,7 @@ This information is also provided in `source/infrastructure/cdk.json`:
3434

3535
```json
3636
"SOLUTION_ID": "SO0248",
37-
"SOLUTION_VERSION": "v1.0.1",
37+
"SOLUTION_VERSION": "v1.0.2",
3838
```
3939

4040

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515

1616
- Remove python `setuptools` and `pip` from prebid server docker image
1717
- Include missing copyright header for `source/infrastructure/prebid_server/stack_constants.py`
18+
19+
20+
## [1.0.2] - 2024-09-23
21+
22+
- Upgrade Python `requests` package to version 2.32.3 in requirements.txt
23+
- Bug fix for launch failure of EfsCleanupContainerStop Lambda function

NOTICE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ This software includes third party software subject to the following copyrights:
7171
pytest-mock 3.10.0 MIT License
7272
python-dateutil 2.8.2 Apache Software License; BSD License
7373
pytz 2022.6 MIT License
74-
requests 2.28.1 Apache Software License
74+
requests 2.32.3 Apache Software License
7575
responses 0.17.0 Apache 2.0
7676
s3transfer 0.6.0 Apache Software License
7777
shared 0.0.0 Apache Software License

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ If you'd like to use a different container:
153153
* Build and host the solution assets for installation in your account using the process described above
154154
* Change to the `deployment/global-s3-assets` folder on the build workstation
155155
* Open the file `prebid-server-deployment-on-aws.template` in an editor
156-
* Find the line in the template under the Task Definition resource that is `"Image": "public.ecr.aws/aws-solutions/prebid-server:v1.0.1",`
156+
* Find the line in the template under the Task Definition resource that is `"Image": "public.ecr.aws/aws-solutions/prebid-server:v1.0.2",`
157157
* Update the Image property value with your container image URI
158158
* Create the stack by uploading the changed template to the CloudFormation console
159159

deployment/build-s3-dist.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Paramenters:
1010
# - source-bucket-base-name: Name for the S3 bucket location where the template will source the Lambda
1111
# code from. The template will append '-[region_name]' to this bucket name.
12-
# For example: ./build-s3-dist.sh solutions v1.0.1
12+
# For example: ./build-s3-dist.sh solutions v1.0.2
1313
# The template will then expect the source code to be located in the solutions-[region_name] bucket
1414
#
1515
# - solution-name: name of the solution for consistency
@@ -21,7 +21,7 @@
2121
# Check to see if input has been provided:
2222
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then
2323
echo "Please provide the base source bucket name, trademark approved solution name and version where the lambda code will eventually reside."
24-
echo "For example: ./build-s3-dist.sh solutions trademarked-solution-name v1.0.1"
24+
echo "For example: ./build-s3-dist.sh solutions trademarked-solution-name v1.0.2"
2525
exit 1
2626
fi
2727

solution-manifest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
id: SO0248
22
name: prebid-server-deployment-on-aws
3-
version: v1.0.1
3+
version: v1.0.2
44
cloudformation_templates:
55
- template: prebid-server-deployment-on-aws.template
66
main_template: true
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
requests>=2.31.0
1+
requests>=2.32.3
22
urllib3<2.0.0
33
crhelper==2.0.6

source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/scripts/build_s3_cdk_dist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def validate_version_code(ctx, param, value):
187187
return value
188188
else:
189189
raise click.BadParameter(
190-
"please specifiy major, minor and patch versions, e.g. v1.0.1"
190+
"please specifiy major, minor and patch versions, e.g. v1.0.2"
191191
)
192192

193193

source/cdk_solution_helper_py/helpers_cdk/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def get_version():
4343
"aws_cdk_lib>=2.7.0",
4444
"Click>=7.1.2",
4545
"boto3>=1.17.52",
46-
"requests>=2.31.0",
46+
"requests>=2.32.3",
4747
"crhelper>=2.0.6",
4848
],
4949
entry_points="""

source/infrastructure/cdk.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@aws-cdk/aws-s3:serverAccessLogsUseBucketPolicy": true,
3131
"SOLUTION_NAME": "Prebid Server Deployment on AWS",
3232
"SOLUTION_ID": "SO0248",
33-
"SOLUTION_VERSION": "v1.0.1",
33+
"SOLUTION_VERSION": "v1.0.2",
3434
"METRICS_NAMESPACE": "prebid-server-deployment-on-aws-metrics",
3535
"BUCKET_NAME": "BUCKET_NAME",
3636
"SEND_ANONYMIZED_DATA": null

source/infrastructure/prebid_server/prebid_datasync_constructs.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ def _create_container_stop_logs_lambda_function(self):
291291
layers=[
292292
PowertoolsLayer.get_or_create(self),
293293
SolutionsLayer.get_or_create(self),
294+
self.metrics_layer,
294295
],
295296
environment={
296297
"SOLUTION_ID": self.node.try_get_context("SOLUTION_ID"),
@@ -306,7 +307,24 @@ def _create_container_stop_logs_lambda_function(self):
306307
container_lambda_function_policy = iam.Policy(
307308
self,
308309
"ContainerLambdaPolicy",
309-
statements=[VPC_NW_INTERFACE_POLICY_STATEMENT],
310+
statements=[
311+
VPC_NW_INTERFACE_POLICY_STATEMENT,
312+
iam.PolicyStatement(
313+
actions=[
314+
"cloudwatch:PutMetricData",
315+
],
316+
resources=[
317+
"*" # NOSONAR
318+
],
319+
conditions={
320+
"StringEquals": {
321+
"cloudwatch:namespace": self.node.try_get_context(
322+
"METRICS_NAMESPACE"
323+
)
324+
}
325+
},
326+
),
327+
],
310328
)
311329
container_lambda_function.role.attach_inline_policy(
312330
container_lambda_function_policy

source/tests/unit_tests/test_prebid_server_template.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def mapping_solution(template):
8282
{
8383
'Data': {
8484
'ID': "SO0248",
85-
'Version': "v1.0.1",
85+
'Version': "v1.0.2",
8686
'SendAnonymizedData': 'Yes'
8787
}
8888
}
@@ -95,7 +95,7 @@ def mapping_source_code(template):
9595
{
9696
'General': {
9797
'S3Bucket': "BUCKET_NAME",
98-
'KeyPrefix': 'Prebid Server Deployment on AWS/v1.0.1'
98+
'KeyPrefix': 'Prebid Server Deployment on AWS/v1.0.2'
9999
}
100100
}
101101
)

0 commit comments

Comments
 (0)