Skip to content

Commit

Permalink
Support AWS Provider V5 (#75)
Browse files Browse the repository at this point in the history
* Support AWS Provider V5

* Support AWS Provider V5
  • Loading branch information
max-lobur committed Jun 21, 2023
1 parent 31220dc commit 590f1f2
Show file tree
Hide file tree
Showing 10 changed files with 1,956 additions and 11 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release-branch.yml
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
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
Expand Up @@ -130,7 +130,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.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
| <a name="requirement_local"></a> [local](#requirement\_local) | >= 2.2.1 |
| <a name="requirement_null"></a> [null](#requirement\_null) | >= 2.1 |
Expand Down
2 changes: 1 addition & 1 deletion docs/terraform.md
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.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
| <a name="requirement_local"></a> [local](#requirement\_local) | >= 2.2.1 |
| <a name="requirement_null"></a> [null](#requirement\_null) | >= 2.1 |
Expand Down
10 changes: 10 additions & 0 deletions examples/complete/versions.tf
@@ -0,0 +1,10 @@
terraform {
required_version = ">= 1.0"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 4.0"
}
}
}
10 changes: 10 additions & 0 deletions examples/import-key/versions.tf
@@ -0,0 +1,10 @@
terraform {
required_version = ">= 1.0"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 4.0"
}
}
}
6 changes: 3 additions & 3 deletions outputs.tf
Expand Up @@ -11,19 +11,19 @@ output "public_key" {
output "private_key" {
sensitive = true
description = "Content of the generated private key"
value = join("", tls_private_key.default.*.private_key_pem)
value = join("", tls_private_key.default[*].private_key_pem)
}

output "public_key_filename" {
description = "Public Key Filename"

# Prevent releasing filename to downstream consumers until file exists (aka not during plan):
value = length(join("", tls_private_key.default.*.public_key_openssh)) > 0 ? local.public_key_filename : local.public_key_filename
value = length(join("", tls_private_key.default[*].public_key_openssh)) > 0 ? local.public_key_filename : local.public_key_filename
}

output "private_key_filename" {
description = "Private Key Filename"

# Prevent releasing filename to downstream consumers until file exists (aka not during plan):
value = length(join("", tls_private_key.default.*.public_key_openssh)) > 0 ? local.private_key_filename : local.private_key_filename
value = length(join("", tls_private_key.default[*].public_key_openssh)) > 0 ? local.private_key_filename : local.private_key_filename
}
6 changes: 2 additions & 4 deletions test/src/go.mod
Expand Up @@ -3,8 +3,6 @@ module github.com/cloudposse/terraform-aws-alb
go 1.13

require (
github.com/gruntwork-io/terratest v0.16.0
github.com/stretchr/testify v1.5.1
golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad // indirect
golang.org/x/net v0.0.0-20201224014010-6772e930b67b // indirect
github.com/gruntwork-io/terratest v0.43.2
github.com/stretchr/testify v1.8.1
)
1,926 changes: 1,926 additions & 0 deletions test/src/go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion versions.tf
@@ -1,5 +1,5 @@
terraform {
required_version = ">= 0.13.0"
required_version = ">= 1.0"

required_providers {
aws = {
Expand Down

0 comments on commit 590f1f2

Please sign in to comment.