Skip to content

Commit

Permalink
Ensure support of the AWS Provider V5 and latest terraform (#31)
Browse files Browse the repository at this point in the history
* Support AWS Provider V5

* updates
  • Loading branch information
max-lobur committed Jun 26, 2023
1 parent 5f200ad commit 8b2935d
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- 'docs/**'
- 'examples/**'
- 'test/**'
- 'README.*'

permissions:
contents: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ permissions:

jobs:
terraform-module:
uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/release.yml@main
uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/release-published.yml@main
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ Available targets:

| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.0 |
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
| <a name="requirement_local"></a> [local](#requirement\_local) | >= 1.3 |

Expand Down
2 changes: 1 addition & 1 deletion docs/terraform.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.0 |
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
| <a name="requirement_local"></a> [local](#requirement\_local) | >= 1.3 |

Expand Down
2 changes: 1 addition & 1 deletion examples/complete/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module "yaml_config" {
source = "cloudposse/config/yaml"
version = "0.7.0"
version = "1.0.2"

list_config_local_base_path = path.module
list_config_paths = var.list_config_paths
Expand Down
2 changes: 1 addition & 1 deletion examples/complete/versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = ">= 0.13.0"
required_version = ">= 1.3"

required_providers {
aws = {
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ resource "aws_organizations_policy" "this" {

resource "aws_organizations_policy_attachment" "this" {
count = module.this.enabled && length(var.service_control_policy_statements) > 0 ? 1 : 0
policy_id = join("", aws_organizations_policy.this.*.id)
policy_id = join("", aws_organizations_policy.this[*].id)
target_id = var.target_id
}
4 changes: 2 additions & 2 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
output "organizations_policy_id" {
value = join("", aws_organizations_policy.this.*.id)
value = join("", aws_organizations_policy.this[*].id)
description = "The unique identifier of the policy"
}

output "organizations_policy_arn" {
value = join("", aws_organizations_policy.this.*.arn)
value = join("", aws_organizations_policy.this[*].arn)
description = "Amazon Resource Name (ARN) of the policy"
}
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = ">= 0.13.0"
required_version = ">= 1.3"

required_providers {
aws = {
Expand Down

0 comments on commit 8b2935d

Please sign in to comment.