1
0
Fork 0
terraform-training/08_templating/base.tf

13 lines
230 B
Terraform
Raw Normal View History

2020-05-13 15:08:20 +02:00
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
}