0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

サーバーレス VPC アクセスのコネクタ作成時にINVALID_ARGUMENTエラーが出た際の対処法

Posted at

サーバレスvpcアクセスのコネクタを作ろうとしたら INVALID_ARGUMENT のエラーが出た

CONNECTOR_NAME="test1-hogehoge-hogehoge-hogehoge"
VPC_NETWORK="default"
REGION="asia-northeast1"
IP_RANGE="10.125.0.0/28"

gcloud compute networks vpc-access connectors create ${CONNECTOR_NAME} --region=${REGION} --network=${VPC_NETWORK} --range=${IP_RANGE}

ERROR: (gcloud.compute.networks.vpc-access.connectors.create) INVALID_ARGUMENT: Request contains an invalid argument.

色々原因を探った結果、コネクタ名の上限は25byteぽく、コネクタ名が長すぎたのが原因だった

ちなみにIP_RANGEに /28 をつけ忘れても同じエラーが出た

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?