enghwa / ecommerce-shopfront-on-aws Goto Github PK
View Code? Open in Web Editor NEWA high availability, API-first reference architecture for ecommerce using AWS services
License: Apache License 2.0
A high availability, API-first reference architecture for ecommerce using AWS services
License: Apache License 2.0
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!
do we really need to top selling book feature for this lab?
Another problem was raised by upgrading the version of node.js in this pull request.
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
How is cognito going to highly available if you have registered users in a pool in a region and that region goes down.
update lab guide to use personal domain name instead of multi-region.xyz
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.