Giter Site home page Giter Site logo

enghwa / ecommerce-shopfront-on-aws Goto Github PK

View Code? Open in Web Editor NEW
61.0 8.0 42.0 27.24 MB

A high availability, API-first reference architecture for ecommerce using AWS services

License: Apache License 2.0

JavaScript 9.20% TypeScript 90.80%
aws-lambda aws-fargate-application aws-dynamodb aws-aurora aws-amplify react aws-amplify-react aws aws-api-gateway typescript

ecommerce-shopfront-on-aws's People

Contributors

djinn avatar enghwa avatar jayshin0511 avatar matthewduren avatar ykbryan avatar yuuu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ecommerce-shopfront-on-aws's Issues

Some errors encoutered when running npx commands

Hi,
Being at the first step of the workshop, when launching following command: npx [email protected] bootstrap
Got the following error messages:

⨯ Unable to compile TypeScript:
lib/wordpress-lab-stack.ts:79:36 - error TS2339: Property 'ClusterParameterGroup' does not exist on type 'typeof import("/home/ec2-user/environment/ecommerce-shopfront-on-aws/wordpress-lab/node_modules/@aws-cdk/aws-rds/lib/index")'.

79     const dbClusterParam = new rds.ClusterParameterGroup(this, 'replica-param-aurora', {
                                      ~~~~~~~~~~~~~~~~~~~~~
lib/wordpress-lab-stack.ts:98:9 - error TS2322: Type '{ instanceType: InstanceType; securityGroup: SecurityGroup; vpcSubnets: { subnetType: SubnetType; }; vpc: Vpc; }' is not assignable to type 'InstanceProps'.
  Object literal may only specify known properties, but 'securityGroup' does not exist in type 'InstanceProps'. Did you mean to write 'securityGroups'?

98         securityGroup: dbsecuritygroup,
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/@aws-cdk/aws-rds/lib/cluster.d.ts:41:14
    41     readonly instanceProps: InstanceProps;
                    ~~~~~~~~~~~~~
    The expected type comes from property 'instanceProps' which is declared here on type 'DatabaseClusterProps'
lib/wordpress-lab-stack.ts:193:7 - error TS2322: Type '{ service: string; action: string; parameters: { taskDefinition: string; cluster: string; count: number; launchType: string; networkConfiguration: { awsvpcConfiguration: { subnets: string[]; assignPublicIp: string; }; }; }; physicalResourceId: string; }' is not assignable to type 'AwsSdkCall'.
  Types of property 'physicalResourceId' are incompatible.
    Type 'string' is not assignable to type 'PhysicalResourceId | undefined'.

193       onCreate: {
          ~~~~~~~~

  node_modules/@aws-cdk/custom-resources/lib/aws-custom-resource/aws-custom-resource.d.ts:224:14
    224     readonly onCreate?: AwsSdkCall;
                     ~~~~~~~~
    The expected type comes from property 'onCreate' which is declared here on type 'AwsCustomResourceProps'

**************************************************
*** Newer version of CDK is available [1.97.0] ***
*** Upgrade recommended                        ***
**************************************************
Subprocess exited with error 1

But the AWS cloudformation stacks was created.

So is this errors normal?

Pretty same error was raised when running second commande: npx [email protected] deploy hostedZone

Please help!

bookstore-UploadBooks outputs the Runtime.ImportModuleError.

Another problem was raised by upgrading the version of node.js in this pull request.

#6

bookstore-UploadBooks that is Custom::CustomResource outputs the following error:

    "errorType": "Runtime.ImportModuleError",
    "errorMessage": "Error: Cannot find module 'uuid'",
    "stack": [
        "Runtime.ImportModuleError: Error: Cannot find module 'uuid'",
        "    at _loadUserApp (/var/runtime/UserFunction.js:100:13)",
        "    at Object.module.exports.load (/var/runtime/UserFunction.js:140:17)",
        "    at Object.<anonymous> (/var/runtime/index.js:45:30)",
        "    at Module._compile (internal/modules/cjs/loader.js:778:30)",
        "    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)",
        "    at Module.load (internal/modules/cjs/loader.js:653:32)",
        "    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)",
        "    at Function.Module._load (internal/modules/cjs/loader.js:585:3)",
        "    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)",
        "    at startup (internal/bootstrap/node.js:283:19)"
    ]

It looks like you are experiencing the issues described on this page.

https://stackoverflow.com/questions/57906632/lambda-code-works-on-node-v8-10-but-not-nodejs-v10-x

I want to fix this code. Could you tell me the repository ?
https://arc309-bookstore-ap-southeast-1.s3-ap-southeast-1.amazonaws.com/functions/UploadBooks.zip

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.