2
0

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 5 years have passed since last update.

VPC の CIDR を変更する

2
Last updated at Posted at 2020-08-14

IPv4 CIDR ブロックが一致または重複する VPC 間で VPC ピアリング接続を作成することはできません。

VPCPeering のために VPC の CIDR の変更をしたいが、既に VPC に紐付いているリソースが作成されていたため編集できない。
以下のリソースを削除することで解決。

  • ServiceDiscovery
  • EC2
  • ALB
  • SecurityGroup
  • InternetGateway

Memo

Terraform でリソースを削除する場合に以下の設定を false にして削除できるようにする。

aws_instance

  • disable_api_termination

ALB

その他

  • lifecycle.prevent_destroy
2
0
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
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?