GithubHelp home page GithubHelp logo

sbstjn / cra-pipeline Goto Github PK

View Code? Open in Web Editor NEW
42.0 3.0 15.0 649 KB

Use AWS CDK with CodePipeline to deploy a TypeScript Create-React-App.

Home Page: https://sbstjn.com/deploy-react-cra-with-cdk-codepipeline-and-codebuild.html

License: MIT License

TypeScript 86.53% HTML 13.47%
aws-cdk aws-codepipeline cra-pipeline react cra serverless deployment pipeline

cra-pipeline's Issues

404 error doc for SPA should be index.html

Hi,
Thanks for publishing this. I just noticed that an error doc is in the pipeline.ts here:

websiteErrorDocument: 'error.html',

This results in a 404 page for the error.html page when a non-existent URL is accessed like: http://pipeline-files8e6940b8-tyzn4y41xz9l.s3-website-us-east-1.amazonaws.com/non-existant.html

When hosting an SPA the error document should be set to index.html so that the JS can show a 404 (and maybe report an error to the crash logger)

AWS::KMS::Key Error

After initial install and configuration, I encounter this error:

Do you wish to deploy these changes (y/n)? y Pipeline: deploying... Pipeline: creating CloudFormation changeset... 10:11:42 PM | CREATE_FAILED | AWS::KMS::Key | PipelineArtifactsB...ryptionKey01D58D69 The new key policy will not allow you to update the key policy in the future. (Service: Kms, Status Code: 400, Request ID: b 652e882-829a-4b8c-b4db-825b433f9053, Extended Request ID: null)

I'll research to try and resolve.

Chris

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.