Skip to content

dxh031/terraform-alicloud-mns-topic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alicloud MNS Queue Terraform Module
terraform-alicloud-mns-topic

This Terraform module will create a topic and a subcription.

These types of resources are supported:


Usage

You can use this in your terraform template with the following steps.

  1. Adding a module resource to your template, e.g. main.tf
module "mns-topic" {
  source = "terraform-alicloud-modules/mns-topic/alicloud"

  #variables for  topic
  topic_name                        = "tf-example-mnstopic"
  maximum_message_size              =65536
  logging_enabled                   =true

  #variables for  subscription
  subscription_name                 ="tf-example-mnstopic-subscription"
  endpoint                          ="http://localhost:7001/notifyback.htm"
  filter_tag                        ="Test"
  notify_strategy                   ="BACKOFF_RETRY"
  notify_content_format             ="XML" 
}
  1. Setting access_key and secret_key values through environment variables:

    • ALICLOUD_ACCESS_KEY
    • ALICLOUD_SECRET_KEY
    • ALICLOUD_REGION

Inputs

Name Description Type Default Required
topic_name The name of topic. string "" yes
maximum_message_size This indicates the maximum length, in bytes, of any message body sent to the topic. int 65536 no
loggin_enabled is log enabled bool false no
subscription_name The name of queue. string "" yes
endpoint Describe the terminal address of the message received in this subscription. string no yes
notify_strategy The NotifyStrategy attribute of Subscription. string "BACKOFF_RETRY" no
notify_content_format The NotifyContentFormat attribute of Subscription. string "XML" no
filter_tag Describe the terminal address of the message received in this subscription. string "" no

Outputs

Name Description
this_topic_name the name of topic created
this_subscription_name the name of subscription created

Authors

Created and maintained by Xiaohui Duan(@XiaoHuiDuan, [email protected])

Reference

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 100.0%