From 32d8d84eb3432ab4a56a4c518509ee28f360d454 Mon Sep 17 00:00:00 2001 From: Ghosh Date: Tue, 12 Jun 2018 11:46:58 -0400 Subject: [PATCH] change to readme --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6041f7e..d79155d 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ aws cloudformation deploy --template-file template-out.yaml --stack-name apigw-r API_ID=$(aws cloudformation describe-stacks --stack-name apigw-resource-policies-demo --query 'Stacks[0].Outputs[?OutputKey==`AwsApiId`].OutputValue' --output text) ``` -### Create APIGW Resource Policy from template and apply it to the newly created API +### Create APIGW Resource Policy from template ```bash @@ -61,6 +61,9 @@ perl -p -i -e "s/user/$userA/g" policy.json policy=`cat policy.json` +``` +### Apply the resource policy to the API +```bash aws apigateway update-rest-api --rest-api-id $API_ID --patch-operations op=replace,path=/policy,value="$policy" ```