-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.py
34 lines (31 loc) · 928 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from getpass import getuser
import pydantic
class Config(pydantic.BaseSettings):
stage: str = pydantic.Field(
description=" ".join(
[
"Stage of deployment (e.g. 'dev', 'prod').",
"Used as suffix for stack name.",
"Defaults to current username.",
]
),
default_factory=getuser,
)
stac_register_service_id: str = pydantic.Field(
description=" ".join(
[
"name of the service id with the stack:register scope.",
]
),
default_factory=getuser,
)
owner: str = pydantic.Field(
description=" ".join(
[
"Name of primary contact for Cloudformation Stack.",
"Used to tag generated resources",
"Defaults to current username.",
]
),
default_factory=getuser,
)