Skip to content

Commit 731808a

Browse files
authored
Merge pull request awsdocs#450 from awsdocs/mwunderl-cli2
CLI command compatibility with v2
2 parents 64c5797 + c5f6ee4 commit 731808a

File tree

35 files changed

+33
-185
lines changed

35 files changed

+33
-185
lines changed

sample-apps/blank-csharp-with-layer/1-create-bucket-and-role.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ echo $BUCKET_NAME > bucket-name.txt
66
aws s3 mb s3://$BUCKET_NAME
77
aws s3 mb s3://$LAYER_BUCKET_NAME
88

9-
aws iam create-role --role-name blank-csharp-role --assume-role-policy-document file://assume-policy.json
9+
aws iam create-role --role-name blank-csharp-role --assume-role-policy-document fileb://assume-policy.json
1010
aws iam attach-role-policy --role-name blank-csharp-role --policy-arn arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
1111
aws iam attach-role-policy --role-name blank-csharp-role --policy-arn arn:aws:iam::aws:policy/AWSLambda_ReadOnlyAccess
1212
aws iam attach-role-policy --role-name blank-csharp-role --policy-arn arn:aws:iam::aws:policy/AWSXrayWriteOnlyAccess

sample-apps/blank-csharp-with-layer/README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@ Use the following instructions to deploy the sample application. For more inform
1515
- The Bash shell. For Linux and macOS, this is included by default. In Windows 10, you can install the [Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/install-win10) to get a Windows-integrated version of Ubuntu and Bash.
1616
- [The AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html) v1.17 or newer.
1717

18-
If you use the AWS CLI v2, add the following to your [configuration file](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html) (`~/.aws/config`):
19-
20-
```
21-
cli_binary_format=raw-in-base64-out
22-
```
23-
24-
This setting enables the AWS CLI v2 to load JSON events from a file, matching the v1 behavior.
25-
2618
# Setup
2719
Download or clone this repository.
2820

sample-apps/blank-csharp/README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@ Use the following instructions to deploy the sample application. For more inform
1616
- The Bash shell. For Linux and macOS, this is included by default. In Windows 10, you can install the [Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/install-win10) to get a Windows-integrated version of Ubuntu and Bash.
1717
- [The AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html) v1.17 or newer.
1818

19-
If you use the AWS CLI v2, add the following to your [configuration file](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html) (`~/.aws/config`):
20-
21-
```
22-
cli_binary_format=raw-in-base64-out
23-
```
24-
25-
This setting enables the AWS CLI v2 to load JSON events from a file, matching the v1 behavior.
26-
2719
# Setup
2820
Download or clone this repository.
2921

sample-apps/blank-go/3-invoke.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -eo pipefail
33
FUNCTION=$(aws cloudformation describe-stack-resource --stack-name blank-go --logical-resource-id function --query 'StackResourceDetail.PhysicalResourceId' --output text)
44
55
while true; do
6-
aws lambda invoke --function-name $FUNCTION --payload file://event.json out.json
6+
aws lambda invoke --function-name $FUNCTION --payload fileb://event.json out.json
77
cat out.json
88
echo ""
99
sleep 2

sample-apps/blank-go/README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@ Use the following instructions to deploy the sample application.
1515
- The Bash shell. For Linux and macOS, this is included by default. In Windows 10, you can install the [Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/install-win10) to get a Windows-integrated version of Ubuntu and Bash.
1616
- [The AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html) v1.17 or newer.
1717

18-
If you use the AWS CLI v2, add the following to your [configuration file](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html) (`~/.aws/config`):
19-
20-
```
21-
cli_binary_format=raw-in-base64-out
22-
```
23-
24-
This setting enables the AWS CLI v2 to load JSON events from a file, matching the v1 behavior.
25-
2618
# Setup
2719
Download or clone this repository.
2820

sample-apps/blank-java/4-invoke.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -eo pipefail
33
FUNCTION=$(aws cloudformation describe-stack-resource --stack-name blank-java --logical-resource-id function --query 'StackResourceDetail.PhysicalResourceId' --output text)
44
55
while true; do
6-
aws lambda invoke --function-name $FUNCTION --payload file://event.json out.json
6+
aws lambda invoke --function-name $FUNCTION --payload fileb://event.json out.json
77
cat out.json
88
echo ""
99
sleep 2

sample-apps/blank-java/README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,6 @@ Use the following instructions to deploy the sample application.
2020
- The Bash shell. For Linux and macOS, this is included by default. In Windows 10, you can install the [Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/install-win10) to get a Windows-integrated version of Ubuntu and Bash.
2121
- [The AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html) v1.17 or newer.
2222

23-
If you use the AWS CLI v2, add the following to your [configuration file](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html) (`~/.aws/config`):
24-
25-
```
26-
cli_binary_format=raw-in-base64-out
27-
```
28-
29-
This setting enables the AWS CLI v2 to load JSON events from a file, matching the v1 behavior.
30-
3123
# Setup
3224
Download or clone this repository.
3325

sample-apps/blank-nodejs/README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,6 @@ Use the following instructions to deploy the sample application. For an in-depth
2525
- The Bash shell. For Linux and macOS, this is included by default. In Windows 10, you can install the [Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/install-win10) to get a Windows-integrated version of Ubuntu and Bash.
2626
- [The AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html) v1.17 or newer.
2727

28-
If you use the AWS CLI v2, add the following to your [configuration file](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html) (`~/.aws/config`):
29-
30-
```
31-
cli_binary_format=raw-in-base64-out
32-
```
33-
34-
This setting enables the AWS CLI v2 to load JSON events from a file, matching the v1 behavior.
35-
3628
# Setup
3729
Download or clone this repository.
3830

sample-apps/blank-powershell/3-invoke.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -eo pipefail
33
FUNCTION=$(aws cloudformation describe-stack-resource --stack-name blank-powershell --logical-resource-id function --query 'StackResourceDetail.PhysicalResourceId' --output text)
44
55
while true; do
6-
aws lambda invoke --function-name $FUNCTION --payload file://event.json out.json
6+
aws lambda invoke --function-name $FUNCTION --payload fileb://event.json out.json
77
cat out.json
88
echo ""
99
sleep 2

sample-apps/blank-powershell/README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@ Use the following instructions to deploy the sample application.
1717
- The Bash shell. For Linux and macOS, this is included by default. In Windows 10, you can install the [Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/install-win10) to get a Windows-integrated version of Ubuntu and Bash.
1818
- [The AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html) v1.17 or newer.
1919

20-
If you use the AWS CLI v2, add the following to your [configuration file](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html) (`~/.aws/config`):
21-
22-
```
23-
cli_binary_format=raw-in-base64-out
24-
```
25-
26-
This setting enables the AWS CLI v2 to load JSON events from a file, matching the v1 behavior.
27-
2820
# Setup
2921
Download or clone this repository.
3022

0 commit comments

Comments
 (0)