-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcopier.yml
More file actions
102 lines (86 loc) · 2.45 KB
/
copier.yml
File metadata and controls
102 lines (86 loc) · 2.45 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# Copier configuration/questions for "AWS cli Template"
_templates_suffix: ""
_tasks:
- cd {{ copier__project_name }} && python ../tasks.py
- rm tasks.py
_exclude:
- "copier.yaml"
- "copier.yml"
- "~*"
- "*.py[co]"
- "__pycache__"
- ".git"
- ".DS_Store"
- ".svn"
- "*.test-data.yaml"
copier__project_name:
type: str
default: "{{ is_project_slug if is_project_slug else copier__project_name }}"
help: "The name of your project."
validator: >-
{% if not copier__project_name.strip() %}
"Project name cannot be empty."
{% endif %}
copier__runtime:
type: str
default: "3.11"
help: "The python version of your project."
choices:
"3.9": "3.9"
"3.10": "3.10"
"3.11": "3.11"
"3.12": "3.12"
copier__architectures:
type: str
help: "The architecture of your project."
default: "arm64"
choices:
x86_64: "x86_64"
arm64: "arm64"
copier__package_type:
type: str
help: "What package type would you like to use?"
default: "zip"
choices:
zip: "zip"
image: "image"
copier__xray_tracing:
type: bool
help: "Would you like to enable X-Ray tracing on the function(s) in your application? (y/N) [default: No]"
default: false
copier__cloudwatch_monitor:
type: bool
help: "Would you like to enable monitoring using CloudWatch Application Insights? (y/N) [default: No]"
default: false
copier__enable_logs:
type: bool
help: "Would you like to enable logging? (y/N) [default: No]"
default: false
copier__auth:
type: bool
help: "Do you want to enable authentication for your project? (y/n) [default: No]"
default: false
copier__dynamo_db:
type: bool
help: "Do you want to enable DynamoDB for your project? (y/n) [default: No]"
default: false
copier__aws_region:
type: str
default: "us-east-1"
help: "The AWS region where your project will be deployed."
copier__stack_name:
type: str
default: "{{ copier__project_name.lower().replace(' ', '-').replace('_', '-') }}"
when: false
copier__aws_profile:
type: str
default: "default"
help: "The AWS profile to use for deployment."
copier__repo_url:
type: str
default: "git@github.com:organization_name/{{ copier__stack_name }}.git"
help: "The URL of the repository."
validator: >-
{% if not copier__repo_url.startswith("git@") or not ":" in copier__repo_url or not "/" in copier__repo_url.split(":")[1] or not ".git" in copier__repo_url %}
Value must follow the format git@provider:orgname/repo.git
{% endif %}