-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from clouddrove/CD-201
LGTM
- Loading branch information
Showing
10 changed files
with
54 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,29 +79,29 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: 'Terratest for default-s3' | ||
uses: clouddrove/[email protected] | ||
with: | ||
actions_subcommand: 'terratest' | ||
tf_actions_working_dir: ./_test/default-s3 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: 'Terratest for encryption-s3' | ||
uses: clouddrove/[email protected] | ||
with: | ||
actions_subcommand: 'terratest' | ||
tf_actions_working_dir: ./_test/encryption-s3 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: 'Terratest for website-s3' | ||
uses: clouddrove/[email protected] | ||
with: | ||
actions_subcommand: 'terratest' | ||
tf_actions_working_dir: ./_test/website-s3 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# - name: 'Terratest for default-s3' | ||
# uses: clouddrove/[email protected] | ||
# with: | ||
# actions_subcommand: 'terratest' | ||
# tf_actions_working_dir: ./_test/default-s3 | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: 'Terratest for encryption-s3' | ||
# uses: clouddrove/[email protected] | ||
# with: | ||
# actions_subcommand: 'terratest' | ||
# tf_actions_working_dir: ./_test/encryption-s3 | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: 'Terratest for website-s3' | ||
# uses: clouddrove/[email protected] | ||
# with: | ||
# actions_subcommand: 'terratest' | ||
# tf_actions_working_dir: ./_test/website-s3 | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: 'Slack Notification' | ||
uses: clouddrove/action-slack@v2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
Terraform AWS S3 | ||
</h1> | ||
|
||
<p align="center" style="font-size: 1.2rem;"> | ||
<p align="center" style="font-size: 1.2rem;"> | ||
Terraform module to create default S3 bucket with logging and encryption type specific features. | ||
</p> | ||
|
||
|
@@ -38,7 +38,7 @@ | |
<hr> | ||
|
||
|
||
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. | ||
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. | ||
|
||
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. | ||
|
||
|
@@ -49,7 +49,7 @@ We have [*fifty plus terraform modules*][terraform_modules]. A few of them are c | |
|
||
## Prerequisites | ||
|
||
This module has a few dependencies: | ||
This module has a few dependencies: | ||
|
||
- [Terraform 0.12](https://learn.hashicorp.com/terraform/getting-started/install.html) | ||
- [Go](https://golang.org/doc/install) | ||
|
@@ -72,9 +72,8 @@ Here are some examples of how you can use this module in your inventory structur | |
### Basic Bucket | ||
```hcl | ||
module "s3_bucket" { | ||
source = "https://github.com/clouddrove/terraform-aws-s3?ref=tags/0.12.5" | ||
source = "https://github.com/clouddrove/terraform-aws-s3?ref=tags/0.12.7" | ||
name = "secure-bucket" | ||
region = "eu-west-1" | ||
application = "clouddrove" | ||
environment = "test" | ||
label_order = ["environment", "application", "name"] | ||
|
@@ -86,9 +85,8 @@ module "s3_bucket" { | |
### Encryption Bucket | ||
```hcl | ||
module "s3_bucket" { | ||
source = "https://github.com/clouddrove/terraform-aws-s3?ref=tags/0.12.5" | ||
source = "https://github.com/clouddrove/terraform-aws-s3?ref=tags/0.12.7" | ||
name = "encryption-bucket" | ||
region = "eu-west-1" | ||
application = "clouddrove" | ||
environment = "test" | ||
label_order = ["environment", "application", "name"] | ||
|
@@ -101,9 +99,8 @@ module "s3_bucket" { | |
### Logging-Encryption Bucket | ||
```hcl | ||
module "s3_bucket" { | ||
source = "https://github.com/clouddrove/terraform-aws-s3?ref=tags/0.12.5" | ||
source = "https://github.com/clouddrove/terraform-aws-s3?ref=tags/0.12.7" | ||
name = "logging-encryption-bucket" | ||
region = "eu-west-1" | ||
application = "clouddrove" | ||
environment = "test" | ||
label_order = ["environment", "application", "name"] | ||
|
@@ -118,9 +115,8 @@ module "s3_bucket" { | |
### Logging Bucket | ||
```hcl | ||
module "s3_bucket" { | ||
source = "https://github.com/clouddrove/terraform-aws-s3?ref=tags/0.12.5" | ||
source = "https://github.com/clouddrove/terraform-aws-s3?ref=tags/0.12.7" | ||
name = "logging-bucket" | ||
region = "eu-west-1" | ||
application = "clouddrove" | ||
environment = "test" | ||
label_order = ["environment", "application", "name"] | ||
|
@@ -134,9 +130,8 @@ module "s3_bucket" { | |
### Website Host Bucket | ||
```hcl | ||
module "s3_bucket" { | ||
source = "https://github.com/clouddrove/terraform-aws-s3?ref=tags/0.12.5" | ||
source = "https://github.com/clouddrove/terraform-aws-s3?ref=tags/0.12.7" | ||
name = "website-bucket" | ||
region = "eu-west-1" | ||
application = "clouddrove" | ||
environment = "test" | ||
label_order = ["environment", "application", "name"] | ||
|
@@ -224,7 +219,7 @@ data "aws_iam_policy_document" "default" { | |
|
||
|
||
## Testing | ||
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. | ||
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. | ||
|
||
You need to run the following command in the testing folder: | ||
```hcl | ||
|
@@ -233,7 +228,7 @@ You need to run the following command in the testing folder: | |
|
||
|
||
|
||
## Feedback | ||
## Feedback | ||
If you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/clouddrove/terraform-aws-s3/issues), or feel free to drop us an email at [[email protected]](mailto:[email protected]). | ||
|
||
If you have found it worth your time, go ahead and give us a ★ on [our GitHub](https://github.com/clouddrove/terraform-aws-s3)! | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters