(core): unexpected `ConstructNode.metadata is deprecated` warning message
See original GitHub issueWhat is the problem?
Received a new error message @aws-cdk/core.ConstructNode#metadata is deprecated
when running cdk deploy
.
Actual error:
[WARNING] @aws-cdk/core.ConstructNode#metadata is deprecated.
use `metadataEntry`
This API will be removed in the next major release.
Reproduction Steps
Utilize @aws-cdk/core.ConstructNode#metadata
What did you expect to happen?
CDK application deploys without error.
What actually happened?
CDK deploy worked as intended, but threw a warning message.
CDK CLI Version
1.132.0 (build 5c75891)
Framework Version
No response
Node.js Version
v14.16.1
OS
Mac
Language
Typescript
Language Version
No response
Other information
I am not entirely sure what is causing this issue. Please not I am merely reporting this to the team.
Here are my dependencies:
const { Construct, CfnOutput } = require('@aws-cdk/core');
const { Role, ServicePrincipal, PolicyStatement, CfnInstanceProfile, ManagedPolicy } = require('@aws-cdk/aws-iam');
const { CfnApplication, CfnEnvironment } = require('@aws-cdk/aws-elasticbeanstalk');
const { CfnEIP, CfnEIPAssociation } = require('@aws-cdk/aws-ec2');
const { AwsCustomResource, PhysicalResourceId, AwsCustomResourcePolicy } = require('@aws-cdk/custom-resources');
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
ConstructNode — AWS Cloud Development Kit 1.183.0 ...
The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode. Parameters. message ( str )...
Read more >@aws-cdk/aws-lambda-nodejs | Yarn - Package Manager
This library provides constructs for Node.js Lambda functions. Node.js Function. The NodejsFunction construct creates a Lambda function with automatic ...
Read more >awscdk - Go Packages
Returns: The construct as a stack element or undefined if it is not a stack element. Deprecated: use the CfnInclude class from the...
Read more >3041076-41.patch - Drupal
You can find the latest stable version diff --git a/core/composer.json ... $message); + break; + + default: + // This was an unexpected...
Read more >Deprecated List (software.amazon.awscdk:core 1.132.0 API)
software.amazon.awscdk.core.ConstructNode.applyAspect(IAspect). This API is going to be removed in the next major version of the AWS CDK.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have a single Stack with 5 Constructs, yet the error message appears many more times. I can only assume all of them are generating this error.
Any suggestions on how to best trace this with such a limited error?
⚠️COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.