diff --git a/README.md b/README.md index c3b2028..231afce 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ The above sample must be run from the root directory of a deployed Open MPIC aws The API is compliant with the [Open MPIC Specification](https://github.com/open-mpic/open-mpic-specification). There is [documentation based on the API specification used in this version] -(https://open-mpic.org/documentation.html?commit=44c941d395430b022063b2e5353526ba07034771). +(https://open-mpic.org/documentation.html?commit=e6e4272673edc064cf311a3935ec027eba2df8b7). ## Development Code changes can easily be deployed by editing the .py files and then rezipping the project via `./zip-all.sh` and `./2-package.sh` in the `layer` directory. Then, running `tofu apply` run from the open-tofu directory will update only on the required resources and leave the others unchanged. If any `.tf.template` files are changed or `config.yaml` is edited, `hatch run ./configure.py` must be rerun followed by `tofu apply` in the open-tofu directory. diff --git a/aws-available-regions.yaml b/aws-available-regions.yaml index fa59d8b..96126c9 100644 --- a/aws-available-regions.yaml +++ b/aws-available-regions.yaml @@ -1,16 +1,28 @@ aws-available-regions: - - us-east-2 - - us-west-1 - - us-west-2 - - ap-south-1 - - ap-northeast-3 - - ap-northeast-2 - - ap-southeast-1 - - ap-southeast-2 - - ap-northeast-1 - - ca-central-1 - - eu-central-1 - - eu-west-1 - - eu-west-2 - - eu-west-3 - - eu-north-1 \ No newline at end of file + - us-east-2 + - us-east-1 + - us-west-1 + - us-west-2 + - af-south-1 + - ap-east-1 + - ap-south-2 + - ap-southeast-3 + - ap-southeast-4 + - ap-south-1 + - ap-northeast-3 + - ap-northeast-2 + - ap-southeast-1 + - ap-southeast-2 + - ap-northeast-1 + - ca-central-1 + - ca-west-1 + - eu-central-1 + - eu-west-1 + - eu-west-2 + - eu-west-3 + - eu-south-2 + - eu-north-1 + - eu-central-2 + - il-central-1 + - me-central-1 + - sa-east-1 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 12ca804..07b3321 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ dependencies = [ "pydantic==2.10.6", "aiohttp==3.11.13", "aws-lambda-powertools[parser]==3.8.0", - "open-mpic-core==5.5.1", + "open-mpic-core==5.5.3", "aioboto3~=13.3.0", "black==24.8.0", ] @@ -56,7 +56,7 @@ Source = "https://github.com/open-mpic/aws-lambda-python" #virtual = ".hatch" [tool.api] -spec_version = "3.3.0" +spec_version = "3.3.1" spec_repository = "https://github.com/open-mpic/open-mpic-specification" [tool.hatch] diff --git a/resources/aws_region_config.yaml b/resources/aws_region_config.yaml index 79d19d4..95c5330 100644 --- a/resources/aws_region_config.yaml +++ b/resources/aws_region_config.yaml @@ -72,57 +72,57 @@ aws_available_regions: - code: "eu-central-1" name: "Europe (Frankfurt)" - rir: "ripe" + rir: "ripe ncc" too_close_codes: ["eu-central-2"] - code: "eu-central-2" name: "Europe (Zurich)" - rir: "ripe" + rir: "ripe ncc" too_close_codes: ["eu-central-1", "eu-south-1"] - code: "eu-north-1" name: "Europe (Stockholm)" - rir: "ripe" + rir: "ripe ncc" too_close_codes: [] - code: "eu-south-1" name: "Europe (Milan)" - rir: "ripe" + rir: "ripe ncc" too_close_codes: ["eu-central-2"] - code: "eu-south-2" name: "Europe (Spain)" - rir: "ripe" + rir: "ripe ncc" too_close_codes: [] - code: "eu-west-1" name: "Europe (Ireland)" - rir: "ripe" + rir: "ripe ncc" too_close_codes: [] - code: "eu-west-2" name: "Europe (London)" - rir: "ripe" + rir: "ripe ncc" too_close_codes: ["eu-west-3"] - code: "eu-west-3" name: "Europe (Paris)" - rir: "ripe" + rir: "ripe ncc" too_close_codes: ["eu-west-2"] - code: "il-central-1" name: "Israel (Tel Aviv)" - rir: "ripe" + rir: "ripe ncc" too_close_codes: [] - code: "me-central-1" name: "Middle East (UAE)" - rir: "ripe" + rir: "ripe ncc" too_close_codes: ["me-south-1"] - code: "me-south-1" name: "Middle East (Bahrain)" - rir: "ripe" + rir: "ripe ncc" too_close_codes: ["me-central-1"] - code: "sa-east-1" diff --git a/src/aws_lambda_mpic/__about__.py b/src/aws_lambda_mpic/__about__.py index 5becc17..92192ee 100644 --- a/src/aws_lambda_mpic/__about__.py +++ b/src/aws_lambda_mpic/__about__.py @@ -1 +1 @@ -__version__ = "1.0.0" +__version__ = "1.0.4" diff --git a/tests/unit/aws_lambda_mpic/test_mpic_coordinator_lambda.py b/tests/unit/aws_lambda_mpic/test_mpic_coordinator_lambda.py index fa098e7..27d2a07 100644 --- a/tests/unit/aws_lambda_mpic/test_mpic_coordinator_lambda.py +++ b/tests/unit/aws_lambda_mpic/test_mpic_coordinator_lambda.py @@ -109,7 +109,7 @@ class Dummy(BaseModel): with pytest.raises(LambdaExecutionException) as exc_info: await lambda_handler.call_remote_perspective( - RemotePerspective(code="us-west-1", rir="dummy"), CheckType.DCV, Dummy() + RemotePerspective(code="us-west-1", rir="arin"), CheckType.DCV, Dummy() ) assert exc_info.value.args[0] == "Lambda execution error: {\"errorMessage\": \"some message\"}"