Skip to content

Commit b526d66

Browse files
author
manikanta-sadurla
committed
Merge pull request #2 from sourcefuse/feature/fix-workflow
updated workflow
1 parent 7e4a415 commit b526d66

File tree

1 file changed

+124
-0
lines changed
  • docs/arc-iac-docs/modules/terraform-aws-arc-sns/docs/module-usage-guide

1 file changed

+124
-0
lines changed
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
# Terraform AWS ARC SNS Module Usage Guide
2+
3+
## Introduction
4+
5+
### Purpose of the Document
6+
7+
This document provides guidelines and instructions for users looking to create sns using the module.
8+
9+
### Module Overview
10+
11+
The ARC Terraform module provides an easy and consistent way to create and manage Amazon SNS topics on AWS. This module supports defining topics, subscriptions, and policies, making it simple to connect services like S3, Lambda, and SQS. By using this module, you can quickly set up reliable messaging and notification workflows while following AWS best practices.
12+
13+
### Prerequisites
14+
15+
Before using this module, ensure you have the following:
16+
17+
- AWS credentials configured.
18+
- Terraform installed.
19+
20+
## Getting Started
21+
22+
### Module Source
23+
24+
To use the module in your Terraform configuration, include the following source block:
25+
26+
27+
```hcl
28+
module "sns" {
29+
source = "sourcefuse/arc-sns/aws"
30+
version = "0.0.1"
31+
32+
name = var.topic_name
33+
display_name = var.display_name
34+
35+
tags = module.tags.tags
36+
}
37+
```
38+
39+
Refer to the [Terraform Registry](https://registry.terraform.io/modules/sourcefuse/arc-sns/aws/latest) for the latest version.
40+
41+
### Integration with Existing Terraform Configurations
42+
43+
Refer to the Terraform Registry for the latest version.
44+
45+
## Integration with Existing Terraform Configurations
46+
Integrate the module with your existing Terraform mono repo configuration, follow the steps below:
47+
48+
- Create a new folder in terraform/sns named .
49+
- Create the required files, see the examples to base off of.
50+
- Configure with your backend:
51+
- Create the environment backend configuration file: config.<environment>.hcl
52+
- region: Where the backend resides
53+
- key: <working_directory>/terraform.tfstate
54+
- bucket: Bucket name where the terraform state will reside
55+
- dynamodb_table: Lock table so there are not duplicate tfplans in the mix
56+
- encrypt: Encrypt all traffic to and from the backend
57+
58+
### Required AWS Permissions
59+
60+
Ensure that the AWS credentials used to execute Terraform have the necessary permissions to create, list and modify:
61+
62+
- All sns services
63+
64+
## Module Configuration
65+
66+
### Input Variables
67+
68+
For a list of input variables, see the README [Inputs](https://github.com/sourcefuse/terraform-aws-arc-sns#inputs) section.
69+
70+
### Output Values
71+
72+
For a list of outputs, see the README [Outputs](https://github.com/sourcefuse/terraform-aws-arc-sns?tab=readme-ov-file#outputs) section.
73+
74+
## Module Usage
75+
76+
### Basic Usage
77+
78+
For basic usage, see the [examples](https://github.com/sourcefuse/terraform-aws-arc-sns/tree/main/examples) folder.
79+
80+
This example will create:
81+
82+
- **sns Studio Domain**: Complete
83+
84+
### Tips and Recommendations
85+
86+
- The module focuses on provisioning sns. The convention-based approach enables downstream services to easily attach to the sns. Adjust the configuration parameters as needed for your specific use case.
87+
88+
## Troubleshooting
89+
90+
### Reporting Issues
91+
92+
If you encounter a bug or issue, please report it on the [GitHub repository](https://github.com/sourcefuse/terraform-aws-arc-sns/issues).
93+
94+
## Security Considerations
95+
96+
### AWS VPC
97+
98+
Understand the security considerations related to sns on AWS when using this module.
99+
100+
### Best Practices for AWS sns
101+
102+
Follow best practices to ensure secure sns configurations:
103+
104+
- [AWS sns Security Best Practices](https://docs.aws.amazon.com/sns/latest/dg/sns-security-best-practices.html
105+
106+
## Contributing and Community Support
107+
108+
### Contributing Guidelines
109+
110+
Contribute to the module by following the guidelines outlined in the [CONTRIBUTING.md](https://github.com/sourcefuse/terraform-aws-arc-sns/blob/main/CONTRIBUTING.md) file.
111+
112+
### Reporting Bugs and Issues
113+
114+
If you find a bug or issue, report it on the [GitHub repository](https://github.com/sourcefuse/terraform-aws-arc-sns/issues).
115+
116+
## License
117+
118+
### License Information
119+
120+
This module is licensed under the Apache 2.0 license. Refer to the [LICENSE](https://github.com/sourcefuse/terraform-aws-arc-sns/blob/main/LICENSE) file for more details.
121+
122+
### Open Source Contribution
123+
124+
Contribute to open source by using and enhancing this module. Your contributions are welcome!

0 commit comments

Comments
 (0)