Skip to content

Commit

Permalink
Merge pull request #14 from confusdcodr/sleep
Browse files Browse the repository at this point in the history
Increase sleep timer to better address for account propagation
  • Loading branch information
confusdcodr authored May 8, 2020
2 parents 02e58e2 + a5972f6 commit 3d4b5b9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 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 = 0.0.0
current_version = 0.0.1
commit = True
message = Bumps version to {new_version}
tag = False
Expand Down
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/).

### 0.0.1

**Released**: 2020.05.08

**Commit Delta**: [Change from 1.0.4 release](https://github.com/plus3it/terraform-aws-tardigrade-security-hub/compare/0.0.0...0.0.1)

**Summary**:

* Increase sleep timer to better address for account propagation

### 0.0.0

**Commit Delta**: N/A
Expand Down
9 changes: 7 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ resource "null_resource" "create" {
count = var.create_securityhub_member && var.auto_accept ? 1 : 0

# The invite from the master sometimes takes a few seconds to register
# before it can be accepted in the target account, so we pause for 3 seconds to let
# before it can be accepted in the target account, so we pause for 5 seconds to let
# the invite propagate
provisioner "local-exec" {
command = "python -c 'import time; time.sleep(3)'"
command = "python -c 'import time; time.sleep(5)'"
}

provisioner "local-exec" {
Expand All @@ -81,6 +81,11 @@ resource "null_resource" "create" {
command = self.triggers.destroy_command
}

provisioner "local-exec" {
when = destroy
command = "python -c 'import time; time.sleep(5)'"
}

lifecycle {
ignore_changes = [triggers["destroy_command"]]
}
Expand Down

0 comments on commit 3d4b5b9

Please sign in to comment.