| 1860 | return True |
| 1861 | |
| 1862 | def _get_init_env(self) -> str: |
| 1863 | # Create Env |
| 1864 | while True: |
| 1865 | click.echo( |
| 1866 | "Your Zappa configuration can support multiple production stages, like '" |
| 1867 | + click.style("dev", bold=True) |
| 1868 | + "', '" |
| 1869 | + click.style("staging", bold=True) |
| 1870 | + "', and '" |
| 1871 | + click.style("production", bold=True) |
| 1872 | + "'." |
| 1873 | ) |
| 1874 | env = input("What do you want to call this environment (default 'dev'): ") or "dev" |
| 1875 | try: |
| 1876 | self.check_stage_name(env) |
| 1877 | break |
| 1878 | except ValueError: |
| 1879 | click.echo(click.style("Stage names must match a-zA-Z0-9_", fg="red")) |
| 1880 | return env |
| 1881 | |
| 1882 | def _get_init_profile(self, default_profile: str, profiles: dict, profile_names: list) -> tuple[str, dict]: |
| 1883 | while True: |