Skip to content

fix(apigatewayv2): ApiMapping does not depend on DomainName#16201

Merged
mergify[bot] merged 3 commits intomasterfrom
nija-at/apigwv2-apimapping-dep
Sep 9, 2021
Merged

fix(apigatewayv2): ApiMapping does not depend on DomainName#16201
mergify[bot] merged 3 commits intomasterfrom
nija-at/apigwv2-apimapping-dep

Conversation

@nija-at
Copy link
Copy Markdown
Contributor

@nija-at nija-at commented Aug 24, 2021

When an ApiMapping resource is deployed using the Domain defined in the
DomainName resource, the DomainName resource must be deployed before the
ApiMapping resource.

Since the current logic uses the CloudFormation Output of DomainName as
a fall back, preferring the user provided string first, this dependency
is not expressed in the resulting template.

Remove the preference for the user provided string, will inform
synthesis that the dependency must be declared.

fixes #15464


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

When an ApiMapping resource is deployed using the Domain defined in the
DomainName resource, the DomainName resource must be deployed before the
ApiMapping resource.

Since the current logic uses the CloudFormation Output of DomainName as
a fall back, preferring the user provided string first, this dependency
is not expressed in the resulting template.

Remove the preference for the user provided string, will inform
synthesis that the dependency must be declared.

fixes #15464
@nija-at nija-at self-assigned this Aug 24, 2021
@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Aug 24, 2021

@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Aug 24, 2021
@nija-at nija-at requested a review from a team September 9, 2021 08:39
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Sep 9, 2021

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: 9dcbf1a
  • 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 1e247d8 into master Sep 9, 2021
@mergify mergify bot deleted the nija-at/apigwv2-apimapping-dep branch September 9, 2021 09:33
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Sep 9, 2021

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribution/core This is a PR that came from AWS.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(apigatewayv2): ApiMapping does not add a dependency on DomainName

3 participants