Skip to content

Commit 57adba6

Browse files
AWSAWS
authored andcommitted
v2.7.3
1 parent cb831d2 commit 57adba6

File tree

10 files changed

+61
-23
lines changed

10 files changed

+61
-23
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ __pycache__
1818
venv
1919
.venv
2020
testing-venv
21+
myenv
2122

2223
# Ignore installed dependencies
2324
dist

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [2.7.3] - 2024-09-13
8+
- Update dependencies
9+
- `PyYAML` 5.4.1 ([#154](https://github.com/aws-solutions/aws-control-tower-customizations/issues/154), [#169](https://github.com/aws-solutions/aws-control-tower-customizations/issues/169))
10+
- `Jinja2` 3.1.4 ([#169](https://github.com/aws-solutions/aws-control-tower-customizations/issues/169))
11+
- `requests` 2.32.2
12+
13+
## [2.7.2] - 2024-07-18
14+
- Add support for AWS Regions: Asia Pacific (Hyderabad, Jakarta, and Osaka), Israel (Tel Aviv), Middle East (UAE),
15+
and AWS GovCloud (US-East). Customers with these Regions as their AWS Control Tower home Region can now deploy
16+
account customizations using the CfCT framework.
17+
- Enable lifecycle configuration, enable access logging and add versioning on S3 buckets
18+
- Enhance security and robustness through improved handling of file paths and highly compressed data
19+
- Upgrade botocore to version 1.31.17 and boto3 to version 1.28.17
20+
721
## [2.7.1] - 2024-05-30
822
* Update dependencies & runtimes ([#186]((https://github.com/aws-solutions/aws-control-tower-customizations/issues/186)), [#193]((https://github.com/aws-solutions/aws-control-tower-customizations/issues/193)))
923
* Building the solution from source now requires Python 3.11 or higher

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2.7.2
1+
v2.7.3

customizations-for-aws-control-tower.template

Lines changed: 16 additions & 16 deletions
Large diffs are not rendered by default.

deployment/build-s3-dist.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ fi
6161
echo "mkdir -p $build_dist_dir"
6262
mkdir -p "$build_dist_dir"
6363

64+
# Upgrade setuptools, wheel
65+
# Install cython<3.0.0 and pyyaml 5.4.1 with build isolation
66+
# Ref: https://github.com/yaml/pyyaml/issues/724
67+
pip3 install --upgrade setuptools wheel
68+
pip3 install 'cython<3.0.0' && pip3 install --no-build-isolation pyyaml==5.4.1
69+
6470
# Create zip file for AWS Lambda functions
6571
echo -e "\n Creating all lambda functions for Custom Control Tower Solution"
6672
python3 deployment/lambda_build.py state_machine_lambda deployment_lambda build_scripts lifecycle_event_handler state_machine_trigger

deployment/lambda_build.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ def install_dependencies(
4949
["pip", "install", "--quiet", lib_path, "--target", dist_folder], check=True
5050
)
5151

52+
# Capture all installed package versions into requirements.txt
53+
requirements_path = os.path.join(dist_folder, "requirements.txt")
54+
subprocess.run(
55+
["pip", "freeze", "--path", dist_folder],
56+
check=True,
57+
stdout=open(requirements_path, "w")
58+
)
59+
5260
# Include lambda handlers in distributables
5361
for file in glob.glob(f"{handlers_path}/*.py"):
5462
shutil.copy(src=file, dst=dist_folder)

deployment/run-unit-tests.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ echo "Python version: `python3 --version`"
1616
echo "Installing pip"
1717
pip3 install --quiet -U pip
1818
echo "Installing CFCT library"
19-
pip3 install --quiet "./source/src[test, dev]"
19+
# Upgrade setuptools, wheel
20+
# Install cython<3.0.0 and pyyaml 5.4.1 with build isolation
21+
# Ref: https://github.com/yaml/pyyaml/issues/724
22+
pip3 install --upgrade setuptools wheel
23+
pip3 install 'cython<3.0.0' && pip3 install --no-build-isolation pyyaml==5.4.1
24+
pip3 install "./source/src[test, dev]"
2025
echo "Running tests..."
2126
python3 -m pytest -m unit
2227

source/codebuild_scripts/install_stage_dependencies.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ install_common_pip_packages () {
1717
# install pip packages
1818
pip install --quiet --upgrade pip==21.0.1
1919
pip install --quiet --upgrade setuptools
20+
pip install --quiet --upgrade wheel
2021
pip install --quiet --upgrade virtualenv==20.4.2
21-
pip install --quiet --upgrade PyYAML==5.3.1
22+
pip install --quiet "cython<3.0.0" && pip install --quiet --no-build-isolation pyyaml==5.4.1
2223
pip install --quiet --upgrade yorm==1.6.2
2324
pip install --quiet --upgrade jinja2==2.11.3
2425
pip install --quiet --upgrade requests==2.25.1

source/src/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools>=70.0.0"]
3+
build-backend = "setuptools.build_meta"

source/src/setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
python_requires=">=3.11",
2929
install_requires=[
3030
"yorm==1.6.2",
31-
"PyYAML==5.3.1",
32-
"Jinja2==2.11.3",
31+
"pyyaml>=5.4.1",
32+
"Jinja2==3.1.4",
3333
"MarkupSafe==2.0.1", # https://github.com/pallets/jinja/issues/1585
34-
"requests==2.25.1",
34+
"requests==2.32.2",
3535
"markdown_to_json==1.0.0",
3636
"python-dateutil==2.8.1",
3737
"boto3==1.28.17",
@@ -59,5 +59,5 @@
5959
"setuptools",
6060
"virtualenv",
6161
],
62-
},
62+
}
6363
)

0 commit comments

Comments
 (0)