diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 7559ffc..d1f209c 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 2.0.0 +current_version = 3.0.0 commit = True tag = False tag_name = {new_version} diff --git a/CHANGELOG.md b/CHANGELOG.md index bfc9fc3..698c712 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +### 3.0.0 +**Commit Delta**: [Change from 2.0.0 release](https://github.com/plus3it/terraform-aws-tardigrade-inspector/compare/2.0.0...3.0.0) + +**Released**: 2022.12.20 + +**Summary** + +* Added random string generator +* Added suffix using the random string generator to the inspector target name + ### 1.1.0 **Commit Delta**: [Change from 1.0.6 release](https://github.com/plus3it/terraform-aws-tardigrade-inspector/compare/1.0.6...1.1.0) diff --git a/main.tf b/main.tf index 1051a1c..e209a68 100644 --- a/main.tf +++ b/main.tf @@ -15,9 +15,15 @@ resource "random_uuid" "assessment_template" { } } +# Adding random string to assessment target name +resource "random_string" "random_suffix" { + length = 6 + special = false +} + # Create Inspector Assessment Target resource "aws_inspector_assessment_target" "this" { - name = var.name + name = "${var.name}-${random_string.random_suffix.result}" } # Create Inspector Assessment Template