Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: changelog
permissions: write-all
on:
push:
tags:
- "*"
# push:
# tags:
# - "*"
workflow_dispatch:
jobs:
changelog:
Expand Down
3 changes: 0 additions & 3 deletions examples/complete/README.md

This file was deleted.

73 changes: 37 additions & 36 deletions examples/complete/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,56 +90,57 @@ module "mq_broker" {
source = "../.." # Reference the path of the root module where the MQ broker is defined

# Pass in the values to configure the MQ broker
aws_region = var.aws_region
mq_broker_name = var.mq_broker_name
engine_type = var.engine_type
engine_version = var.engine_version
host_instance_type = var.host_instance_type
broker_name = var.broker_name
# aws_region = var.aws_region
broker_name = var.mq_broker_name
engine_type = var.engine_type
engine_version = var.engine_version
host_instance_type = var.host_instance_type
# broker_name = var.broker_name
deployment_mode = var.deployment_mode
maintenance_day_of_week = var.maintenance_day_of_week
maintenance_time = var.maintenance_time
maintenance_time_of_day = var.maintenance_time_of_day
maintenance_time_zone = var.maintenance_time_zone
tags = var.tags

# Pass in the VPC and Subnet created by the VPC and Subnet modules
vpc_id = module.vpc.vpc_id # Pass VPC ID
subnet_ids = [module.public_subnet.public_subnet_id[0]] # Pass subnet IDs
security_group_id = [module.security_group.security_group_id]
vpc_id = module.vpc.vpc_id # Pass VPC ID
subnet_ids = [module.public_subnet.public_subnet_id[0]] # Pass subnet IDs
security_group_id = [module.security_group.security_group_id]

# MQ broker-specific settings
apply_immediately = var.apply_immediately
auto_minor_version_upgrade = var.auto_minor_version_upgrade
publicly_accessible = var.publicly_accessible
general_log_enabled = var.general_log_enabled
audit_log_enabled = var.audit_log_enabled
kms_mq_key_arn = var.kms_mq_key_arn
use_aws_owned_key = var.use_aws_owned_key
ssm_path = var.ssm_path
encryption_enabled = var.encryption_enabled
kms_ssm_key_arn = var.kms_ssm_key_arn
allowed_ingress_ports = var.allowed_ingress_ports
apply_immediately = var.apply_immediately
auto_minor_version_upgrade = var.auto_minor_version_upgrade
publicly_accessible = var.publicly_accessible
general_log_enabled = var.general_log_enabled
audit_log_enabled = var.audit_log_enabled
kms_mq_key_arn = var.kms_mq_key_arn
use_aws_owned_key = var.use_aws_owned_key
ssm_path = var.ssm_path
encryption_enabled = var.encryption_enabled
kms_ssm_key_arn = var.kms_ssm_key_arn
allowed_ingress_ports = var.allowed_ingress_ports
additional_security_group_ids = var.additional_security_group_ids

# Admin and Application user credentials
mq_admin_user = var.mq_admin_user
mq_admin_password = var.mq_admin_password
mq_application_user = var.mq_application_username
mq_application_password = var.mq_application_password
alias = format(
"alias/%s",
replace(var.alias, "[^a-zA-Z0-9_-]", "_")
)
mq_admin_user = var.mq_admin_user
mq_admin_password = var.mq_admin_password
# mq_application_user = var.mq_application_username
# mq_application_password = var.mq_application_password
# # alias = format(
# "alias/%s",
# replace(var.alias, "[^a-zA-Z0-9_-]", "_")
# )

# CloudWatch Log Settings
enable_cloudwatch_logs = var.enable_cloudwatch_logs
cloudwatch_log_group_name = var.cloudwatch_log_group_name
cloudwatch_log_retention_days = var.cloudwatch_log_retention_days
# enable_cloudwatch_logs = var.enable_cloudwatch_logs
# cloudwatch_log_group_name = var.cloudwatch_log_group_name
# cloudwatch_log_retention_days = var.cloudwatch_log_retention_days

# Secrets Manager settings (if enabled)
use_secrets_manager = var.use_secrets_manager
secret_manager_key_prefix = var.secret_manager_key_prefix
# # Secrets Manager settings (if enabled)
# use_secrets_manager = var.use_secrets_manager
# secret_manager_key_prefix = var.secret_manager_key_prefix
# }
}

output "security_group_id" {
value = module.security_group.security_group_id
description = "The Security Group ID"
Expand Down
14 changes: 0 additions & 14 deletions examples/complete/output.tf

This file was deleted.

109 changes: 109 additions & 0 deletions examples/complete/outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# output "public_subnet_cidrs" {
# value = module.subnets.public_subnet_cidrs
# description = "Public subnet CIDR blocks"
# }

# output "private_subnet_cidrs" {
# value = module.subnets.private_subnet_cidrs
# description = "Private subnet CIDR blocks"
# }

# output "vpc_cidr" {
# value = module.vpc.vpc_cidr_block
# description = "VPC CIDR"
# }

# output "broker_id" {
# value = module.mq_broker.broker_id
# description = "AmazonMQ broker ID"
# }

# output "broker_arn" {
# value = module.mq_broker.broker_arn
# description = "AmazonMQ broker ARN"
# }

# output "primary_console_url" {
# value = module.mq_broker.primary_console_url
# description = "AmazonMQ active web console URL"
# }

# output "primary_ssl_endpoint" {
# value = module.mq_broker.primary_ssl_endpoint
# description = "AmazonMQ primary SSL endpoint"
# }

# output "primary_amqp_ssl_endpoint" {
# value = module.mq_broker.primary_amqp_ssl_endpoint
# description = "AmazonMQ primary AMQP+SSL endpoint"
# }

# output "primary_stomp_ssl_endpoint" {
# value = module.mq_broker.primary_stomp_ssl_endpoint
# description = "AmazonMQ primary STOMP+SSL endpoint"
# }

# output "primary_mqtt_ssl_endpoint" {
# value = module.mq_broker.primary_mqtt_ssl_endpoint
# description = "AmazonMQ primary MQTT+SSL endpoint"
# }

# output "primary_wss_endpoint" {
# value = module.mq_broker.primary_wss_endpoint
# description = "AmazonMQ primary WSS endpoint"
# }

# output "primary_ip_address" {
# value = module.mq_broker.primary_ip_address
# description = "AmazonMQ primary IP address"
# }

# output "secondary_console_url" {
# value = module.mq_broker.secondary_console_url
# description = "AmazonMQ secondary web console URL"
# }

# output "secondary_ssl_endpoint" {
# value = module.mq_broker.secondary_ssl_endpoint
# description = "AmazonMQ secondary SSL endpoint"
# }

# output "secondary_amqp_ssl_endpoint" {
# value = module.mq_broker.secondary_amqp_ssl_endpoint
# description = "AmazonMQ secondary AMQP+SSL endpoint"
# }

# output "secondary_stomp_ssl_endpoint" {
# value = module.mq_broker.secondary_stomp_ssl_endpoint
# description = "AmazonMQ secondary STOMP+SSL endpoint"
# }

# output "secondary_mqtt_ssl_endpoint" {
# value = module.mq_broker.secondary_mqtt_ssl_endpoint
# description = "AmazonMQ secondary MQTT+SSL endpoint"
# }

# output "secondary_wss_endpoint" {
# value = module.mq_broker.secondary_wss_endpoint
# description = "AmazonMQ secondary WSS endpoint"
# }

# output "secondary_ip_address" {
# value = module.mq_broker.secondary_ip_address
# description = "AmazonMQ secondary IP address"
# }

# output "security_group_id" {
# value = module.mq_broker.security_group_id
# description = "AmazonMQ Security Group ID"
# }

# output "security_group_arn" {
# value = module.mq_broker.security_group_arn
# description = "AmazonMQ Security Group ARN"
# }

# output "security_group_name" {
# value = module.mq_broker.security_group_name
# description = "AmazonMQ Security Group name"
# }
3 changes: 0 additions & 3 deletions examples/complete/variables.auto.tfvars

This file was deleted.

17 changes: 17 additions & 0 deletions examples/complete/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -252,3 +252,20 @@ variable "secret_manager_key_prefix" {
type = string
default = "mq" # Default key prefix for Secrets Manager
}
variable "attributes" {
description = "List of attributes to be used in SSM path"
type = list(string)
default = ["default_value"] # Provide a default value (a non-empty list)
}

variable "maintenance_time_of_day" {
description = "The time of day for the maintenance window (e.g., 02:00)."
type = string
default = "02:00" # Set a default value, or leave it blank if required
}

variable "maintenance_time_zone" {
description = "The time zone for the maintenance window (e.g., UTC, America/New_York)."
type = string
default = "UTC" # Set a default value, or leave it blank if required
}
8 changes: 7 additions & 1 deletion examples/complete/versions.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@

# ------------------------------------------------------------------------------
# Versions
# ------------------------------------------------------------------------------

terraform {
required_version = ">= 1.6.6"

required_providers {

aws = {
source = "hashicorp/aws" #
source = "hashicorp/aws"
version = ">= 5.31.0"
}
}
}

Loading