Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
아래와 같은 구조의 vpc를 만드는 코드를 작성 하였습니다.
vpc - subnet
pub_sub_a : 10.1.0.0/26
pub_sub_c : 10.1.0.64/26
pri_sub_app_a : 10.1.0.128/26
pri_sub_app_c : 10.1.0.160/26
pri_sub_db_a : 10.1.0.192/26
pri_sub_db_c : 10.1.0.224/26
igw, nat 생성
주의사항 : terraform destroy로 삭제 시 vpc가 삭제되지 않는 버그가 있는걸로 보입니다.
https://stackoverflow.com/questions/69497562/terraform-destroy-not-deleting-the-aws-vpc
손으로 삭제하면 바로 되고, 굳이 삭제 안되도 또 써도 되며, 비용도 안나가니까 문제될 건 없습니다.