Skip to content

Commit

Permalink
adding examples
Browse files Browse the repository at this point in the history
  • Loading branch information
saikrishnama committed Apr 11, 2024
1 parent 2b93f10 commit 3fee112
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 0 deletions.
20 changes: 20 additions & 0 deletions examples/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# module "required_tags" {
# source = "github.com/saikrishnama/terraform-resource-tags.git"
# environment = var.environment
# cost_center_id = var.cost_center_id
# app_team_name = var.app_team_name
# application_name = var.application_name
# application_portfolio = var.application_portfolio
# email_id = var.email_id
# tags = var.tags
# }
module "kms" {
source = "../"
description = "sample-kmskey"
kms_key_usage = "ENCRYPT_DECRYPT"
customer_master_key_spec = "SYMMETRIC_DEFAULT"
# deletion_window_in_days = 7
multi_region = false
# required_tags = module.required_tags

}
Empty file added examples/outputs.tf
Empty file.
8 changes: 8 additions & 0 deletions examples/provider.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# terraform {
# required_providers {
# aws = {
# source = "hashicorp/aws"
# version = "~> 5.0"
# }
# }
# }
10 changes: 10 additions & 0 deletions examples/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
environment = "Dev"
application_name = "SAMPLE-APP"
application_portfolio = "DEMO-APP"
cost_center_id = "123456"
app_team_name = " DEMP_APP"
email_id = "[email protected]"
tags = {
"Exception_resource" = "Demo"
"data_class" = "sensitive"
}
19 changes: 19 additions & 0 deletions examples/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
variable "environment" {
}
variable "application_name" {

}
variable "cost_center_id" {

}
variable "application_portfolio" {
}
variable "app_team_name" {

}
variable "email_id" {

}
variable "tags" {

}
3 changes: 3 additions & 0 deletions examples/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# terraform {
# required_version = ">= 1.3.2"
# }

0 comments on commit 3fee112

Please sign in to comment.