mirror of https://github.com/pulumi/pulumi.git
17 lines
342 B
Puppet
17 lines
342 B
Puppet
resource mybucket "aws:s3/bucket:Bucket" {
|
|
website = {
|
|
indexDocument = "index.html"
|
|
}
|
|
}
|
|
|
|
resource indexhtml "aws:s3/bucketObject:BucketObject" {
|
|
bucket = mybucket.id
|
|
source = stringAsset("<h1>Hello, world!</h1>")
|
|
acl = "public-read"
|
|
contentType = "text/html"
|
|
}
|
|
|
|
output bucketEndpoint {
|
|
value = "http://${mybucket.websiteEndpoint}"
|
|
}
|