Skip to content

Commit

Permalink
add init.py script, make parameters in populate_aws_shapes.py optional
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdan-onsha committed Sep 25, 2024
1 parent b89470c commit 56ee56c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/populate_aws_shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ def parse_args():
parser.add_argument('-t', '--session_token', help='AWS Session Token',
required=False)
parser.add_argument('-r', '--region', help='AWS Region',
required=True, choices=ALLOWED_REGIONS)
required=False, choices=ALLOWED_REGIONS, default='eu-central-1')
parser.add_argument('-uri', '--r8s_mongodb_connection_uri',
help='MongoDB Connection string', required=False)
parser.add_argument('-pr', '--price_region', action='append',
required=False, choices=ALLOWED_REGIONS,
default=ALLOWED_REGIONS,
help='List of AWS regions to populate price for')
parser.add_argument('-os', '--operating_system', action='append',
required=False, choices=ALLOWED_OS,
required=False, choices=ALLOWED_OS, default=ALLOWED_OS,
help='List of AWS operation systems '
'to populate price for')
args = vars(parser.parse_args())
Expand Down
9 changes: 9 additions & 0 deletions src/exported_module/scripts/init.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from init_minio import init_minio
from init_vault import init_vault
from init_mongo import init_mongo
from init_system_user import init_system_user

init_minio()
init_vault()
init_mongo()
init_system_user()

0 comments on commit 56ee56c

Please sign in to comment.