question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(core): unexpected `ConstructNode.metadata is deprecated` warning message

See original GitHub issue

What 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:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
A-ndy-gitcommented, Nov 23, 2021

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.

[WARNING] @aws-cdk/core.ConstructNode#metadata is deprecated.
  use `metadataEntry`
  This API will be removed in the next major release.
[WARNING] @aws-cdk/core.ConstructNode#metadata is deprecated.
  use `metadataEntry`
  This API will be removed in the next major release.
[WARNING] @aws-cdk/core.ConstructNode#metadata is deprecated.
  use `metadataEntry`
  This API will be removed in the next major release.
[WARNING] @aws-cdk/core.ConstructNode#metadata is deprecated.
  use `metadataEntry`
  This API will be removed in the next major release.
[WARNING] @aws-cdk/core.ConstructNode#metadata is deprecated.
  use `metadataEntry`
  This API will be removed in the next major release.
[WARNING] @aws-cdk/core.ConstructNode#metadata is deprecated.
  use `metadataEntry`
  This API will be removed in the next major release.
[WARNING] @aws-cdk/core.ConstructNode#metadata is deprecated.
  use `metadataEntry`
  This API will be removed in the next major release.
[WARNING] @aws-cdk/core.ConstructNode#metadata is deprecated.
  use `metadataEntry`
  This API will be removed in the next major release.
[WARNING] @aws-cdk/core.ConstructNode#metadata is deprecated.
  use `metadataEntry`
  This API will be removed in the next major release.
[WARNING] @aws-cdk/core.ConstructNode#metadata is deprecated.
  use `metadataEntry`
  This API will be removed in the next major release.
[WARNING] @aws-cdk/core.ConstructNode#metadata is deprecated.
  use `metadataEntry`
  This API will be removed in the next major release.
[WARNING] @aws-cdk/core.ConstructNode#metadata is deprecated.
  use `metadataEntry`
  This API will be removed in the next major release.
[WARNING] @aws-cdk/core.ConstructNode#metadata is deprecated.
  use `metadataEntry`
  This API will be removed in the next major release.
[WARNING] @aws-cdk/core.ConstructNode#metadata is deprecated.
  use `metadataEntry`
  This API will be removed in the next major release.
[WARNING] @aws-cdk/core.ConstructNode#metadata is deprecated.
  use `metadataEntry`
  This API will be removed in the next major release.
[WARNING] @aws-cdk/core.ConstructNode#metadata is deprecated.
  use `metadataEntry`
  This API will be removed in the next major release.
[WARNING] @aws-cdk/core.ConstructNode#metadata is deprecated.
  use `metadataEntry`
  This API will be removed in the next major release.
[WARNING] @aws-cdk/core.ConstructNode#metadata is deprecated.
  use `metadataEntry`
  This API will be removed in the next major release.

Any suggestions on how to best trace this with such a limited error?

0reactions
github-actions[bot]commented, Nov 25, 2021

⚠️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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found