Last active
December 9, 2022 01:38
-
-
Save cnunciato/b331efae6a4740c237a0364d17fe220f to your computer and use it in GitHub Desktop.
Hello! I'm a publicly accessible Pulumi project template.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configure project names and descriptions with values obtained from `pulumi new`. | |
name: ${PROJECT} | |
description: ${DESCRIPTION} | |
runtime: yaml | |
# Define the template's configuration settings. | |
template: | |
description: A simple static website on Amazon S3 | |
config: | |
aws:region: | |
description: The AWS region to deploy into | |
default: us-west-2 | |
title: | |
description: A title to use for the home page | |
default: My Awesome Website | |
greeting: | |
description: A greeting to show on the home page | |
default: Hello, internet person! 👋 | |
resources: | |
# Create an S3 bucket and configure it as a website. | |
bucket: | |
type: aws:s3:Bucket | |
properties: | |
acl: public-read | |
website: | |
indexDocument: index.html | |
# Create a home page for the website. | |
index.html: | |
type: aws:s3:BucketObject | |
properties: | |
bucket: ${bucket.id} | |
acl: public-read | |
contentType: text/html | |
content: | | |
<html> | |
<meta name="content" charset="utf-8"> | |
<title>${title}</title> | |
<body> | |
<h1>${title}</h1> | |
<p>${greeting}</p> | |
</body> | |
</html> | |
# Export the URL of the website. | |
outputs: | |
url: http://${bucket.websiteEndpoint} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment