Skip to content

fix(appmesh): allow a Virtual Node have as a backend a Virtual Service whose provider is that Node - #18265

Merged
mergify[bot] merged 3 commits into
aws:masterfrom
wplucinsky:appmesh-circular-dependency
Jan 6, 2022
Merged

mergify[bot] merged 3 commits into
aws:masterfrom
wplucinsky:appmesh-circular-dependency

Conversation

@wplucinsky

Copy link
Copy Markdown
Contributor

Addresses a circular dependency issue between Virtual Nodes and Virtual Services that works for Virtual Services created with a defined virtualServiceName and a randomly generated name.

One such example of this problem was a case where a Virtual Node had a backend that is a Virtual Service whose provider was given as the same Virtual Node. This led to the Virtual Node being dependent on the creation of the Virtual Service, and the Virtual Service being dependent on the creation of the Virtual Node.

Fixes #17322


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io

gitpod-io Bot commented Jan 4, 2022

Copy link
Copy Markdown

@skinny85 skinny85 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @wplucinsky! A few minor comments.

Additionally, the build is failing - looks like you need to update an integ test in the @aws-cdk-containers/ecs-service-extensions module:

@aws-cdk-containers/ecs-service-extensions: Verifying integ.all-service-addons.js against integ.all-service-addons.expected.json ... CHANGED.

Comment thread packages/@aws-cdk/aws-appmesh/README.md Resolved
@Seiya6329

Copy link
Copy Markdown
Contributor

Thanks @wplucinsky and @skinny85! These are looking great!

@wplucinsky
wplucinsky force-pushed the appmesh-circular-dependency branch from 175140d to 98c481c Compare January 5, 2022 22:54
@mergify
mergify Bot dismissed skinny85’s stale review January 5, 2022 22:54

Pull request has been modified.

@Seiya6329

Seiya6329 commented Jan 5, 2022 •

Copy link
Copy Markdown
Contributor

@wplucinsky - This is the friendly reminder that the build is failing for the @aws-cdk-containers/ecs-service-extensions failure.

I am guessing you will need to make some changes on this file: https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk-containers/ecs-service-extensions/lib/extensions/appmesh.ts

Above was totally wrong assumption. Sorry for adding the confusion.

@wplucinsky
wplucinsky force-pushed the appmesh-circular-dependency branch from 98c481c to a54c39a Compare January 6, 2022 16:01
@Seiya6329
Seiya6329 requested a review from skinny85 January 6, 2022 17:52
@skinny85 skinny85 changed the title fix(appmesh): fix circular dependency by removing virtual service name reference fix(appmesh): allow a Virtual Node have as a backend a Virtual Service whose provider is that Node Jan 6, 2022

@skinny85 skinny85 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks perfect, thanks @wplucinsky!

@mergify

mergify Bot commented Jan 6, 2022

Copy link
Copy Markdown
Contributor

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation

Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: cc0fe77
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
mergify Bot merged commit 272b6b1 into aws:master Jan 6, 2022
@mergify

mergify Bot commented Jan 6, 2022

Copy link
Copy Markdown
Contributor

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Feb 21, 2022
…e whose provider is that Node (aws#18265)

Addresses a circular dependency issue between Virtual Nodes and Virtual Services that works for Virtual Services created with a defined `virtualServiceName` and a randomly generated name. 

One such example of this problem was a case where a Virtual Node had a backend that is a Virtual Service whose provider was given as the same Virtual Node. This led to the Virtual Node being dependent on the creation of the Virtual Service, and the Virtual Service being dependent on the creation of the Virtual Node.

Fixes aws#17322

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
ali-n4i pushed a commit to ali-n4i/aws-cdk that referenced this pull request Jul 29, 2026
…e whose provider is that Node (aws#18265)

Addresses a circular dependency issue between Virtual Nodes and Virtual Services that works for Virtual Services created with a defined `virtualServiceName` and a randomly generated name. 

One such example of this problem was a case where a Virtual Node had a backend that is a Virtual Service whose provider was given as the same Virtual Node. This led to the Virtual Node being dependent on the creation of the Virtual Service, and the Virtual Service being dependent on the creation of the Virtual Node.

Fixes aws#17322

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

@aws-cdk/aws-appmesh Related to AWS App Mesh

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(AppMesh): How to create two virtual service/node with bidirectional backend without circular dependencies

4 participants