-
Notifications
You must be signed in to change notification settings - Fork 15
/
README.yaml
95 lines (85 loc) · 2.8 KB
/
README.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
#
# This is the canonical configuration for the `README.md`
# Run `make readme` to rebuild the `README.md`
#
# Name of this project
name : Terraform AWS SQS
# License of this project
license: "APACHE"
# Canonical GitHub repo
github_repo: clouddrove/terraform-aws-sqs
# Badges to display
badges:
- name: "Latest Release"
image: "https://img.shields.io/github/release/clouddrove/terraform-aws-sqs.svg"
url: "https://github.com/clouddrove/terraform-aws-sqs/releases/latest"
- name: "tfsec"
image: "https://github.com/clouddrove/terraform-aws-sqs/actions/workflows/tfsec.yml/badge.svg"
url: "https://github.com/clouddrove/terraform-aws-sqs/actions/workflows/tfsec.yml"
- name: "Licence"
image: "https://img.shields.io/badge/License-APACHE-blue.svg"
url: "LICENSE.md"
- name: "Changelog"
image: "https://img.shields.io/badge/Changelog-blue"
url: "CHANGELOG.md"
prerequesties:
- name: Terraform
url: https://learn.hashicorp.com/terraform/getting-started/install.html
version: ">= 1.6.6"
providers:
- name: aws
url: https://aws.amazon.com/
version: ">= 5.31.0"
module_dependencies:
- name: Labels Module
url: https://github.com/clouddrove/terraform-aws-labels
description: Provides resource tagging.
# description of this project
description: |-
Terraform module to create SQS resource on AWS for managing queue.
# extra content
# please not remove these two If you need add more
# How to use this project
usage : |-
Here are some examples of how you can use this module in your inventory structure:
### FIFO Queue
```hcl
module "sqs" {
source = "clouddrove/sqs/aws"
version = "1.3.0"
name = "sqs-fifo"
environment = "test"
label_order = ["name", "environment"]
fifo_queue = true
content_based_deduplication = true
}
```
### Standard Queue
```hcl
module "sqs" {
source = "clouddrove/sqs/aws"
version = "1.3.0"
name = "sqs"
environment = "test"
label_order = ["name", "environment"]
delay_seconds = 90
max_message_size = 2048
message_retention_seconds = 86400
receive_wait_time_seconds = 10
policy = data.aws_iam_policy_document.document.json
}
data "aws_iam_policy_document" "document" {
version = "2012-10-17"
statement {
sid = "First"
effect = "Allow"
principals {
type = "AWS"
identifiers = ["*"]
}
actions = ["sqs:SendMessage"]
resources = ["arn:aws:sqs:eu-west-1:xxxxxxxxx:test-clouddrove-sqs"]
}
}
```