
Product
Introducing GitHub Actions Scanning Support
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
@wanews/pulumi-static-site
Advanced tools
Provides an S3 bucket behind a CloudFront distribution for use as a static site.
Provides an S3 bucket behind a CloudFront distribution for use as a static site.
Implements the Using a website endpoint as the origin, with access restricted by a Referer header behaviour as described by https://aws.amazon.com/premiumsupport/knowledge-center/cloudfront-serve-static-website/
import { StaticSite } from '@wanews/pulumi-static-site'
new StaticSite('example.com', {
primaryDomain: 'example.com',
getTags: (name) => ({ name }),
})
Run nx test pulumi-static-site to execute the unit tests via Jest.
This module allows existing buckets and distributions to be imported instead of creating new ones.
To import an existing bucket, use importPrimaryBucket. However, pulumi refuses to import a resources unless its args match those of the resource to be imported, so the bucket args will typically need to be overridden too.
import { StaticSite } from '@wanews/pulumi-static-site'
new StaticSite('example.com', {
primaryDomain: 'example.com',
getTags: (name) => ({ name }),
importPrimaryBucket: {
bucketId: 'my-bucket',
overrideBucketArgs: {
bucket: 'my-bucket',
tags: { /* my-tags */ },
// etc
}
},
})
Once the resource has been imported, remove the importPrimaryBucket to apply the new settings. If you still need to override any bucket args, use bucketOptions.
import { StaticSite } from '@wanews/pulumi-static-site'
new StaticSite('example.com', {
primaryDomain: 'example.com',
getTags: (name) => ({ name }),
bucketOptions: {
bucket: 'my-bucket',
},
})
FAQs
Provides an S3 bucket behind a CloudFront distribution for use as a static site.
We found that @wanews/pulumi-static-site demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.

Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.

Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.