プロジェクト

全般

プロフィール

開発実装 #65

Lunatic1998 さんが8ヶ月前に更新

### 概要 

 - VPC(network配下)モジュールのパラメータを以下の通りに追加する。 
   - 他モジュールもmain.tfで設定可能であるため、VPCモジュールも同様の設定にする。 

 ``` 
 module "network" { 
   source                          = "./network" 
 +    region                          = var.region 
 +    vpc_network                     = "192.168.0.0/16" 
 +    public_subnet                   = "192.168.1.0/24" 
 +    public_subnet_dummy             = "192.168.3.0/24" 
 +    private_subnet                  = "192.168.2.0/24" 
   vpc_endpoints_interface         = ["ecr.dkr", "ecr.api"] 
   vpc_endpoints_security_groups = module.firewall.aws_vpc_endpoint_ec2.id 
   tags                            = var.project 
 } 
 ``` 

 - regionを変数化させる 

 ``` 
 variable "region" { 
   type      = string 
   default = "ap-northeast-1a" 
 } 
 ``` 

 - ドキュメント整備

戻る