diff --git a/README.md b/README.md index c87a401..4c4be3a 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@
-We eat, drink, sleep and most importantly love **DevOps**. We are working towards stratergies for standardizing architecture while ensuring security for the infrastructure. We are strong believer of the philosophy Bigger problems are always solved by breaking them into smaller manageable problems. Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller connected yet manageable pieces 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 Bigger problems are always solved by breaking them into smaller manageable problems. Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller connected yet manageable pieces 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. @@ -61,8 +61,10 @@ This module has a few dependencies: + ## Examples + **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-aws-ses/releases). @@ -70,18 +72,21 @@ This module has a few dependencies: Here is an example of how you can use this module in your inventory structure: ```hcl module "ses" { - source = "git::https://github.com/clouddrove/terraform-aws-ses.git?ref=tags/0.12.2" + source = "git::https://github.com/clouddrove/terraform-aws-ses.git?ref=tags/0.12.3" domain = "clouddrove.com" iam_name = "ses-user" zone_id = "DSSCTGRTHD" enable_verification = true enable_mx = false enable_spf_domain = false -} + } ``` + + + ## Inputs | Name | Description | Type | Default | Required | @@ -113,8 +118,8 @@ module "ses" { -## Testing +## 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. You need to run the following command in the testing folder: @@ -142,4 +147,4 @@ At [CloudDrove][website], we offer expert guidance, implementation support and s [linkedin]: https://cpco.io/linkedin [twitter]: https://twitter.com/clouddrove/ [email]: https://clouddrove.com/contact-us.html - [terraform_modules]: https://github.com/clouddrove?utf8=%E2%9C%93&q=terraform-&type=&language= \ No newline at end of file + [terraform_modules]: https://github.com/clouddrove?utf8=%E2%9C%93&q=terraform-&type=&language= diff --git a/README.yaml b/README.yaml index 3515759..f8319ff 100644 --- a/README.yaml +++ b/README.yaml @@ -36,7 +36,7 @@ usage : |- Here is an example of how you can use this module in your inventory structure: ```hcl module "ses" { - source = "git::https://github.com/clouddrove/terraform-aws-ses.git?ref=tags/0.12.2" + source = "git::https://github.com/clouddrove/terraform-aws-ses.git?ref=tags/0.12.3" domain = "clouddrove.com" iam_name = "ses-user" zone_id = "DSSCTGRTHD" diff --git a/main.tf b/main.tf index 8d0e193..9bf380e 100644 --- a/main.tf +++ b/main.tf @@ -174,7 +174,7 @@ resource "aws_iam_user" "default" { # Description : Terraform module which creates SMTP Iam access key resource on AWS resource "aws_iam_access_key" "default" { count = var.iam_name != "" ? 1 : 0 - user = aws_iam_user.default[0].name + user = join("", aws_iam_user.default.*.name) } # Module : IAM USER POLICY @@ -182,7 +182,7 @@ resource "aws_iam_access_key" "default" { resource "aws_iam_user_policy" "default" { count = var.iam_name != "" ? 1 : 0 name = var.iam_name - user = aws_iam_user.default[0].name + user = join("", aws_iam_user.default.*.name) policy = data.aws_iam_policy_document.allow_iam_name_to_send_emails.json }