private public add
This commit is contained in:
10
pord_hq-ecr/.terraform.lock.hcl
generated
Normal file
10
pord_hq-ecr/.terraform.lock.hcl
generated
Normal file
@ -0,0 +1,10 @@
|
||||
# This file is maintained automatically by "terraform init".
|
||||
# Manual edits may be lost in future updates.
|
||||
|
||||
provider "registry.terraform.io/hashicorp/aws" {
|
||||
version = "4.49.0"
|
||||
constraints = "~> 4.0"
|
||||
hashes = [
|
||||
"h1:HxPUxrHpAJey832OwVk3J2T7lHpRzMavqjXDzaFyM6I=",
|
||||
]
|
||||
}
|
@ -29,11 +29,6 @@ locals {
|
||||
tcp_protocol = "tcp"
|
||||
icmp_protocol = "icmp"
|
||||
all_ips = ["0.0.0.0/0"]
|
||||
|
||||
iam_name = {
|
||||
cloud9 = "cloud9"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// GET 계정정보
|
||||
@ -57,45 +52,4 @@ module "ecr" {
|
||||
|
||||
names_list = ["app"]
|
||||
//names_list = ["web", "nginx", "mariadb"]
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
// colud9 생성 및 추가
|
||||
module "cloud9_iam" {
|
||||
source = "../modules/iam"
|
||||
iam_name = local.iam_name.cloud9
|
||||
policy = data.aws_iam_policy_document.cloud9_role.json
|
||||
tag_name = local.common_tags.project
|
||||
}
|
||||
module "cloud9_iam_att_admin_access" {
|
||||
source = "../modules/iam-policy-attach"
|
||||
iam_name = local.iam_name.cloud9
|
||||
role_name = module.cloud9_iam.iam_name
|
||||
arn = "arn:aws:iam::aws:policy/AdministratorAccess"
|
||||
|
||||
depends_on = [
|
||||
module.cloud9_iam
|
||||
]
|
||||
}
|
||||
|
||||
// cloud9
|
||||
module "cloud9_ec2" {
|
||||
source = "../modules/cloud9-ec2"
|
||||
name = local.common_tags.project
|
||||
instance_type = "t2.micro"
|
||||
|
||||
}
|
||||
module "cloud9_ec2_env" {
|
||||
source = "../modules/cloud9-ec2-env"
|
||||
cloud9_id = module.cloud9_ec2.cloud9_id
|
||||
permissions = "read-only"
|
||||
user_arn = module.cloud9_iam.iam_arn
|
||||
|
||||
depends_on = [
|
||||
module.cloud9_iam,
|
||||
module.cloud9_ec2
|
||||
]
|
||||
}
|
||||
*/
|
||||
}
|
Reference in New Issue
Block a user