diff --git a/.bumpversion.cfg b/.bumpversion.cfg index beafd7c..0e34519 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 825971e..ac92470 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/modules/cross_account_principal_association/README.md b/modules/cross_account_principal_association/README.md index a12367a..0090662 100644 --- a/modules/cross_account_principal_association/README.md +++ b/modules/cross_account_principal_association/README.md @@ -5,7 +5,7 @@ | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 0.13 | +| [terraform](#requirement\_terraform) | >= 0.15 | | [aws](#requirement\_aws) | >= 3.0 | ## Providers diff --git a/modules/cross_account_principal_association/main.tf b/modules/cross_account_principal_association/main.tf index f3017e6..1ab407a 100644 --- a/modules/cross_account_principal_association/main.tf +++ b/modules/cross_account_principal_association/main.tf @@ -1,7 +1,3 @@ -provider "aws" { - alias = "owner" -} - module "principal_association" { source = "../principal_association" diff --git a/modules/cross_account_principal_association/versions.tf b/modules/cross_account_principal_association/versions.tf index 34260e6..c3c64f9 100644 --- a/modules/cross_account_principal_association/versions.tf +++ b/modules/cross_account_principal_association/versions.tf @@ -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] } } } diff --git a/tests/cross_account/main.tf b/tests/cross_account/main.tf index 13a93eb..c4db379 100644 --- a/tests/cross_account/main.tf +++ b/tests/cross_account/main.tf @@ -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" {