File tree Expand file tree Collapse file tree 3 files changed +9
-11
lines changed
Sources/AWSLambdaPluginHelper/lambda-build Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -101,12 +101,12 @@ let package = Package(
101
101
intent: . custom(
102
102
verb: " lambda-build " ,
103
103
description:
104
- " Archive the Lambda binary and prepare it for uploading to AWS. Requires docker on macOS or non Amazonlinux 2 distributions."
104
+ " Compile and archive (zip) the Lambda binary and prepare it for uploading to AWS. Requires docker on macOS or non Amazonlinux 2 distributions."
105
105
) ,
106
106
permissions: [
107
107
. allowNetworkConnections(
108
108
scope: . docker,
109
- reason: " This plugin uses Docker to create the AWS Lambda ZIP package . "
109
+ reason: " This plugin uses Docker to compile code for Amazon Linux . "
110
110
)
111
111
]
112
112
) ,
@@ -120,7 +120,7 @@ let package = Package(
120
120
intent: . custom(
121
121
verb: " lambda-deploy " ,
122
122
description:
123
- " Deploy the Lambda function. You must have an AWS account and know an access key and secret access key. "
123
+ " Deploy the Lambda function. You must have an AWS account and an access key and secret access key. "
124
124
) ,
125
125
permissions: [
126
126
. allowNetworkConnections(
@@ -138,8 +138,7 @@ let package = Package(
138
138
dependencies: [
139
139
. product( name: " NIOHTTP1 " , package : " swift-nio " ) ,
140
140
. product( name: " NIOCore " , package : " swift-nio " ) ,
141
- ] ,
142
- swiftSettings: [ . swiftLanguageMode( . v6) ]
141
+ ]
143
142
) ,
144
143
. testTarget(
145
144
name: " AWSLambdaRuntimeTests " ,
Original file line number Diff line number Diff line change @@ -90,12 +90,12 @@ let package = Package(
90
90
intent: . custom(
91
91
verb: " lambda-build " ,
92
92
description:
93
- " Archive the Lambda binary and prepare it for uploading to AWS. Requires docker on macOS or non Amazonlinux 2 distributions."
93
+ " Compile and archive (zip) the Lambda binary and prepare it for uploading to AWS. Requires docker on macOS or non Amazonlinux 2 distributions."
94
94
) ,
95
95
permissions: [
96
96
. allowNetworkConnections(
97
97
scope: . docker,
98
- reason: " This plugin uses Docker to create the AWS Lambda ZIP package . "
98
+ reason: " This plugin uses Docker to compile code for Amazon Linux . "
99
99
)
100
100
]
101
101
) ,
@@ -109,7 +109,7 @@ let package = Package(
109
109
intent: . custom(
110
110
verb: " lambda-deploy " ,
111
111
description:
112
- " Deploy the Lambda function. You must have an AWS account and know an access key and secret access key. "
112
+ " Deploy the Lambda function. You must have an AWS account and an access key and secret access key. "
113
113
) ,
114
114
permissions: [
115
115
. allowNetworkConnections(
@@ -127,8 +127,7 @@ let package = Package(
127
127
dependencies: [
128
128
. product( name: " NIOHTTP1 " , package : " swift-nio " ) ,
129
129
. product( name: " NIOCore " , package : " swift-nio " ) ,
130
- ] ,
131
- swiftSettings: [ . swiftLanguageMode( . v6) ]
130
+ ]
132
131
) ,
133
132
. testTarget(
134
133
name: " AWSLambdaRuntimeTests " ,
Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ struct Builder {
247
247
248
248
REQUIREMENTS: To use this plugin, you must have docker installed and started.
249
249
250
- USAGE: swift package --allow-network-connections docker archive
250
+ USAGE: swift package --allow-network-connections docker lambda-build
251
251
[--help] [--verbose]
252
252
[--output-path <path>]
253
253
[--products <list of products>]
You can’t perform that action at this time.
0 commit comments