Skip to content

Commit

Permalink
Raised version of module for ssh_key_pair (#16)
Browse files Browse the repository at this point in the history
* Raised version of module for ssh_key_pair

This module is pointing to version 0.9.0. However 0.9.0 can only be used with Terraform version 0.12. Result is that this module is broken in 0.12.x+ versions, as you can see in the error that i used with a terraform version 0.13.x:
```
Error: Unsupported Terraform Core version

  on .terraform/modules/instance.ssh_key_pair/versions.tf line 2, in terraform:
   2:   required_version = "~> 0.12.0"
```

In later versions of the ssh_key_pair module this is fixed, so i raised this version right up to the latest available.

* Updated README.md

Co-authored-by: actions-bot <[email protected]>
  • Loading branch information
a-nldisr and actions-bot authored Oct 13, 2020
1 parent 85fab8c commit 8bae778
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ Available targets:
```
<!-- markdownlint-restore -->
<!-- markdownlint-disable -->
## Requirements

| Name | Version |
Expand Down Expand Up @@ -254,6 +255,7 @@ Available targets:
| security\_group\_ids | ID on the new AWS Security Group associated with creating instance |
| ssh\_key\_pem\_path | Path where SSH key pair was created (if applicable) |

<!-- markdownlint-restore -->



Expand Down
2 changes: 2 additions & 0 deletions docs/terraform.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- markdownlint-disable -->
## Requirements

| Name | Version |
Expand Down Expand Up @@ -93,3 +94,4 @@
| security\_group\_ids | ID on the new AWS Security Group associated with creating instance |
| ssh\_key\_pem\_path | Path where SSH key pair was created (if applicable) |

<!-- markdownlint-restore -->
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ resource "aws_instance" "default" {
##

module "ssh_key_pair" {
source = "git::https://github.com/cloudposse/terraform-aws-key-pair.git?ref=tags/0.9.0"
source = "git::https://github.com/cloudposse/terraform-aws-key-pair.git?ref=tags/0.14.0"
namespace = var.namespace
environment = var.environment
stage = var.stage
Expand Down

0 comments on commit 8bae778

Please sign in to comment.