Skip to content

Commit

Permalink
change to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghosh committed Jun 12, 2018
1 parent ebe251d commit 32d8d84
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Expand Up @@ -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

Expand All @@ -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"

```
Expand Down

0 comments on commit 32d8d84

Please sign in to comment.