Static Site

List of all available properties for a 'Static Site Service' manifest.

Sample static site manifest
name: example
type: Static Site

http:
  alias: 'example.com'

files:
  - source: src/someDirectory
    recursive: true
  - source: someFile.html

# You can override any of the values defined above by environment.
# environments:
#   test:
#     files:
#       - source: './blob'
#         destination: 'assets'
#         recursive: true
#         exclude: '*'
#         reinclude:
#           - '*.txt'
#           - '*.png'

name String
The name of your service.

type String
The architecture type for your service. A Static Site is an internet-facing service that is hosted by Amazon S3.

http Map
Configuration for incoming traffic to your site.

http.alias String
HTTPS domain alias of your service.

http.certificate String
The ARN for the certificate used for your HTTPS traffic. CloudFront requires imported certificates to be in the us-east-1 region. For example:

http:
  alias: example.com
  certificate: "arn:aws:acm:us-east-1:1234567890:certificate/e5a6e114-b022-45b1-9339-38fbfd6db3e2"

files Array of Maps
Parameters related to your static assets.

files.source String
The path, relative to your workspace root, to the directory or file to upload to S3.

files.recursive Boolean
Whether or not the source directory should be uploaded recursively. Defaults to true for directories.

files.destination String
Optional. The subpath to be prepended to your files in your S3 bucket. Default value is .

files.exclude String
Optional. Pattern-matched filters to exclude files from upload. Acceptable symbols are:
* (matches everything)
? (matches any single character)
[sequence] (matches any character in sequence)
[!sequence] (matches any character not in sequence)

files.reinclude String
Optional. Pattern-matched filters to reinclude files that have been excluded from upload via exclude. Acceptable symbols are:
* (matches everything)
? (matches any single character)
[sequence] (matches any character in sequence)
[!sequence] (matches any character not in sequence)