Closed lkersten closed 1 year ago
Thanks for the note, I'll take a look and report back on this issue with findings.
@lkersten this should be fixed. Thanks for reporting.
Thank you for responding so quickly. Unfortunately, I am still getting the same error. This time, however, it occurred when I tried to build the EKS cluster. In the past, I was able to build the EKS cluster and get 2 nodes. Now, I cannot build the EKS cluster. Attached is the screen shot of the error message.
@lkersten this was my bad. I changed the CDK versions in the CDK projects (EKS and Baseline), but failed to update the CDK version in the setup.sh
script. I just did that with this commit. You should just be able to npm i -g aws-cdk@2.81.0
, or pull the latest and re-run setup.sh
Once again, thank you for responding so quickly. Unfortunately, the baseline script still does not install all of the necessary components, and according to CloudFormation, the rootstack fails and is automatically rolled back. Attached is the CloudFormation error message. One of the symptoms is the user pool is never created in Cognito, so it's impossible to log in to the Admin Site.
I suspect this happened because CF tried to create an artifact that was already in your environment. We have unique names on most artifacts, but some don't. Can you please make sure that all Cognito user pools were deleted, as well as all DynamoDB Tables?
No Cognito user pools were ever created, but I did find some legacy DynamoDB tables that I deleted manually. Everything seems to be working now. Thank you.
Everything worked great until I got to Lab 4, Step 7 Silo tenant onboarding pipeline. The pipeline repeatedly failed and quit while trying to create the Lambda functions.
A representative example of the Cloudwatch logs is below:
2023-06-07T01:07:45.072Z undefined ERROR Uncaught Exception
{
"errorType": "Runtime.ImportModuleError",
"errorMessage": "Error: Cannot find module 'aws-sdk'\nRequire stack:\n- /var/task/index.js\n- /var/runtime/index.mjs",
"stack": [
"Runtime.ImportModuleError: Error: Cannot find module 'aws-sdk'",
"Require stack:",
"- /var/task/index.js",
"- /var/runtime/index.mjs",
" at _loadUserApp (file:///var/runtime/index.mjs:997:17)",
" at async UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1032:21)",
" at async start (file:///var/runtime/index.mjs:1195:23)",
" at async file:///var/runtime/index.mjs:1201:1"
]
}
The baseline script appears to finish but does not create all of the infrastructure. An error message briefly appears that says:
"This CDK CLI is not compatible with the CDK library used by your application. Please upgrade the CLI to the latest version.
(Cloud assembly version mismatch: Maximum schema version supported is 31.0.0, but found 32.0.0)"
After running
npm install -g aws-cdk
to upgrade the CDK CLI and running the baseline script again, it generates several additional errors and fails to complete.