You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-17Lines changed: 14 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,16 +12,15 @@ Terraform module to create Remote State Storage resources for workload deploymen
12
12
```hcl
13
13
module "backend" {
14
14
source = "squareops/tfstate/aws"
15
-
15
+
logging = true
16
16
environment = "Production"
17
17
bucket_name = "tfstate"
18
18
force_destroy = true
19
19
versioning_enabled = true
20
-
logging = true
21
20
}
22
21
23
22
```
24
-
Refer [examples](https://github.com/squareops/terraform-aws-tfstate/tree/main/examples/state-storage-backend) for more details.
23
+
Refer [examples](https://github.com/squareops/terraform-aws-tfstate/tree/main/examples/state-storage-backend) for more details.
25
24
26
25
## IAM Permissions
27
26
The required IAM permissions to create resources from this module can be found [here](https://github.com/squareops/terraform-aws-tfstate/blob/main/IAM.md)
@@ -60,8 +59,8 @@ In this module, we have implemented the following CIS Compliance checks for S3:
@@ -79,26 +78,25 @@ In this module, we have implemented the following CIS Compliance checks for S3:
79
78
|[aws_iam_policy_document.bucket_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document)| data source |
80
79
|[aws_iam_policy_document.cloudtrail_assume_role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document)| data source |
81
80
|[aws_iam_policy_document.default](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document)| data source |
81
+
|[aws_region.region](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region)| data source |
82
82
83
83
## Inputs
84
84
85
85
| Name | Description | Type | Default | Required |
| <aname="input_force_destroy"></a> [force\_destroy](#input\_force\_destroy)| Indicates all objects should be deleted from the bucket so that the bucket can be destroyed without error |`bool`|`false`| no |
| <aname="input_region"></a> [region](#input\_region)| In which region S3 bucket will create |`string`|`""`| no |
92
-
| <aname="input_versioning_enabled"></a> [versioning\_enabled](#input\_versioning\_enabled)| keeping multiple variants of an object in the same bucket |`bool`|`false`| no |
87
+
| <aname="input_bucket_name"></a> [bucket\_name](#input\_bucket\_name)| Name of the S3 bucket to be created. |`string`|`""`| no |
88
+
| <aname="input_environment"></a> [environment](#input\_environment)| Specify the type of environment(dev, demo, prod) in which the S3 bucket will be created. |`string`|`"demo"`| no |
89
+
| <aname="input_force_destroy"></a> [force\_destroy](#input\_force\_destroy)| Whether or not to delete all objects from the bucket to allow for destruction of the bucket without error. |`bool`|`false`| no |
90
+
| <aname="input_logging"></a> [logging](#input\_logging)| Configuration for S3 bucket access logging. |`bool`|`true`| no |
91
+
| <aname="input_versioning_enabled"></a> [versioning\_enabled](#input\_versioning\_enabled)| Whether or not to enable versioning for the S3 bucket, which allows multiple versions of an object to be stored in the same bucket. |`bool`|`false`| no |
93
92
94
93
## Outputs
95
94
96
95
| Name | Description |
97
96
|------|-------------|
98
-
| <aname="output_bucket_region"></a> [bucket\_region](#output\_bucket\_region)| In which region S3 bucket will create |
99
-
| <aname="output_dynamodb_table_name"></a> [dynamodb\_table\_name](#output\_dynamodb\_table\_name)| dynamodb table name |
100
-
| <aname="output_log_bucket_name"></a> [log\_bucket\_name](#output\_log\_bucket\_name)| logging table name |
101
-
| <aname="output_state_bucket_name"></a> [state\_bucket\_name](#output\_state\_bucket\_name)| bucket name with id |
97
+
| <aname="output_dynamodb_table_name"></a> [dynamodb\_table\_name](#output\_dynamodb\_table\_name)| Name of the DynamoDB table that will be used to manage locking and unlocking of the Terraform state file. |
98
+
| <aname="output_log_bucket_name"></a> [log\_bucket\_name](#output\_log\_bucket\_name)| Name of the S3 bucket that will be used to store logs for this module. |
99
+
| <aname="output_state_bucket_name"></a> [state\_bucket\_name](#output\_state\_bucket\_name)| Specify the region in which an S3 bucket will be created by the module. |
102
100
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
103
101
104
102
## Contribution & Issue Reporting
@@ -107,7 +105,7 @@ To report an issue with a project:
107
105
108
106
1. Check the repository's [issue tracker](https://github.com/squareops/terraform-aws-tfstate/issues) on GitHub
109
107
2. Search to see if the issue has already been reported
110
-
3. If you can't find an answer to your question in the documentation or issue tracker, you can ask a question by creating a new issue. Make sure to provide enough context and details .
108
+
3. If you can't find an answer to your question in the documentation or issue tracker, you can ask a question by creating a new issue. Make sure to provide enough context and details .
111
109
112
110
## License
113
111
@@ -139,4 +137,3 @@ We believe that the key to success in the digital age is the ability to deliver
139
137
We provide [support](https://squareops.com/contact-us/) on all of our projects, no matter how small or large they may be.
140
138
141
139
You can find more information about our company on this [squareops.com](https://squareops.com/), follow us on [Linkedin](https://www.linkedin.com/company/squareops-technologies-pvt-ltd/), or fill out a [job application](https://squareops.com/careers/). If you have any questions or would like assistance with your cloud strategy and implementation, please don't hesitate to [contact us](https://squareops.com/contact-us/).
| <aname="output_bucket_region"></a> [bucket\_region](#output\_bucket\_region)| In which region S3 bucket will create |
32
-
| <aname="output_dynamodb_table_name"></a> [dynamodb\_table\_name](#output\_dynamodb\_table\_name)| dynamodb table name |
33
-
| <aname="output_state_bucket_name"></a> [state\_bucket\_name](#output\_state\_bucket\_name)| bucket name with id |
31
+
| <aname="output_bucket_region"></a> [bucket\_region](#output\_bucket\_region)| Specify the region in which an S3 bucket will be created by the module. |
32
+
| <aname="output_dynamodb_table_name"></a> [dynamodb\_table\_name](#output\_dynamodb\_table\_name)| Name of the DynamoDB table that will be used to manage locking and unlocking of the Terraform state file. |
33
+
| <aname="output_log_bucket_name"></a> [log\_bucket\_name](#output\_log\_bucket\_name)| Name of the S3 bucket that will be used to store logs for this module. |
34
+
| <aname="output_state_bucket_name"></a> [state\_bucket\_name](#output\_state\_bucket\_name)| Name of the S3 bucket that will be used to store the Terraform state file. |
34
35
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
35
36
## Our Other Projects
36
37
@@ -81,4 +82,3 @@ We believe that the key to success in the digital age is the ability to deliver
81
82
We provide [support](https://squareops.com/contact-us/) on all of our projects, no matter how small or large they may be.
82
83
83
84
You can find more information about our company on this [squareops.com](https://squareops.com/), follow us on [linkdin](https://www.linkedin.com/company/squareops-technologies-pvt-ltd/), or fill out a [job application](https://squareops.com/careers/). If you have any questions or would like assistance with your cloud strategy and implementation, please don't hesitate to [contact us](https://squareops.com/contact-us/).
0 commit comments