# Terraform configuration to create an Amazon SQS Standard queue.
# Sending and receiving messages are runtime operations performed by applications,
# not directly by Terraform.

provider "aws" {
  region = "us-east-1"
}

# --- SQS Standard Queue ---
resource "aws_sqs_queue" "standard_queue" {
  name                       = "MyTerraformStandardQueue"
  delay_seconds              = 0
  max_message_size           = 262144 # 256 KB
  message_retention_seconds  = 345600 # 4 days
  receive_wait_time_seconds  = 0
  visibility_timeout_seconds = 30

  tags = {
    Name        = "MyTerraformStandardQueue"
    Environment = "Dev"
  }
}

# --- Outputs ---
output "sqs_queue_url" {
  value       = aws_sqs_queue.standard_queue.id
  description = "The URL of the SQS queue."
}

output "sqs_queue_arn" {
  value       = aws_sqs_queue.standard_queue.arn
  description = "The ARN of the SQS queue."
}
