Skip to content

Commit

Permalink
Merge pull request #182 from cahnk/configuration_aliases_update
Browse files Browse the repository at this point in the history
Configuration aliases update
  • Loading branch information
cahnk authored May 13, 2022
2 parents d4af464 + de8a858 commit 0f73275
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 11 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 = 3.0.1
current_version = 4.0.0
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/).

### 4.0.0

**Released**: 2022.05.16

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

**Summary**:

* Updated to use new configuration_aliases tag. Also updated the provider profiles names to match the test framework construct.

### 2.0.2

**Released**: 2020.05.14
Expand Down
2 changes: 1 addition & 1 deletion modules/cross_account_principal_association/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13 |
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |

## Providers
Expand Down
4 changes: 0 additions & 4 deletions modules/cross_account_principal_association/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
provider "aws" {
alias = "owner"
}

module "principal_association" {
source = "../principal_association"

Expand Down
7 changes: 4 additions & 3 deletions modules/cross_account_principal_association/versions.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
terraform {
required_version = ">= 0.13"
required_version = ">= 0.15"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.0"
source = "hashicorp/aws"
version = ">= 3.0"
configuration_aliases = [aws.owner]
}
}
}
6 changes: 4 additions & 2 deletions tests/cross_account/main.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# The provider account for the RAM share owner
provider "aws" {
region = "us-east-1"
profile = "resource-owner"
profile = "aws" # Profile must exist in your .aws/config
}

# AWS provider account for the RAM share member acccount
provider "aws" {
region = "us-east-1"
alias = "resource-member"
profile = "resource-member"
profile = "awsalternate" # Profile must exist in your .aws/config
}

module "cross_account" {
Expand Down

0 comments on commit 0f73275

Please sign in to comment.