-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Additional fixes for latest dependencies
- Made some small logic tweaks around region validation - Introduced warning for unit tests if boto3 updated regions are not included in the test generated index file. This will also ensure that tests don't break should newer AWS regions come on line. - Updated AWS dependencies and development dependencies - TODO: Address issues with mkdocs
- Loading branch information
Mike Grima
committed
Sep 1, 2023
1 parent
dc487be
commit 423757b
Showing
15 changed files
with
150 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
mikegrima: | ||
name: Mike Grima | ||
description: Creator of Starfleet | ||
avatar: https://github.com/mikegrima.png | ||
authors: | ||
mikegrima: | ||
name: Mike Grima | ||
description: Creator of Starfleet | ||
avatar: https://github.com/mikegrima.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
"""A general set of niceties that Starfleet can use to do things that are nice. | ||
This mostly defines some shortcut code utilities that workers can use for a variety of use cases. | ||
:Module: starfleet.utils.niceties | ||
:Copyright: (c) 2023 by Gemini Trust Company, LLC., see AUTHORS for more info | ||
:License: See the LICENSE file for details | ||
:Author: Mike Grima <michael.grima@gemini.com> | ||
""" | ||
from typing import Set | ||
|
||
import boto3 | ||
|
||
|
||
def get_all_regions(service: str = "ec2") -> Set[str]: | ||
""" | ||
This will return all supported AWS regions for the supplied service. By default, this returns the set for EC2. | ||
This is placed here as a function so that we can easily mock out the values with a static set of values that will persist throughout boto3 updates. | ||
""" | ||
return set(boto3.session.Session().get_available_regions(service)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.