Skip to content

Commit ac22217

Browse files
authored
Merge pull request #3 from fitomad/issue-template-v2
Issue template v2
2 parents 4c73bed + 935755b commit ac22217

File tree

3 files changed

+99
-20
lines changed

3 files changed

+99
-20
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Swift AWS Lambda SDK issue
2+
description: File an issue report with the usage of the Swift AWS Lambda Runtime
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: "Thanks for taking the time to fill out this issue report"
7+
- type: textarea
8+
id: expected-behavior
9+
attributes:
10+
label: Expected behavior
11+
description: What you expected to happen?
12+
placeholder: Describe with your own words the expected result
13+
validations:
14+
required: true
15+
- type: textarea
16+
id: what-happend
17+
attributes:
18+
label: Actual behavior
19+
description: What actually happened
20+
placeholder: Describe
21+
validations:
22+
required: true
23+
- type: textarea
24+
id: steps-to-reproduce
25+
attributes:
26+
label: Steps to reproduce
27+
description: List the steps followed to reproduce the behaviour you are reporting
28+
placeholder: |
29+
1. First I...
30+
2. Then...
31+
3. Finally...
32+
validations:
33+
required: true
34+
- type: textarea
35+
id: code-snippet
36+
attributes:
37+
label: If possible, minimal yet complete reproducer code (or URL to code)
38+
description: List the steps followed to reproduce the behaviour you are reporting
39+
placeholder: |
40+
You can add any relevant code snippet that you consider or an URL to code.
41+
42+
URL could be a link to a GitHub Gist, for example
43+
validations:
44+
required: false
45+
- type: input
46+
id: swift-aws-lambda-runtime-version
47+
attributes:
48+
label: What version of this project (`swift-aws-lambda-runtime`) are you using?
49+
description: The release, branch or commit hash related with this issue.
50+
placeholder: 1.0.0-alpha.1
51+
render: shell
52+
validations:
53+
required: true
54+
- type: input
55+
id: swift-version
56+
attributes:
57+
label: Swift version
58+
description: Swift environment version.
59+
placeholder: |
60+
Open a Terminal and execute the following command
61+
62+
swift --version && uname -a
63+
render: shell
64+
validations:
65+
required: true
66+
- type: input
67+
id: amazon-linux-2-version
68+
attributes:
69+
label: Amazon Linux 2 docker image version
70+
description: The docker image tag used to archive the lambda, if available.
71+
placeholder: 5.7.3-amazonlinux2
72+
render: shell
73+
validations:
74+
required: false

readme.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,33 @@ To build and package your Lambda, run the following command:
185185
swift package archive
186186
```
187187

188+
The `archive` command can be customized using the following parameters
189+
190+
* `--output-path` A valid file system path where a folder with the archive operation result will be placed. This folder will contains the following elements:
191+
* A file link named `bootstrap`
192+
* An executable file
193+
* A **Zip** file ready to be upload to AWS
194+
* `--verbose` A number that sets the command output detail level between the following values:
195+
* `0` (Silent)
196+
* `1` (Output)
197+
* `2` (Debug)
198+
* `--swift-version` Swift language version used to define the Amazon Linux 2 Docker image. For example "5.7.3"
199+
* `--base-docker-image` An Amazon Linux 2 docker image name available in your system.
200+
201+
Both `--swift-version` and `--base-docker-image` are mutually exclusive
202+
203+
Here's an example
204+
205+
```zsh
206+
swift package archive --output-path /Users/JohnAppleseed/Desktop --verbose 2
207+
```
208+
209+
This command execution will generate a folder at `/Users/JohnAppleseed/Desktop` with the lambda zipped and ready to upload it and set the command detail output level to `2` (debug)
210+
188211
on macOS, the archiving plugin uses docker to build the Lambda for Amazon Linux 2, and as such requires to communicate with Docker over the localhost network.
189212
At the moment, SwiftPM does not allow plugin communication over network, and as such the invocation requires breaking from the SwiftPM plugin sandbox. This limitation would be removed in the future.
213+
214+
190215

191216
```shell
192217
swift package --disable-sandbox archive

0 commit comments

Comments
 (0)