Skip to content

Commit

Permalink
adding the first release
Browse files Browse the repository at this point in the history
  • Loading branch information
Matheus Palu committed Dec 30, 2021
0 parents commit e8f5c8b
Show file tree
Hide file tree
Showing 8 changed files with 1,015 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Local .terraform directories
**/.terraform/*

# .tfstate files
*.tfstate
*.tfstate.*

# Crash log files
crash.log
crash.*.log

# Exclude all .tfvars files, which are likely to contain sentitive data, such as
# password, private keys, and other secrets. These should not be part of version
# control as they are data points which are potentially sensitive and subject
# to change depending on the environment.
#
*.tfvars

# Ignore override files as they are usually used to override resources locally and so
# are not checked in
override.tf
override.tf.json
*_override.tf
*_override.tf.json

# Include override files you do wish to add to version control using negated pattern
#
# !example_override.tf

# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
# example: *tfplan*

# Ignore CLI configuration files
.terraformrc
terraform.rc

# Ignore lock file
.terraform.lock.hcl

.DS_Store
139 changes: 139 additions & 0 deletions README.md

Large diffs are not rendered by default.

59 changes: 59 additions & 0 deletions examples/instances.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
module "cloudamqp_instance_name_of_my_instance" {
source = "mpalu/instance/cloudamqp"
version = "0.0.1"

cloudamqp_customer_api_key = var.cloudamqp_customer_api_key
instance_name = "name-of-my-instance"
instance_plan = "squirrel-1"
instance_tags = [
"environment: production",
"team_name: team-name",
"contact: my-mail@my-domain.com"
]
notification_recipients = [
{
type = "webhook"
value = "https://127.0.0.1/webhook-endpoint"
name = "pagerduty"
},
{
type = "slack"
value = "https://127.0.0.1/slack-endpoint"
name = "#my-channel"
}
]
plugin_activaction = [
{
name = "rabbitmq_top"
enabled = true
},
{
name = "rabbitmq_amqp1_0"
enabled = false
},
]
plugin_community_activaction = [
{
name = "rabbitmq_delayed_message_exchange"
enabled = true
},
{
name = "rabbitmq_amqp1_0"
enabled = false
},
]
firewall_rules = {
rule = {
description = "allow ec2 vpc"
ip = "192.168.0.0/24"
ports = [4567, 4568]
services = ["AMQP", "AMQPS", "HTTPS"]
}
rule2 = {
description = "allow eks vpc"
ip = "10.56.72.0/24"
ports = []
services = ["AMQP", "AMQPS"]
}
}
}
8 changes: 8 additions & 0 deletions examples/terraform.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
terraform {
backend "s3" {
bucket = "bucket-name"
key = "cloudamqp/us-east-2/terraform.tfstate"
region = "sa-east-1"
}
}

1 change: 1 addition & 0 deletions examples/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
variable "cloudamqp_customer_api_key" {}
Loading

0 comments on commit e8f5c8b

Please sign in to comment.