Skip to content

Pulumi ComponentResource for creating CloudFront + S3 websites

License

Notifications You must be signed in to change notification settings

jetbrains-infra/pulumi-aws-website

Repository files navigation

pulumi-aws-website

Pulumi ComponentResource for creating CloudFront + S3 websites

How to install

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>

How to use

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)

About

Pulumi ComponentResource for creating CloudFront + S3 websites

Resources

License

Stars

Watchers

Forks

Packages

No packages published