From dd64c5c5f8d2cef2623858d26c603d0fe6992031 Mon Sep 17 00:00:00 2001 From: theprashantyadav Date: Wed, 14 Jun 2023 14:21:07 +0530 Subject: [PATCH] feat: added policy data description --- main.tf | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/main.tf b/main.tf index cd63995..46dc199 100644 --- a/main.tf +++ b/main.tf @@ -1,7 +1,3 @@ -provider "aws" { - alias = "primary" - region = "us-east-1" -} ##---------------------------------------------------------------------------------- ## Labels module callled that will be used for naming and tags. ##---------------------------------------------------------------------------------- @@ -15,7 +11,6 @@ module "labels" { label_order = var.label_order } - data "aws_caller_identity" "current" {} data "aws_partition" "current" {} @@ -64,7 +59,9 @@ resource "aws_kms_alias" "default" { target_key_id = join("", aws_kms_key.default.*.id) } - +##---------------------------------------------------------------------------------- +## Data block called to get Permissions that will be used in creating policy. +##---------------------------------------------------------------------------------- data "aws_iam_policy_document" "default" { version = "2012-10-17" statement {