Skip to content

Commit

Permalink
Merge pull request #176 from deanp3it/random-append
Browse files Browse the repository at this point in the history
Random append
Added random string generator
Added suffix using the random string generator to the inspector target name
  • Loading branch information
deanp3it authored Dec 21, 2022
2 parents c7ef587 + 736cd9c commit e17e02f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 2.0.0
current_version = 3.0.0
commit = True
tag = False
tag_name = {new_version}
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 7 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e17e02f

Please sign in to comment.