bumpy-room-43904
07/09/2021, 3:33 AM"""An AWS Python Pulumi program"""
import pulumi
from pulumi_aws import s3
# Create an AWS resource (S3 Bucket)
bucket = s3.Bucket('my-bucket')
# Export the name of the bucket
pulumi.export('bucket_name', bucket.id)
bucketObject = s3.BucketObject(
'index.html',
acl='public-read',
content_type='text/html',
bucket=bucket,
source=pulumi.FileAsset('index.html'),
)
pulumi.export('bucket_endpoint', pulumi.Output.concat('http://', bucket.website_endpoint))
It must be me...pulumi seems great thus far despite my error. Any hints for this?helpful-tent-95136
07/09/2021, 3:35 AMindex.html
file you're uploading exist in the directory you're running pulumi up from?bumpy-room-43904
07/09/2021, 3:36 AMhelpful-tent-95136
07/09/2021, 3:37 AMwebsite_endpoint
is none instead of stringbucket = s3.Bucket('my-bucket',
website=s3.BucketWebsiteArgs(
index_document="index.html",
))
bumpy-room-43904
07/09/2021, 3:38 AM