Skip to content

Commit bad5aef

Browse files
authored
update for v1.0.1 (#3)
1 parent 16bda86 commit bad5aef

File tree

12 files changed

+26
-13
lines changed

12 files changed

+26
-13
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.0"
28+
"SOLUTION_VERSION": "v1.0.1"
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.0",
37+
"SOLUTION_VERSION": "v1.0.1",
3838
```
3939

4040

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Added
1111

1212
- All files, initial version
13+
14+
## [1.0.1] - 2024-08-02
15+
16+
- Remove python `setuptools` and `pip` from prebid server docker image
17+
- Include missing copyright header for `source/infrastructure/prebid_server/stack_constants.py`

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.0",`
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",`
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.0
12+
# For example: ./build-s3-dist.sh solutions v1.0.1
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.0"
24+
echo "For example: ./build-s3-dist.sh solutions trademarked-solution-name v1.0.1"
2525
exit 1
2626
fi
2727

deployment/ecr/prebid-server/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ FROM public.ecr.aws/amazonlinux/amazonlinux:2023
55

66
# Setup environment for building prebid-server-java
77
RUN yum -y install maven-amazon-corretto17
8+
9+
# Remove python setuptools and package installer
10+
RUN yum -y remove python-setuptools
11+
RUN yum -y remove python-pip
12+
813
RUN yum -y install git
914
RUN yum -y install jq
1015
RUN git clone https://github.com/prebid/prebid-server-java.git

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.0
3+
version: v1.0.1
44
cloudformation_templates:
55
- template: prebid-server-deployment-on-aws.template
66
main_template: true

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.0"
190+
"please specifiy major, minor and patch versions, e.g. v1.0.1"
191191
)
192192

193193

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.0",
33+
"SOLUTION_VERSION": "v1.0.1",
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ def _create_del_vpc_eni_custom_resource(self):
477477
statements=[
478478
iam.PolicyStatement(
479479
actions=["ec2:DeleteNetworkInterface"],
480-
resources=["*"],
480+
resources=["*"], #NOSONAR
481481
conditions={
482482
"StringEquals": {"ec2:Vpc": f"{self.vpc.vpc_arn}"}
483483
},
@@ -487,7 +487,7 @@ def _create_del_vpc_eni_custom_resource(self):
487487
"ec2:DescribeNetworkInterfaces",
488488
"ec2:DetachNetworkInterface",
489489
],
490-
resources=["*"],
490+
resources=["*"], #NOSONAR
491491
conditions={
492492
"StringEquals": {
493493
globals.RESOURCE_NAMESPACE: [Aws.ACCOUNT_ID]

source/infrastructure/prebid_server/prebid_server_stack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
296296
"ecr-public:GetRepositoryCatalogData",
297297
"ecr-public:GetRegistryCatalogData",
298298
],
299-
resources=["*"],
299+
resources=["*"], #NOSONAR
300300
)
301301
)
302302

source/infrastructure/prebid_server/stack_constants.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
from pathlib import Path
25

36
CUSTOM_RESOURCES_PATH = Path(__file__).absolute().parents[1] / "custom_resources"

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.0",
85+
'Version': "v1.0.1",
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.0'
98+
'KeyPrefix': 'Prebid Server Deployment on AWS/v1.0.1'
9999
}
100100
}
101101
)

0 commit comments

Comments
 (0)