Commit 87d74ff7 authored by Jose Ernesto Suarez's avatar Jose Ernesto Suarez

Adding descriptions to the variables

parent e62303d7
...@@ -4,21 +4,21 @@ variable "account_id" { ...@@ -4,21 +4,21 @@ variable "account_id" {
} }
variable "assume_role"{ variable "assume_role"{
description = "" description = "The name of the role used in your multi-account governance policy. By default AWSControlTowerExecution compatible with AWS Control Tower environments with or without AFT"
type = string type = string
default ="AWSControlTowerExecution" default ="AWSControlTowerExecution"
} }
variable "environment"{ variable "environment"{
description = "" description = "Environment for this deployment, the bucket and some random tags and strings will have it attached"
type = string type = string
default = "dev" default = "dev"
} }
variable "domain"{ variable "domain"{
description = "" description = "FQDN for deploying this site"
type = string type = string
} }
variable "zone_id"{ variable "zone_id"{
description = "" description = "Zone ID for the ROUTE53 hosting the domain zone. This route 53 lives in the same account than the ACM and the CDN"
type = string type = string
} }
\ No newline at end of file
...@@ -7,7 +7,7 @@ output "distribution_arn" { ...@@ -7,7 +7,7 @@ output "distribution_arn" {
} }
output "cloudfront_origin_access_identity_iam_arns"{ output "cloudfront_origin_access_identity_iam_arns"{
description = " The IAM arns of the origin access identities created" description = "The IAM arns of the origin access identities created"
value = module.cdn.cloudfront_origin_access_identity_iam_arns value = module.cdn.cloudfront_origin_access_identity_iam_arns
} }
output "cloudfront_origin_access_identity_ids"{ output "cloudfront_origin_access_identity_ids"{
......
...@@ -4,27 +4,27 @@ variable "account_id" { ...@@ -4,27 +4,27 @@ variable "account_id" {
} }
variable "assume_role"{ variable "assume_role"{
description = "" description = "The name of the role used in your multi-account governance policy. By default AWSControlTowerExecution compatible with AWS Control Tower environments with or without AFT"
type = string type = string
default ="AWSControlTowerExecution" default ="AWSControlTowerExecution"
} }
variable "environment"{ variable "environment"{
description = "" description = "Environment for this deployment, the bucket and some random tags and strings will have it attached"
type = string type = string
default = "dev" default = "dev"
} }
variable "domain"{ variable "domain"{
description = "" description = "FQDN for deploying this site"
type = string type = string
} }
variable "bucket"{ variable "bucket"{
description = "" description = "Bucket name"
type = string type = string
} }
variable "acm_certificate_arn" { variable "acm_certificate_arn" {
description = "" description = "ACM certificate ARN for this domain"
type = string type = string
} }
\ No newline at end of file
...@@ -4,13 +4,13 @@ variable "account_id" { ...@@ -4,13 +4,13 @@ variable "account_id" {
} }
variable "environment"{ variable "environment"{
description = "" description = "Environment for this deployment, the bucket and some random tags and strings will have it attached"
type = string type = string
default = "dev" default = "dev"
} }
variable "region" { variable "region" {
type = string type = string
description = "region" description = "Region for the S3 related stuff. The CDN will be deployed on North Virginia"
} }
variable "zone_id" { variable "zone_id" {
type = string type = string
...@@ -32,6 +32,5 @@ variable "domain" { ...@@ -32,6 +32,5 @@ variable "domain" {
variable "assume_role" { variable "assume_role" {
type = string type = string
description = "" description = "The name of the role used in your multi-account governance policy. By default AWSControlTowerExecution compatible with AWS Control Tower environments with or without AFT"
}
variable "force_destroy" { variable "force_destroy" {
description = "" description = "Destroy protection for the s3 bucket. Put it to true in case you want to destroy the content of the bucket when this resource is deleted"
type = bool type = bool
default = false default = false
} }
variable "s3_bucket_id"{ variable "s3_bucket_id"{
description = "" description = "S3 Bucket ID"
type = string type = string
} }
...@@ -20,7 +20,7 @@ variable "identity_arn" { ...@@ -20,7 +20,7 @@ variable "identity_arn" {
} }
variable "region" { variable "region" {
type = string type = string
description = "(optional) describe your variable" description = "Region for the S3 related stuff. The CDN will be deployed on North Virginia"
} }
variable "account_id" { variable "account_id" {
...@@ -31,11 +31,11 @@ variable "account_id" { ...@@ -31,11 +31,11 @@ variable "account_id" {
variable "assume_role" { variable "assume_role" {
type = string type = string
description = "" description = "The name of the role used in your multi-account governance policy. By default AWSControlTowerExecution compatible with AWS Control Tower environments with or without AFT"
} }
variable "environment" { variable "environment" {
type = string type = string
description = "" description = "Environment for this deployment, the bucket and some random tags and strings will have it attached"
} }
\ No newline at end of file
variable "force_destroy" { variable "force_destroy" {
description = "" description = "Destroy protection for the s3 bucket. Put it to true in case you want to destroy the content of the bucket when this resource is deleted"
type = bool type = bool
default = false default = false
} }
variable "environment"{ variable "environment"{
description = "" description = "Environment for this deployment, the bucket and some random tags and strings will have it attached"
type = string type = string
default = "dev" default = "dev"
} }
variable "region" { variable "region" {
type = string type = string
description = "(optional) describe your variable" description = "Region for the S3 related stuff. The CDN will be deployed on North Virginia"
} }
variable "account_id" { variable "account_id" {
...@@ -27,5 +27,4 @@ variable "project_name" { ...@@ -27,5 +27,4 @@ variable "project_name" {
variable "assume_role" { variable "assume_role" {
type = string type = string
description = "" description = "The name of the role used in your multi-account governance policy. By default AWSControlTowerExecution compatible with AWS Control Tower environments with or without AFT"
} \ No newline at end of file
\ No newline at end of file
output "cdn_account_id" { output "cdn_account_id" {
value = local.settings.cdn_account_id value = local.settings.cdn_account_id
description = "Setting value" description = "Account where the CDN must be created"
} }
output "s3_account_id" { output "s3_account_id" {
value = local.settings.s3_account_id value = local.settings.s3_account_id
description = "Setting value" description = "Account where the S3 bucket must be created"
} }
output "project_name" { output "project_name" {
value = local.settings.project_name value = local.settings.project_name
description = "Setting value" description = "Name of the project to generate some random strings related to it"
} }
output "region" { output "region" {
value = local.settings.region value = local.settings.region
description = "Setting value" description = "Region for the S3 related stuff. The CDN will be deployed on North Virginia"
} }
output "environment" { output "environment" {
value = local.settings.environment value = local.settings.environment
description = "Setting value" description = "Environment for this deployment, the bucket and some random tags and strings will have it attached"
} }
output "domain" { output "domain" {
value = local.settings.domain value = local.settings.domain
description = "Setting value" description = "FQDN for deploying this site"
} }
output "zone_id" { output "zone_id" {
value = local.settings.zone_id value = local.settings.zone_id
description = "Setting value" description = "Zone ID for the ROUTE53 hosting the domain zone. This route 53 lives in the same account than the ACM and the CDN"
} }
output "s3_force_destroy" { output "s3_force_destroy" {
value = local.settings.s3_force_destroy value = local.settings.s3_force_destroy
description = "Setting value" description = "Destroy protection for the s3 bucket. Put it to true in case you want to destroy the content of the bucket when this resource is deleted"
} }
output "assume_role" { output "assume_role" {
value = local.settings.assume_role value = local.settings.assume_role
description = "Setting value" description = "The name of the role used in your multi-account governance policy. By default AWSControlTowerExecution compatible with AWS Control Tower environments with or without AFT"
} }
output "cloudfront_origin_access_identity_iam_arns"{ output "cloudfront_origin_access_identity_iam_arns"{
description = " The IAM arns of the origin access identities created" description = "The IAM arns of the origin access identities created"
value = module.distribution.cloudfront_origin_access_identity_iam_arns value = module.distribution.cloudfront_origin_access_identity_iam_arns
} }
output "cloudfront_origin_access_identity_ids"{ output "cloudfront_origin_access_identity_ids"{
...@@ -43,18 +43,18 @@ output "cloudfront_origin_access_identity_ids"{ ...@@ -43,18 +43,18 @@ output "cloudfront_origin_access_identity_ids"{
value = module.distribution.cloudfront_origin_access_identity_ids value = module.distribution.cloudfront_origin_access_identity_ids
} }
output "cdn_endpoint" { output "cdn_endpoint" {
description = "" description = "Endpoint generated by the CDN"
value = module.distribution.cdn_endpoint value = module.distribution.cdn_endpoint
} }
output "s3_bucket_bucket_domain_name" { output "s3_bucket_bucket_domain_name" {
description = "" description = "DNS for generated S3 Bucket"
value = module.storage.s3_bucket_bucket_domain_name value = module.storage.s3_bucket_bucket_domain_name
} }
output "acm_certificate_arn" { output "acm_certificate_arn" {
description = "" description = "ACM certificate ARN for this domain"
value = module.certificate.acm_certificate_arn value = module.certificate.acm_certificate_arn
} }
output "s3_bucket_id" { output "s3_bucket_id" {
description = "" description = "ID for generated S3 Bucket"
value = module.storage.s3_bucket_id value = module.storage.s3_bucket_id
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment