Skip to content

Commit 7681d22

Browse files
authored
Rearanged Error troubleshooting section (#35)
1 parent 809b6da commit 7681d22

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,13 @@ priceClass: PriceClass_All
103103

104104
* [`minimumProtocolVersion`][minimum-protocol-version] can be `TLSv1` (default), `TLSv1_2016`, `TLSv1.1_2016`, `TLSv1.2_2018` or `SSLv3`:
105105

106-
* Error troubleshooting : make sure you have at least one http event otherwise you'll get ```The CloudFormation template is invalid: Template format error: Unresolved resource dependencies [ApiGatewayRestApi] in the Resources block of the template```
107-
108106
```
109107
minimumProtocolVersion: TLSv1
110108
```
111109

112110
[minimum-protocol-version]: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_ViewerCertificate.html#cloudfront-Type-ViewerCertificate-MinimumProtocolVersion
113111

112+
114113
### IAM Policy
115114

116115
In order to make this plugin work as expected a few additional IAM Policies might be needed on your AWS profile.
@@ -124,3 +123,7 @@ More specifically this plugin needs the following policies attached:
124123
* `cloudfront:TagResource`
125124

126125
You can read more about IAM profiles and policies in the [Serverless documentation](https://serverless.com/framework/docs/providers/aws/guide/credentials#creating-aws-access-keys).
126+
127+
## Error troubleshooting
128+
129+
* Make sure you have at least one http event otherwise you'll get ```The CloudFormation template is invalid: Template format error: Unresolved resource dependencies [ApiGatewayRestApi] in the Resources block of the template```

0 commit comments

Comments
 (0)