Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noqcks/ansible-s3-website
Because it shouldn't take more than 30 seconds to host a static site
https://github.com/noqcks/ansible-s3-website
Last synced: 23 days ago
JSON representation
Because it shouldn't take more than 30 seconds to host a static site
- Host: GitHub
- URL: https://github.com/noqcks/ansible-s3-website
- Owner: noqcks
- License: mit
- Created: 2015-08-15T18:41:35.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-16T18:01:04.000Z (over 9 years ago)
- Last Synced: 2024-10-30T15:58:49.412Z (2 months ago)
- Size: 129 KB
- Stars: 11
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible-s3-wesbite
A simple ansible role that uses S3, Route53, and cloudfront to create a low-latency static website.
[![Platforms](http://img.shields.io/badge/platforms-ubuntu-lightgrey.svg?style=flat)](#)
Tunables
--------* `s3_website_domain` (string) - The root domain of your static website. e.g example.com
* `s3_website_region` (string) - The region for your S3 bucket
* `s3_website_s3_endpoint` (string) - The S3 website endpoint. Better to not touch this
* `s3_website_directory` (string) - The local directory where your website is located
* `s3_website_index_document` (string) - The website index document
* `s3_website_error_document` (string) - The website error document
* `s3_website_ns_servers_enabled` (boolean) - If you need to add NS servers from another domain provider
* `s3_website_ns_servers` (list) - A list of NS servers
* `s3_wesbite_bucket_policy` (string) - The bucket policy for S3
* `s3_website_cloudfront_distribution` (string) - The distribution configuration for cloudfrontDependencies
------------
* [AWS CLI](http://docs.aws.amazon.com/cli/latest/userguide/installing.html)Example Playbook
----------------
```
- hosts: servers
roles:
- role: noqcks.s3-website
s3_website_domain: "benvisser.me"
s3_website_directory: "/Users/benvisser/data/website"
```License
-------
[MIT](https://tldrlegal.com/license/mit-license)Contributors
------------
* [Ben Visser](https://github.com/noqcks) | [e-mail](mailto:[email protected])