Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

external API gateway (v1) not triggering new deployment #13134

Closed
ghost opened this issue Feb 18, 2021 · 2 comments
Closed

external API gateway (v1) not triggering new deployment #13134

ghost opened this issue Feb 18, 2021 · 2 comments
Assignees
Labels
@aws-cdk/aws-apigateway Related to Amazon API Gateway bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@ghost
Copy link

ghost commented Feb 18, 2021

Hey guys,

do you know why an external API gateway (V1) is not triggering new deployments automatically when resources/methods/etc. change? Especially/Even when the deploy property is set to true?

https://stackoverflow.com/questions/63950199/how-to-use-an-existing-stage-in-api-gateway-deployments-in-aws-cdk/

I can only work around when creating a new deployment with a unique logical ID:

const restApi = apigateway.RestApi.fromRestApiAttributes(this, "rest-api", {
  restApiId:      cdk.Fn.importValue(apiId),
  rootResourceId: cdk.Fn.importValue(resourceId),
});

// Add new resources and methods here ...
    
const deployment = new apigateway.Deployment(this, `${uuid()}-deployment`, {
  restApi,
});

But this way I cannot destroy the stack anymore, because every time when deploying/destroying a new ID is created ...

Thanks in advance!

Unfortunately, just changing the description property did not work.

const deployment = new apigateway.Deployment(this, `deployment`, {
  api,
  description: uuid(),
});
@ghost ghost added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Feb 18, 2021
@github-actions github-actions bot added the @aws-cdk/aws-apigateway Related to Amazon API Gateway label Feb 18, 2021
@ghost ghost changed the title API gateway not triggering new deployment external API gateway (v1) not triggering new deployment Feb 19, 2021
@nija-at
Copy link
Contributor

nija-at commented Feb 19, 2021

This is currently unsupported. We're tracking this here - #12417

@nija-at nija-at closed this as completed Feb 19, 2021
@github-actions
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-apigateway Related to Amazon API Gateway bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant