Skip to content

Commit

Permalink
Update to version v1.3.1
Browse files Browse the repository at this point in the history
Update to version v1.3.1
  • Loading branch information
tabdunabi authored Dec 19, 2022
2 parents f6c2324 + fb0d66f commit a0b1413
Show file tree
Hide file tree
Showing 14 changed files with 53 additions and 40 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

[1.3.0] - 2022-11-17
## [1.3.1] - 2022-12-19

### Fixed

- GitHub [issue #19](https://github.com/aws-solutions/maintaining-personalized-experiences-with-machine-learning/issues/19). This fix prevents AWS Service Catalog AppRegistry Application Name and Attribute Group Name from using a string that begins with `AWS`, since strings begining with `AWS` are considered as reserved words by the AWS Service.

### Changed

- Locked `boto3` to version `1.25.5`, and upgraded python library packages.


## [1.3.0] - 2022-11-17

### Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ def patch_app_reg(self):
"Fn::Join": [ # NOSONAR (python:S1192) - string for clarity
"-",
[
"App",
{"Ref": "AWS::StackName"},
{
"Fn::FindInMap": ["Solution", "Data", "AppRegistryName"] # NOSONAR (python:S1192) - string for clarity
Expand Down
12 changes: 6 additions & 6 deletions source/cdk_solution_helper_py/helpers_cdk/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,18 @@ def get_version():
]
},
install_requires=[
"pip>=22.2.2",
"pip>=22.3.1",
"aws_cdk_lib==2.44.0",
"Click>=7.1.2",
"boto3>=1.24.90",
"requests>=2.28.1",
"crhelper>=2.0.11",
"Click==8.1.3",
"boto3==1.25.5",
"requests==2.28.1",
"crhelper==2.0.11",
],
entry_points="""
[console_scripts]
build-s3-cdk-dist=aws_solutions.cdk.scripts.build_s3_cdk_dist:cli
""",
python_requires=">=3.7",
python_requires=">=3.9",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
Expand Down
6 changes: 3 additions & 3 deletions source/cdk_solution_helper_py/helpers_common/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ def get_version():
license="Apache License 2.0",
packages=setuptools.find_namespace_packages(exclude=["build*"]),
install_requires=[
"boto3>=1.24.90",
"pip>=22.2.2",
"boto3==1.25.5",
"pip>=22.3.1",
],
python_requires=">=3.7",
python_requires=">=3.9",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
Expand Down
9 changes: 5 additions & 4 deletions source/cdk_solution_helper_py/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
aws_cdk_lib==2.44.0
aws-cdk.aws-servicecatalogappregistry-alpha==2.44.0a0
black
boto3>=1.24.90
requests>=2.28.1
crhelper>=2.0.11
boto3==1.25.5
requests==2.28.1
crhelper==2.0.11
Click
moto
pipenv
Expand All @@ -13,4 +14,4 @@ pytest-mock>=3.9.0
tox
tox-pyenv
-e ./source/cdk_solution_helper_py/helpers_cdk
-e ./source/cdk_solution_helper_py/helpers_common
-e ./source/cdk_solution_helper_py/helpers_common
1 change: 0 additions & 1 deletion source/cdk_solution_helper_py/requirements.txt

This file was deleted.

4 changes: 2 additions & 2 deletions source/infrastructure/aspects/app_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __create_app_for_app_registry(self) -> None:
self,
"RegistrySetup",
application_name=cdk.Fn.join(
"-", [cdk.Aws.STACK_NAME, self.app_registry_name, cdk.Aws.REGION, cdk.Aws.ACCOUNT_ID]
"-", ["App", cdk.Aws.STACK_NAME, self.app_registry_name, cdk.Aws.REGION, cdk.Aws.ACCOUNT_ID]
),
description=f"Service Catalog application to track and manage all your resources for the solution {self.solution_name}",
)
Expand All @@ -81,7 +81,7 @@ def __create_atttribute_group(self) -> None:
appreg.AttributeGroup(
self,
"AppAttributes",
attribute_group_name=cdk.Aws.STACK_NAME,
attribute_group_name=f"AttrGrp-{cdk.Aws.STACK_NAME}",
description="Attributes for Solutions Metadata",
attributes={
"applicationType": self.application_type,
Expand Down
4 changes: 2 additions & 2 deletions source/infrastructure/cdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"context": {
"SOLUTION_NAME": "Maintaining Personalized Experiences with Machine Learning",
"SOLUTION_ID": "SO0170",
"SOLUTION_VERSION": "v1.3.0",
"SOLUTION_VERSION": "v1.3.1",
"APP_REGISTRY_NAME": "personalized-experiences-ML",
"APPLICATION_TYPE": "AWS-Solutions"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ avro==1.11.1
cronex==0.1.3.1
jmespath==1.0.1
parsedatetime==2.6
boto3>=1.24.90
boto3==1.25.5
4 changes: 2 additions & 2 deletions source/infrastructure/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
packages=setuptools.find_packages(),
install_requires=[
"aws-cdk-lib==2.44.0",
"pip>=22.2.2",
"pip>=22.3.1",
],
python_requires=">=3.7",
python_requires=">=3.9",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
Expand Down
8 changes: 4 additions & 4 deletions source/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
avro==1.11.1
black
boto3
boto3==1.25.5
aws_cdk_lib==2.44.0
aws_solutions_constructs.aws_lambda_sns==2.25.0
aws-cdk.aws-servicecatalogappregistry-alpha==2.44.0a0
requests~=2.28.1
crhelper~=2.0.11
requests==2.28.1
crhelper==2.0.11
cronex==0.1.3.1
moto==2.3.0
parsedatetime==2.6
Expand All @@ -15,7 +15,7 @@ pytest-env>=0.6.2
pytest-mock>=3.5.1
pyyaml==5.4.1
responses~=0.17.0
tenacity>=8.0.1
tenacity==8.0.1
-e cdk_solution_helper_py/helpers_cdk
-e cdk_solution_helper_py/helpers_common
-e scheduler/cdk
Expand Down
8 changes: 4 additions & 4 deletions source/scheduler/cdk/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ def get_version():
license="Apache License 2.0",
packages=setuptools.find_namespace_packages(exclude=["build*"]),
install_requires=[
"pip>=22.2.2",
"pip>=22.3.1",
"aws_cdk_lib==2.44.0",
"Click>=7.1.2",
"boto3>=1.24.90",
"Click==8.1.3",
"boto3==1.25.5",
],
python_requires=">=3.7",
python_requires=">=3.9",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
Expand Down
16 changes: 8 additions & 8 deletions source/scheduler/common/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,22 @@ def get_version():
license="Apache License 2.0",
packages=setuptools.find_namespace_packages(exclude=["build*"]),
install_requires=[
"pip>=22.2.2",
"pip>=22.3.1",
"aws-lambda-powertools==1.29.2",
"aws-xray-sdk==2.11.0",
"aws-solutions-python>=2.0.0",
"click>=8.1.3",
"aws-solutions-python==2.0.0",
"click==8.1.3",
"cronex==0.1.3.1",
"boto3>=1.24.90",
"requests>=2.28.1",
"crhelper>=2.0.11",
"rich>=12.6.0",
"boto3==1.25.5",
"requests==2.28.1",
"crhelper==2.0.11",
"rich==12.6.0",
],
entry_points="""
[console_scripts]
aws-solutions-scheduler=aws_solutions.scheduler.common.scripts.scheduler_cli:cli
""",
python_requires=">=3.7",
python_requires=">=3.9",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
Expand Down
5 changes: 3 additions & 2 deletions source/tests/aspects/test_personalize_app_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def test_service_catalog_registry_application(synth_template):
"Fn::Join": [
"-",
[
"App",
{"Ref": "AWS::StackName"},
app.node.try_get_context("APP_REGISTRY_NAME"),
{"Ref": "AWS::Region"},
Expand All @@ -65,11 +66,11 @@ def test_service_catalog_registry_application(synth_template):
"Tags": {
"SOLUTION_ID": "SO0170",
"SOLUTION_NAME": "Maintaining Personalized Experiences with Machine Learning",
"SOLUTION_VERSION": "v1.3.0",
"SOLUTION_VERSION": "v1.3.1",
"Solutions:ApplicationType": "AWS-Solutions",
"Solutions:SolutionID": "SO0170",
"Solutions:SolutionName": "Maintaining Personalized Experiences with Machine Learning",
"Solutions:SolutionVersion": "v1.3.0",
"Solutions:SolutionVersion": "v1.3.1",
},
},
)
Expand Down

0 comments on commit a0b1413

Please sign in to comment.