Hamed Minaee
Hamed Minaee

Reputation: 2560

Updating api gateway to vpc link through cli

I have a api gateway set up as follows:

enter image description here

Now I need to update the above set up to to vpc link and the same url so at the end I want to convert it to:

enter image description here

As you see I can do it through console.Can I do the above through cli as well?

I found the following I cannot get a working example.

https://docs.aws.amazon.com/cli/latest/reference/apigateway/update-method.html

https://docs.aws.amazon.com/cli/latest/reference/apigateway/update-rest-api.html

Can anyone help? is it supported at all?

Upvotes: 2

Views: 851

Answers (2)

Navid Taheri
Navid Taheri

Reputation: 3

I had the same problem and I managed to solve it by upgrading to the latest aws cli:

pip install awscli --upgrade --user

Afterwards, restart your terminal to make sure you load your latest cli

Upvotes: 0

Vishal
Vishal

Reputation: 706

Its is supported. You are looking for update-integration command https://docs.aws.amazon.com/cli/latest/reference/apigateway/update-integration.html

with connectionType is VPC_LINK

Upvotes: 1

Related Questions