1
0
Fork 0
terraform-training/08_templating/base.tf
2020-05-14 10:34:38 +02:00

12 lines
230 B
HCL

provider "aws" {
region = "eu-west-2"
}
data "template_file" "template1" {
template = file("./policy.json")
}
resource "aws_iam_policy" "policy" {
name = "cedric-policy1"
policy = data.template_file.template1.rendered
}