Skip to content

Commit 2efc272

Browse files
committed
Location of logs and required docroot files
1 parent a2a852a commit 2efc272

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,27 +101,34 @@ If you would like to customise the project and upload your own static website co
101101
```shell
102102
make package-function
103103
```
104-
4. Copy your site content to the projects **www** folder
105-
4. If you don't have one already, create an S3 bucket to store the CloudFormation artifacts with `aws s3 mb s3://<bucket name>`
104+
4. Copy your site content to the projects **www** folder. Make sure to include the following files
105+
5.
106+
```
107+
- index.html
108+
- 403.html
109+
- 404.html
110+
```
111+
5. If you don't have one already, create an S3 bucket to store the CloudFormation artifacts with `aws s3 mb s3://<bucket name>`
106112
107-
5. Package the CloudFormation template. The provided template uses [the AWS Serverless Application Model](https://aws.amazon.com/about-aws/whats-new/2016/11/introducing-the-aws-serverless-application-model/) so must be transformed before you can deploy it.
113+
6. Package the CloudFormation template. The provided template uses [the AWS Serverless Application Model](https://aws.amazon.com/about-aws/whats-new/2016/11/introducing-the-aws-serverless-application-model/) so must be transformed before you can deploy it.
108114
109115
```shell
110116
aws cloudformation package \
111117
--template-file templates/main.yaml \
112-
--s3-bucket <your bucket name here> \
118+
--s3-bucket <bucket name> \
113119
--output-template-file packaged.template
114120
```
115121
116-
6. Deploy the packaged CloudFormation template to a CloudFormation stack:
122+
7. Deploy the packaged CloudFormation template to a CloudFormation stack:
117123
118124
```shell
119125
aws cloudformation deploy \
120126
--stack-name <your stack name> \
121127
--template-file packaged.template \
122128
--capabilities CAPABILITY_NAMED_IAM CAPABILITY_AUTO_EXPAND \
123129
--parameter-overrides DomainName=<your domain> SubDomain=<your subdomain>
124-
```
130+
```
131+
8. Once the stack has deployed note the value for **S3BucketLogs** in the main stack's output and explore your access logs.
125132

126133
## Contributing
127134
Contributions are welcome. Please read the [code of conduct](CODE_OF_CONDUCT.md) and the [contributing guidelines](CONTRIBUTING.md).

0 commit comments

Comments
 (0)