Skip to content

Commit

Permalink
Merge pull request #64 from lorengordon/required_providers
Browse files Browse the repository at this point in the history
  • Loading branch information
lorengordon authored May 5, 2021
2 parents ef14e67 + 9d2031d commit d177e0b
Show file tree
Hide file tree
Showing 13 changed files with 77 additions and 19 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 = 2.0.1
commit = True
message = Bumps version to {new_version}
tag = False
Expand Down
7 changes: 5 additions & 2 deletions modules/accepter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
<!-- BEGIN TFDOCS -->
## Requirements

No requirements.
| Name | Version |
|------|---------|
| terraform | >= 0.13 |
| aws | >= 3.29.0 |

## Providers

| Name | Version |
|------|---------|
| aws | n/a |
| aws | >= 3.29.0 |

## Inputs

Expand Down
10 changes: 10 additions & 0 deletions modules/accepter/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
terraform {
required_version = ">= 0.13"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.29.0"
}
}
}
7 changes: 5 additions & 2 deletions modules/account/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
<!-- BEGIN TFDOCS -->
## Requirements

No requirements.
| Name | Version |
|------|---------|
| terraform | >= 0.13 |
| aws | >= 3.29.0 |

## Providers

| Name | Version |
|------|---------|
| aws | n/a |
| aws | >= 3.29.0 |

## Inputs

Expand Down
10 changes: 10 additions & 0 deletions modules/account/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
terraform {
required_version = ">= 0.13"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.29.0"
}
}
}
7 changes: 5 additions & 2 deletions modules/action_target/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
<!-- BEGIN TFDOCS -->
## Requirements

No requirements.
| Name | Version |
|------|---------|
| terraform | >= 0.13 |
| aws | >= 3.29.0 |

## Providers

| Name | Version |
|------|---------|
| aws | n/a |
| aws | >= 3.29.0 |

## Inputs

Expand Down
10 changes: 10 additions & 0 deletions modules/action_target/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
terraform {
required_version = ">= 0.13"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.29.0"
}
}
}
1 change: 0 additions & 1 deletion modules/cross-account-member/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

| Name | Version |
|------|---------|
| aws | >= 3.29.0 |
| aws.administrator | >= 3.29.0 |

## Inputs
Expand Down
8 changes: 1 addition & 7 deletions modules/cross-account-member/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,8 @@ module "member" {
aws = aws.administrator
}

account_id = data.aws_caller_identity.this.account_id
account_id = module.account.account.id
email = var.member_email

depends_on = [
module.account
]
}

# Accept invite
Expand All @@ -37,8 +33,6 @@ module "accept" {
]
}

data "aws_caller_identity" "this" {}

data "aws_caller_identity" "administrator" {
provider = aws.administrator
}
7 changes: 5 additions & 2 deletions modules/member/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
<!-- BEGIN TFDOCS -->
## Requirements

No requirements.
| Name | Version |
|------|---------|
| terraform | >= 0.13 |
| aws | >= 3.29.0 |

## Providers

| Name | Version |
|------|---------|
| aws | n/a |
| aws | >= 3.29.0 |

## Inputs

Expand Down
10 changes: 10 additions & 0 deletions modules/member/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
terraform {
required_version = ">= 0.13"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.29.0"
}
}
}
7 changes: 5 additions & 2 deletions modules/subscriptions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
<!-- BEGIN TFDOCS -->
## Requirements

No requirements.
| Name | Version |
|------|---------|
| terraform | >= 0.13 |
| aws | >= 3.29.0 |

## Providers

| Name | Version |
|------|---------|
| aws | n/a |
| aws | >= 3.29.0 |

## Inputs

Expand Down
10 changes: 10 additions & 0 deletions modules/subscriptions/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
terraform {
required_version = ">= 0.13"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.29.0"
}
}
}

0 comments on commit d177e0b

Please sign in to comment.