Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
42 changes: 27 additions & 15 deletions aws-available-regions.yaml
Original file line number Diff line number Diff line change
@@ -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
- 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
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
Expand All @@ -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]
Expand Down
22 changes: 11 additions & 11 deletions resources/aws_region_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/aws_lambda_mpic/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.0"
__version__ = "1.0.4"
2 changes: 1 addition & 1 deletion tests/unit/aws_lambda_mpic/test_mpic_coordinator_lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -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\"}"

Expand Down