Add module related to Route53

This commit is contained in:
2023-01-08 00:38:48 +09:00
parent 9a60aa0f34
commit b325a26985
17 changed files with 42 additions and 47 deletions

30
test/main.tf Normal file
View File

@ -0,0 +1,30 @@
provider "aws" {
region = "ap-northeast-2"
}
resource "aws_iam_role" "iam-role" {
name = "eks-cluster-test"
# Terraform's "jsonencode" function converts a
# Terraform expression result to valid JSON syntax.
assume_role_policy = jsonencode({
"Version" : "2012-10-17",
"Statement" : [
{
"Effect" : "Allow",
"Principal" : {
"Service" : [
"eks.amazonaws.com"
]
},
"Action" : "sts:AssumeRole"
}
]
})
tags = {
tag-key = "eks-cluster-rule"
}
}