Skip to content

Commit

Permalink
Merge pull request #57 from confusdcodr/sleep
Browse files Browse the repository at this point in the history
Adds sleep to principal association to allow invitation to propagate
  • Loading branch information
confusdcodr authored May 14, 2020
2 parents 1e71d2f + cbea789 commit 7710ead
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[bumpversion]
current_version = 2.0.1
current_version = 2.0.2
commit = True
message = Bumps version to {new_version}
tag = False
tag_name = {new_version}

30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,36 @@ 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/).

### 2.0.2

**Released**: 2020.05.14

**Commit Delta**: [Change from 2.0.1 release](https://github.com/plus3it/terraform-aws-tardigrade-ram-principal-association/compare/2.0.1...2.0.2)

**Summary**:

* Adds sleep to principal association to allow invitation to propagate

### 2.0.1

**Released**: 2020.05.14

**Commit Delta**: [Change from 2.0.0 release](https://github.com/plus3it/terraform-aws-tardigrade-ram-principal-association/compare/2.0.0...2.0.1)

**Summary**:

* Refactors count logic to avoid dependency on apply

### 2.0.0

**Released**: 2020.05.13

**Commit Delta**: [Change from 1.0.2 release](https://github.com/plus3it/terraform-aws-tardigrade-ram-principal-association/compare/1.0.2...2.0.0)

**Summary**:

* Reworks module to use native terraform resources to handle the invitation/acceptance

### 1.0.2

**Released**: 2019.10.28
Expand Down
5 changes: 5 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ resource "aws_ram_principal_association" "this" {

principal = var.principal
resource_share_arn = var.resource_share_arn

# The invitation sometime takes a few seconds to propagate
provisioner "local-exec" {
command = "python -c 'import time; time.sleep(5)'"
}
}

resource "aws_ram_resource_share_accepter" "this" {
Expand Down

0 comments on commit 7710ead

Please sign in to comment.