diff --git a/Examples/APIGateway/README.md b/Examples/APIGateway/README.md index be4c8b8c..d03c5343 100644 --- a/Examples/APIGateway/README.md +++ b/Examples/APIGateway/README.md @@ -22,7 +22,7 @@ To build the package, type the following commands. ```bash swift build -swift package archive --allow-network-access docker +swift package archive --allow-network-connections docker ``` If there is no error, there is a ZIP file ready to deploy. diff --git a/Examples/HelloWorld/README.md b/Examples/HelloWorld/README.md index 7709c3ef..73b51595 100644 --- a/Examples/HelloWorld/README.md +++ b/Examples/HelloWorld/README.md @@ -18,7 +18,7 @@ To build & archive the package, type the following commands. ```bash swift build -swift package archive --allow-network-access docker +swift package archive --allow-network-connections docker ``` If there is no error, there is a ZIP file ready to deploy. diff --git a/Examples/S3_AWSSDK/README.md b/Examples/S3_AWSSDK/README.md index 58a7b83d..4c84c277 100644 --- a/Examples/S3_AWSSDK/README.md +++ b/Examples/S3_AWSSDK/README.md @@ -25,7 +25,7 @@ To build the package, type the following commands. ```bash swift build -swift package archive --allow-network-access docker +swift package archive --allow-network-connections docker ``` If there is no error, there is a ZIP file ready to deploy. diff --git a/Examples/S3_Soto/README.md b/Examples/S3_Soto/README.md index c9c0e4a1..7ae0fa16 100644 --- a/Examples/S3_Soto/README.md +++ b/Examples/S3_Soto/README.md @@ -25,7 +25,7 @@ To build the package, type the following command. ```bash swift build -swift package archive --allow-network-access docker +swift package archive --allow-network-connections docker ``` If there is no error, there is a ZIP file ready to deploy. diff --git a/Plugins/AWSLambdaPackager/Plugin.swift b/Plugins/AWSLambdaPackager/Plugin.swift index 61b4aec3..3be4b1ba 100644 --- a/Plugins/AWSLambdaPackager/Plugin.swift +++ b/Plugins/AWSLambdaPackager/Plugin.swift @@ -287,7 +287,8 @@ struct AWSLambdaPackager: CommandPlugin { REQUIREMENTS: To use this plugin, you must have docker installed and started. - USAGE: swift package --allow-network-access docker archive [--help] [--verbose] + USAGE: swift package --allow-network-connections docker archive + [--help] [--verbose] [--output-directory ] [--products ] [--configuration debug | release] diff --git a/Sources/AWSLambdaRuntimeCore/Documentation.docc/Resources/code/04-01-02-plugin-archive.sh b/Sources/AWSLambdaRuntimeCore/Documentation.docc/Resources/code/04-01-02-plugin-archive.sh index e1b4aa05..dc8fad5c 100644 --- a/Sources/AWSLambdaRuntimeCore/Documentation.docc/Resources/code/04-01-02-plugin-archive.sh +++ b/Sources/AWSLambdaRuntimeCore/Documentation.docc/Resources/code/04-01-02-plugin-archive.sh @@ -1,2 +1,2 @@ -swift package --allow-network-access docker plugin archive +swift package archive --allow-network-connections docker diff --git a/Sources/AWSLambdaRuntimeCore/Documentation.docc/Resources/code/04-01-03-plugin-archive.sh b/Sources/AWSLambdaRuntimeCore/Documentation.docc/Resources/code/04-01-03-plugin-archive.sh index 37a5cd1b..0a5fc72e 100644 --- a/Sources/AWSLambdaRuntimeCore/Documentation.docc/Resources/code/04-01-03-plugin-archive.sh +++ b/Sources/AWSLambdaRuntimeCore/Documentation.docc/Resources/code/04-01-03-plugin-archive.sh @@ -1,4 +1,4 @@ -swift package --allow-network-access docker archive +swift package archive --allow-network-connections docker ------------------------------------------------------------------------- building "squarenumberlambda" in docker diff --git a/Sources/AWSLambdaRuntimeCore/Documentation.docc/Resources/code/04-01-04-plugin-archive.sh b/Sources/AWSLambdaRuntimeCore/Documentation.docc/Resources/code/04-01-04-plugin-archive.sh index b35c9f65..90e47e41 100644 --- a/Sources/AWSLambdaRuntimeCore/Documentation.docc/Resources/code/04-01-04-plugin-archive.sh +++ b/Sources/AWSLambdaRuntimeCore/Documentation.docc/Resources/code/04-01-04-plugin-archive.sh @@ -1,4 +1,4 @@ -swift package --allow-network-access docker archive +swift package archive --allow-network-connections docker ------------------------------------------------------------------------- building "squarenumberlambda" in docker diff --git a/Sources/AWSLambdaRuntimeCore/Documentation.docc/quick-setup.md b/Sources/AWSLambdaRuntimeCore/Documentation.docc/quick-setup.md index 60065baa..f5f4a0fc 100644 --- a/Sources/AWSLambdaRuntimeCore/Documentation.docc/quick-setup.md +++ b/Sources/AWSLambdaRuntimeCore/Documentation.docc/quick-setup.md @@ -106,7 +106,7 @@ AWS Lambda runtime runs on Amazon Linux. You must compile your code for Amazon L > Be sure to have [Docker](https://docs.docker.com/desktop/install/mac-install/) installed for this step. ```sh -swift package --allow-network-access docker archive +swift package --allow-network-connections docker archive ------------------------------------------------------------------------- building "squarenumberlambda" in docker diff --git a/readme.md b/readme.md index e33b5379..ca8097e8 100644 --- a/readme.md +++ b/readme.md @@ -83,7 +83,7 @@ try await runtime.run() ```bash swift build -swift package archive --allow-network-access docker +swift package archive --allow-network-connections docker ``` If there is no error, there is a ZIP file ready to deploy.