Skip to content

Commit 9c9a357

Browse files
Feat/amazon mq:update terraform code,version, module name. (#4)
* Initialize feat/update_terraform_module_template * updated code * updated code * updated code * updated code * update tf version * updated description * update tfchecks * test * updated code * Fix Terraform formatting * updated sg * updated sg * updated sg * updated sg * updated sg * updated sg * updated sg * ran fmt * fix: added public_inbound_acl in public subnet * fix: added private_inbound_acl in public subnet * RUN: terraform fmt * change: rule action in inbound * change: remove acl rules from public subnet * change: change the cidr block in inblound rules * change: make changes in inblound rules * fix: indentation * fix: change the cidr_block in acl rule in public subnet * fix: remove duplicate example directory * feat: updated readme configuration * update: add logic for setup hardcoded secrets in main module * update: add lifecycle to control how resourese created and destroyed and depends on in main module to ensure resources created in right order * remove: remove tf-checks.yml from the github workflow * Feat: updated trigger --------- Co-authored-by: Vishwajit Nagulkar <[email protected]> Co-authored-by: rakeshclouddevops <rakeshgangwar.clouddrove.com>
1 parent 5fbd80d commit 9c9a357

25 files changed

+1355
-137
lines changed

.github/dependabot.yml

+8-17
Original file line numberDiff line numberDiff line change
@@ -12,45 +12,36 @@ updates:
1212
interval: "daily"
1313
open-pull-requests-limit: 3
1414
assignees:
15-
- "clouddrove-ci"
15+
- "clouddrove-ci"
1616
reviewers:
17-
- "approvers"
17+
- "approvers"
1818

19-
- package-ecosystem: "terraform" # See documentation for possible values
20-
directory: "/" # Location of package manifests
19+
- package-ecosystem: "terraform"
20+
directory: "/"
2121
schedule:
2222
interval: "weekly"
23-
# Add assignees
2423
assignees:
2524
- "clouddrove-ci"
26-
# Add reviewer
2725
reviewers:
2826
- "approvers"
29-
# Allow up to 3 open pull requests for pip dependencies
3027
open-pull-requests-limit: 3
3128

32-
- package-ecosystem: "terraform" # See documentation for possible values
33-
directory: "/_example/basic" # Location of package manifests
29+
- package-ecosystem: "terraform"
30+
directory: "/examples/basic"
3431
schedule:
3532
interval: "weekly"
36-
# Add assignees
3733
assignees:
3834
- "clouddrove-ci"
39-
# Add reviewer
4035
reviewers:
4136
- "approvers"
42-
# Allow up to 3 open pull requests for pip dependencies
4337
open-pull-requests-limit: 3
4438

45-
- package-ecosystem: "terraform" # See documentation for possible values
46-
directory: "/_example/complete" # Location of package manifests
39+
- package-ecosystem: "terraform"
40+
directory: "/examples/complete"
4741
schedule:
4842
interval: "weekly"
49-
# Add assignees
5043
assignees:
5144
- "clouddrove-ci"
52-
# Add reviewer
5345
reviewers:
5446
- "approvers"
55-
# Allow up to 3 open pull requests for pip dependencies
5647
open-pull-requests-limit: 3

.github/workflows/readme.yml

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
name: 'Create README.md file'
22
on:
3-
push:
4-
branches:
5-
- master
3+
# push:
4+
# branches:
5+
# - master
6+
# paths-ignore:
7+
# - 'README.md'
8+
workflow_dispatch:
69

710
jobs:
811
readme:
@@ -25,12 +28,11 @@ jobs:
2528
env:
2629
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2730

28-
2931
- name: 'pre-commit check errors'
3032
uses: pre-commit/[email protected]
3133
continue-on-error: true
3234

33-
- name: 'pre-commit fix erros'
35+
- name: 'pre-commit fix errors'
3436
uses: pre-commit/[email protected]
3537
continue-on-error: true
3638

@@ -49,6 +51,6 @@ jobs:
4951
fields: repo,author
5052
author_name: 'CloudDrove'
5153
env:
52-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
53-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }}
5456
if: always()

.github/workflows/terraform.yml

-24
This file was deleted.

.github/workflows/tflint.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: tf-lint
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
workflow_dispatch:
7+
jobs:
8+
tf-lint:
9+
uses: clouddrove/github-shared-workflows/.github/workflows/tf-lint.yml@master
10+
secrets:
11+
GITHUB: ${{ secrets.GITHUB }}

.github/workflows/tfsec.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: tfsec
2+
permissions: write-all
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
jobs:
7+
tfsec:
8+
uses: clouddrove/github-shared-workflows/.github/workflows/tfsec.yml@master
9+
secrets: inherit
10+
with:
11+
working_directory: '.'

README.md

+114-45
Original file line numberDiff line numberDiff line change
@@ -1,122 +1,191 @@
11
<!-- This file was automatically generated by the `geine`. Make all changes to `README.yaml` and run `make readme` to rebuild this file. -->
2-
3-
<p align="center"> <img src="https://user-images.githubusercontent.com/50652676/62349836-882fef80-b51e-11e9-99e3-7b974309c7e3.png" width="100" height="100"></p>
4-
5-
2+
[![Banner](https://github.com/clouddrove/terraform-module-template/assets/119565952/67a8a1af-2eb7-40b7-ae07-c94cde9ce062)][website]
63
<h1 align="center">
7-
Terraform Module Template
4+
Terraform AWS MQ
85
</h1>
96

10-
<p align="center" style="font-size: 1.2rem;">
11-
Terraform module template to create new modules using this as baseline
12-
</p>
7+
<p align="center" style="font-size: 1.2rem;">
8+
With our comprehensive DevOps toolkit - streamline operations, automate workflows, enhance collaboration and, most importantly, deploy with confidence.
9+
</p>
10+
1311

1412
<p align="center">
1513

16-
<a href="https://github.com/clouddrove/terraform-module-template/releases/latest">
17-
<img src="https://img.shields.io/github/release/clouddrove/terraform-module-template.svg" alt="Latest Release">
14+
<a href="https://github.com/clouddrove/terraform-aws-mq/releases/latest">
15+
<img src="https://img.shields.io/github/release/clouddrove/terraform-aws-mq.svg" alt="Latest Release">
1816
</a>
19-
<a href="">
20-
<img src="https://github.com/clouddrove/terraform-module-template/actions/workflows/tfsec.yml/badge.svg" alt="tfsec">
17+
<a href="https://github.com/clouddrove/terraform-aws-mq/actions/workflows/tfsec.yml">
18+
<img src="https://github.com/clouddrove/terraform-aws-mq/actions/workflows/tfsec.yml/badge.svg" alt="tfsec">
2119
</a>
2220
<a href="LICENSE.md">
2321
<img src="https://img.shields.io/badge/License-APACHE-blue.svg" alt="Licence">
2422
</a>
23+
<a href="CHANGELOG.md">
24+
<img src="https://img.shields.io/badge/Changelog-blue" alt="Changelog">
25+
</a>
2526

2627

2728
</p>
2829
<p align="center">
2930

30-
<a href='https://facebook.com/sharer/sharer.php?u=https://github.com/clouddrove/terraform-module-template'>
31+
<a href='https://facebook.com/sharer/sharer.php?u=https://github.com/clouddrove/terraform-aws-mq'>
3132
<img title="Share on Facebook" src="https://user-images.githubusercontent.com/50652676/62817743-4f64cb80-bb59-11e9-90c7-b057252ded50.png" />
3233
</a>
33-
<a href='https://www.linkedin.com/shareArticle?mini=true&title=Terraform+Module+Template&url=https://github.com/clouddrove/terraform-module-template'>
34+
<a href='https://www.instagram.com/cloud_drove?igsh=cHJqaDY3bGtnYmh3' title="Follow On Instagram">
35+
<img src="https://github.com/gauravghongde/social-icons/blob/master/SVG/Color/Instagram.svg" width="23" height="23" />
36+
</a>
37+
<a href='https://www.linkedin.com/shareArticle?mini=true&title=Terraform+AWS+mq&url=https://github.com/clouddrove/terraform-aws-mq'>
3438
<img title="Share on LinkedIn" src="https://user-images.githubusercontent.com/50652676/62817742-4e339e80-bb59-11e9-87b9-a1f68cae1049.png" />
3539
</a>
36-
<a href='https://twitter.com/intent/tweet/?text=Terraform+Module+Template&url=https://github.com/clouddrove/terraform-module-template'>
40+
<a href='https://twitter.com/intent/tweet/?text=Terraform+AWS+mq&url=https://github.com/clouddrove/terraform-aws-mq'>
3741
<img title="Share on Twitter" src="https://user-images.githubusercontent.com/50652676/62817740-4c69db00-bb59-11e9-8a79-3580fbbf6d5c.png" />
3842
</a>
3943

4044
</p>
4145
<hr>
4246

4347

44-
We eat, drink, sleep and most importantly love **DevOps**. We are working towards strategies for standardizing architecture while ensuring security for the infrastructure. We are strong believer of the philosophy <b>Bigger problems are always solved by breaking them into smaller manageable problems</b>. Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller <b>connected yet manageable pieces</b> within the infrastructure.
48+
We are a group of DevOps engineers & architects, joining hands in this ever evolving digital landscape. With our strong belief in Automation; just like microservices, always on the lookout to split the the infrastructure into smaller connected resources (database, cluster and more) which could be standardized, are manageable, scalable, secure & follow industry best practices.
4549

46-
This module is basically combination of [Terraform open source](https://www.terraform.io/) and includes automatation tests and examples. It also helps to create and improve your infrastructure with minimalistic code instead of maintaining the whole infrastructure code yourself.
4750

48-
We have [*fifty plus terraform modules*][terraform_modules]. A few of them are comepleted and are available for open source usage while a few others are in progress.
51+
This module includes Terraform open source, examples, and automation tests (for better understanding), which would help you create and improve your infrastructure with minimalistic coding.
4952

5053

5154

5255

53-
## Prerequisites
56+
## Prerequisites and Providers
5457

55-
This module has a few dependencies:
58+
This table contains both Prerequisites and Providers:
5659

57-
- [Terraform 1.x.x](https://learn.hashicorp.com/terraform/getting-started/install.html)
58-
- [Go](https://golang.org/doc/install)
59-
- [github.com/stretchr/testify/assert](https://github.com/stretchr/testify)
60-
- [github.com/gruntwork-io/terratest/modules/terraform](https://github.com/gruntwork-io/terratest)
60+
| Description | Name | Version |
61+
|:-------------:|:-------------------------------------------:|:---------:|
62+
| **Prerequisite** | [Terraform](https://learn.hashicorp.com/terraform/getting-started/install.html) | >= 1.6.6 |
63+
| **Provider** | [aws](https://aws.amazon.com/) | >= 5.31.0 |
6164

6265

6366

6467

6568

69+
## Examples
70+
71+
**IMPORTANT:** Since the master branch used in source varies based on new modifications, we recommend using the [release versions](https://github.com/clouddrove/terraform-aws-mq/releases).
72+
73+
📌 For additional usage examples, check the complete list under [`examples/`](./examples) directory.
6674

6775

68-
## Examples
6976

77+
## Inputs and Outputs
7078

71-
**IMPORTANT:** Since the `master` branch used in `source` varies based on new modifications, we suggest that you use the release versions [here](https://github.com/clouddrove/terraform-module-template/releases).
79+
Refer to complete documentation: [here](docs/io.md)
7280

7381

74-
Here are some examples of how you can use this module in your inventory structure:
75-
```hcl
76-
```
82+
<!--
83+
## Module Dependencies
7784
85+
This module has dependencies on:
7886
87+
- [Labels Module](https://github.com/clouddrove/terraform-aws-labels): Provides resource tagging.
88+
- [Security Groups Module](https://github.com/clouddrove/terraform-aws-security-group): Manage security groups
89+
- [KMS Module](https://github.com/clouddrove/terraform-aws-kms): Manage resource encryption
7990
8091
92+
-->
93+
94+
95+
## Module Dependencies
96+
97+
This module has dependencies on:
98+
- [Labels Module](https://github.com/clouddrove/terraform-aws-labels): Provides resource tagging.
99+
100+
101+
## 📑 Changelog
102+
103+
Refer [here](CHANGELOG.md).
104+
105+
106+
107+
108+
## ✨ Contributors
109+
110+
Big thanks to our contributors for elevating our project with their dedication and expertise! But, we do not wish to stop there, would like to invite contributions from the community in improving these projects and making them more versatile for better reach. Remember, every bit of contribution is immensely valuable, as, together, we are moving in only 1 direction, i.e. forward.
111+
112+
<a href="https://github.com/clouddrove/terraform-aws-mq/graphs/contributors">
113+
<img src="https://contrib.rocks/image?repo=clouddrove/terraform-aws-mq&max" />
114+
</a>
115+
<br>
116+
<br>
117+
118+
If you're considering contributing to our project, here are a few quick guidelines that we have been following (Got a suggestion? We are all ears!):
119+
120+
- **Fork the Repository:** Create a new branch for your feature or bug fix.
121+
- **Coding Standards:** You know the drill.
122+
- **Clear Commit Messages:** Write clear and concise commit messages to facilitate understanding.
123+
- **Thorough Testing:** Test your changes thoroughly before submitting a pull request.
124+
- **Documentation Updates:** Include relevant documentation updates if your changes impact it.
81125

82126

83-
## Inputs
84127

85-
No input.
86128

87-
## Outputs
88129

89-
No output.
90130

91131

92132

93133

94-
## Testing
95-
In this module testing is performed with [terratest](https://github.com/gruntwork-io/terratest) and it creates a small piece of infrastructure, matches the output like ARN, ID and Tags name etc and destroy infrastructure in your AWS account. This testing is written in GO, so you need a [GO environment](https://golang.org/doc/install) in your system.
96134

97-
You need to run the following command in the testing folder:
98-
```hcl
99-
go test -run Test
100-
```
101135

102136

103137

104138
## Feedback
105-
If you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/clouddrove/terraform-module-template/issues), or feel free to drop us an email at [[email protected]](mailto:[email protected]).
139+
Spot a bug or have thoughts to share with us? Let's squash it together! Log it in our [issue tracker](https://github.com/clouddrove/terraform-aws-mq/issues), feel free to drop us an email at [[email protected]](mailto:[email protected]).
140+
141+
Show some love with a ★ on [our GitHub](https://github.com/clouddrove/terraform-aws-mq)! if our work has brightened your day! – your feedback fuels our journey!
142+
143+
144+
## :rocket: Our Accomplishment
145+
146+
We have [*100+ Terraform modules*][terraform_modules] 🙌. You could consider them finished, but, with enthusiasts like yourself, we are able to ever improve them, so we call our status - improvement in progress.
147+
148+
- [Terraform Module Registry:](https://registry.terraform.io/namespaces/clouddrove) Discover our Terraform modules here.
149+
150+
- [Terraform Modules for AWS/Azure Modules:](https://github.com/clouddrove/toc) Explore our comprehensive Table of Contents for easy navigation through our documentation for modules pertaining to AWS, Azure & GCP.
151+
152+
- [Terraform Modules for Digital Ocean:](https://github.com/terraform-do-modules/toc) Check out our specialized Terraform modules for Digital Ocean.
153+
154+
155+
156+
157+
## Join Our Slack Community
158+
159+
Join our vibrant open-source slack community and embark on an ever-evolving journey with CloudDrove; helping you in moving upwards in your career path.
160+
Join our vibrant Open Source Slack Community and embark on a learning journey with CloudDrove. Grow with us in the world of DevOps and set your career on a path of consistency.
161+
162+
🌐💬What you'll get after joining this Slack community:
163+
164+
- 🚀 Encouragement to upgrade your best version.
165+
- 🌈 Learning companionship with our DevOps squad.
166+
- 🌱 Relentless growth with daily updates on new advancements in technologies.
167+
168+
Join our tech elites [Join Now][slack] 🚀
169+
170+
171+
## Explore Our Blogs
106172

107-
If you have found it worth your time, go ahead and give us a ★ on [our GitHub](https://github.com/clouddrove/terraform-module-template)!
173+
Click [here][blog] :books: :star2:
108174

109-
## About us
175+
## Tap into our capabilities
176+
We provide a platform for organizations to engage with experienced top-tier DevOps & Cloud services. Tap into our pool of certified engineers and architects to elevate your DevOps and Cloud Solutions.
110177

111-
At [CloudDrove][website], we offer expert guidance, implementation support and services to help organisations accelerate their journey to the cloud. Our services include docker and container orchestration, cloud migration and adoption, infrastructure automation, application modernisation and remediation, and performance engineering.
178+
At [CloudDrove][website], has extensive experience in designing, building & migrating environments, securing, consulting, monitoring, optimizing, automating, and maintaining complex and large modern systems. With remarkable client footprints in American & European corridors, our certified architects & engineers are ready to serve you as per your requirements & schedule. Write to us at [[email protected]](mailto:[email protected]).
112179

113180
<p align="center">We are <b> The Cloud Experts!</b></p>
114181
<hr />
115-
<p align="center">We ❤️ <a href="https://github.com/clouddrove">Open Source</a> and you can check out <a href="https://github.com/clouddrove">our other modules</a> to get help with your new Cloud ideas.</p>
182+
<p align="center">We ❤️ <a href="https://github.com/clouddrove">Open Source</a> and you can check out <a href="https://registry.terraform.io/namespaces/clouddrove">our other modules</a> to get help with your new Cloud ideas.</p>
116183

117184
[website]: https://clouddrove.com
185+
[blog]: https://blog.clouddrove.com
186+
[slack]: https://www.launchpass.com/devops-talks
118187
[github]: https://github.com/clouddrove
119188
[linkedin]: https://cpco.io/linkedin
120189
[twitter]: https://twitter.com/clouddrove/
121190
[email]: https://clouddrove.com/contact-us.html
122-
[terraform_modules]: https://github.com/clouddrove?utf8=%E2%9C%93&q=terraform-&type=&language=
191+
[terraform_modules]: https://github.com/clouddrove?utf8=%E2%9C%93&q=terraform-&type=&language=

0 commit comments

Comments
 (0)