Terraform - IAM - 기본 구성
This commit is contained in:
44
terraform/iam/users/variables.tf
Normal file
44
terraform/iam/users/variables.tf
Normal file
@@ -0,0 +1,44 @@
|
||||
variable "aws_region" {
|
||||
default = "ap-northeast-2"
|
||||
}
|
||||
|
||||
variable "iam_users" {
|
||||
type = map(object({
|
||||
policies = list(string)
|
||||
}))
|
||||
default = {
|
||||
dsk-devops = {
|
||||
policies = [
|
||||
"arn:aws:iam::aws:policy/AmazonS3FullAccess",
|
||||
"arn:aws:iam::aws:policy/AmazonEC2FullAccess"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# variable "iam_users" {
|
||||
# type = map(object({
|
||||
# policies = list(string)
|
||||
# }))
|
||||
# default = {
|
||||
# dsk-devops = {
|
||||
# policies = [
|
||||
# "arn:aws:iam::aws:policy/AmazonS3FullAccess",
|
||||
# "arn:aws:iam::aws:policy/AmazonEC2ReadOnlyAccess"
|
||||
# ]
|
||||
# },
|
||||
# dsk-developer = {
|
||||
# policies = ["arn:aws:iam::aws:policy/AmazonEC2ReadOnlyAccess"]
|
||||
# },
|
||||
# dsk-readonly = {
|
||||
# policies = [
|
||||
# "arn:aws:iam::aws:policy/AmazonEC2ReadOnlyAccess"
|
||||
# ]
|
||||
# },
|
||||
# dsk-s3-uploader = {
|
||||
# policies = [
|
||||
# "arn:aws:iam::aws:policy/AmazonS3FullAccess"
|
||||
# ]
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
Reference in New Issue
Block a user