Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add error403 parameter to handle 403 errors #36

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

joreyaesh
Copy link

Add the ability to redirect 403 errors on websites.

  • provider/cmd/pulumi-resource-aws-static-website/website.ts

    • Add error403 parameter to WebsiteArgs interface.
    • Add check for existence of error403 document.
    • Update customErrorResponses property in CloudFront distribution configuration to include 403 error configuration.
  • README.md

    • Update documentation to include the new error403 parameter.
  • schema.json

    • Add error403 parameter to WebsiteArgs type definition.

Add the ability to redirect 403 errors on websites.

* **provider/cmd/pulumi-resource-aws-static-website/website.ts**
  - Add `error403` parameter to `WebsiteArgs` interface.
  - Add check for existence of `error403` document.
  - Update `customErrorResponses` property in CloudFront distribution configuration to include 403 error configuration.

* **README.md**
  - Update documentation to include the new `error403` parameter.

* **schema.json**
  - Add `error403` parameter to `WebsiteArgs` type definition.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/joreyaesh/pulumi-aws-static-website?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant