Pulumi ComponentResource for creating CloudFront + S3 websites
pip install --upgrade pip
pip install wheel
pip install pulumi-aws-website
# or
pip install git+git://github.com/jetbrains-infra/pulumi-aws-website@<tag or branch>
import pulumi
from pulumi_aws_website import config
from pulumi_aws_website import WebSite
website = WebSite('my-site',
issue='sre-123',
stack='staging',
zones={
'ABCDEF123': ['test.jetbrains.com']
},
viewer_certificate=config.ViewerCertificate(cloudfront_default_certificate=True)
)
pulumi.export('cf_distribution_id', website.distribution.id)