Open mpMelnikov opened 3 weeks ago
Followed below mentioned steps using CDK version 2.165.0 (build 00f70f1)
:
project
and Value ai-news
in us-east-2
region.cdk init app --language javascript
with the new directory as current directory.cdk migrate --from-scan new --region us-east-2 --stack-name ai-news-stack --filter tag-key="project",tag-value="ai-news" --verbose
first since the last scan was old and didn't contain this Lambda function. It failed with an error.cdk init app --language javascript
.cdk migrate --from-scan most-recent --region us-east-2 --stack-name ai-news-stack --filter tag-key="project",tag-value="ai-news" --verbose
.Result:
cdk migrate
failed with below error:
Using the latest successful scan which is 0 days, 0 hours, and 11 minutes old.
Applying filters to resource scan.
finding related resources.
Found 3 resources.
Generating CFN template from scanned resources.
Please wait, template creation in progress. This may take a couple minutes.
[CREATE_IN_PROGRESS] Template Creation in Progress
Template successfully generated!
❌ Migrate failed for `ai-news-stack`: AiNewsStackStack could not be generated because RecursiveLoop is not a valid property for resource LambdaFunction00TestJSFunction00nmcyI of type AWS::Lambda::Function
[11:27:51] Reading cached notices from /Users/ashdhin/.cdk/cache/notices.json
AiNewsStackStack could not be generated because RecursiveLoop is not a valid property for resource LambdaFunction00TestJSFunction00nmcyI of type AWS::Lambda::Function
[11:27:51] Error: AiNewsStackStack could not be generated because RecursiveLoop is not a valid property for resource LambdaFunction00TestJSFunction00nmcyI of type AWS::Lambda::Function
at generateStack (/opt/homebrew/lib/node_modules/aws-cdk/lib/index.js:520:156222)
at CdkToolkit.migrate (/opt/homebrew/lib/node_modules/aws-cdk/lib/index.js:523:5125)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async exec4 (/opt/homebrew/lib/node_modules/aws-cdk/lib/index.js:575:56240)
The error is different from the one reported by user though.
Related issue https://github.com/aws/aws-cdk/issues/31696.
@mpMelnikov Thanks for reporting the issue. I got a different error than the one you mentioned. There is an existing issue https://github.com/aws/aws-cdk/issues/31696 for RecursiveLoop is not a valid property
error. Please review if you still get the original error and if we could close this issue as duplicate since we already have tracking issue.
Thanks, Ashish
Hi @ashishdhingra, thank you for your test! I'll check it again in clean environment by the end of this week.
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
I am still here and need more time.
Sure. I will re-add response requested label.
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
@mpMelnikov Thanks for reporting the issue. I got a different error than the one you mentioned. There is an existing issue #31696 for
RecursiveLoop is not a valid property
error. Please review if you still get the original error and if we could close this issue as duplicate since we already have tracking issue.Thanks, Ashish
I confirm that the error I observe is different from the one seen by Ashish. What have I done to reproduce it again?
cdk init app --language csharp
cdk migrate --from-scan new --region us-east-2 --stack-name ai-news-stack --filter tag-key="test_tag",tag-value="2024_11_10" --verbose
Applying filters to resource scan.
finding related resources.
Found 5 resources.
Generating CFN template from scanned resources.
Please wait, template creation in progress. This may take a couple minutes.
[CREATE_IN_PROGRESS] Template Creation in Progress
Template successfully generated!
❌ Migrate failed for `ai-news-stack`: AiNewsStackStack could not be generated because Tags is not a valid property for resource LambdaEventSourceMapping0000a5e5ee989d4414aaa15d88e3f9750900fBpmf of type AWS::Lambda::EventSourceMapping
[21:33:22] Reading cached notices from /home/mikhail/.cdk/cache/notices.json
AiNewsStackStack could not be generated because Tags is not a valid property for resource LambdaEventSourceMapping0000a5e5ee989d4414aaa15d88e3f9750900fBpmf of type AWS::Lambda::EventSourceMapping
[21:33:22] Error: AiNewsStackStack could not be generated because Tags is not a valid property for resource LambdaEventSourceMapping0000a5e5ee989d4414aaa15d88e3f9750900fBpmf of type AWS::Lambda::EventSourceMapping
at generateStack (/home/mikhail/.nvm/versions/node/v18.18.2/lib/node_modules/aws-cdk/lib/index.js:520:156222)
at CdkToolkit.migrate (/home/mikhail/.nvm/versions/node/v18.18.2/lib/node_modules/aws-cdk/lib/index.js:523:5125)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async exec4 (/home/mikhail/.nvm/versions/node/v18.18.2/lib/node_modules/aws-cdk/lib/index.js:575:56240)
Describe the bug
When I try to generate CDK code for my Lambda using
cdk migrate --from-scan most-recent --region eu-south-2 --stack-name ai-news-stack --filter tag-key="project",tag-value="ai-news" --verbose
I see the error:Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
cdk migrate --from-scan most-recent --region eu-south-2 --stack-name ai-news-stack --filter tag-key="project",tag-value="ai-news" --verbose
is executed without errors and CDK code is generated.Current Behavior
When I try to generate CDK code for my Lambda using
cdk migrate --from-scan most-recent --region eu-south-2 --stack-name ai-news-stack --filter tag-key="project",tag-value="ai-news" --verbose
I see the error:Reproduction Steps
cdk init app --language csharp
orcdk init app --language javascript
cdk bootstrap aws://000000000000:eu-south-2
cdk migrate --from-scan most-recent --region eu-south-2 --stack-name ai-news-stack --filter tag-key="project",tag-value="ai-news" --verbose
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.165.0 (build 00f70f1)
Framework Version
No response
Node.js Version
v18.18.2
OS
Ubuntu 22.04.5 LTS
Language
.NET
Language Version
6.0.135
Other information
No response