File tree Expand file tree Collapse file tree 9 files changed +64
-22
lines changed Expand file tree Collapse file tree 9 files changed +64
-22
lines changed Original file line number Diff line number Diff line change 1
1
repos :
2
2
- repo : https://github.com/pre-commit/pre-commit-hooks
3
- rev : v4.0.1
3
+ rev : v4.4.0
4
4
hooks :
5
5
- id : check-added-large-files
6
6
args : ['--maxkb=500']
7
- - id : check-executables-have-shebangs
8
7
- id : pretty-format-json
9
8
args : ['--autofix', '--no-sort-keys', '--indent=2']
10
9
- id : check-byte-order-marker
17
16
- id : detect-aws-credentials
18
17
args : ['--allow-missing-credentials']
19
18
- id : trailing-whitespace
20
- - repo : git ://github.com/antonbabenko/pre-commit-terraform
21
- rev : v1.50 .0
19
+ - repo : https ://github.com/antonbabenko/pre-commit-terraform
20
+ rev : v1.81 .0
22
21
hooks :
23
22
- id : terraform_fmt
24
23
- id : terraform_docs
Original file line number Diff line number Diff line change @@ -5,7 +5,13 @@ All notable changes to this project will be documented in this file.
5
5
<a name =" unreleased " ></a >
6
6
## [ Unreleased]
7
7
8
- - Add new parameter 'bypass_policy_lockout_safety_check'
8
+ - Upgraded to 5.x compatibility + Added square brackets to list items requirement
9
+
10
+
11
+ <a name =" 2.0.0 " ></a >
12
+ ## [ 2.0.0] - 2021-08-18
13
+
14
+ - Add new feature - 'bypass_policy_lockout_safety_check' ([ #4 ] ( https://github.com/umotif-public/terraform-aws-kms/issues/4 ) )
9
15
10
16
11
17
<a name =" 1.0.3 " ></a >
@@ -37,7 +43,8 @@ All notable changes to this project will be documented in this file.
37
43
- Initial commit
38
44
39
45
40
- [ Unreleased ] : https://github.com/umotif-public/terraform-aws-kms/compare/1.0.3...HEAD
46
+ [ Unreleased ] : https://github.com/umotif-public/terraform-aws-kms/compare/2.0.0...HEAD
47
+ [ 2.0.0 ] : https://github.com/umotif-public/terraform-aws-kms/compare/1.0.3...2.0.0
41
48
[ 1.0.3 ] : https://github.com/umotif-public/terraform-aws-kms/compare/1.0.2...1.0.3
42
49
[ 1.0.2 ] : https://github.com/umotif-public/terraform-aws-kms/compare/1.0.1...1.0.2
43
50
[ 1.0.1 ] : https://github.com/umotif-public/terraform-aws-kms/compare/1.0.0...1.0.1
Original file line number Diff line number Diff line change @@ -38,16 +38,14 @@ Module is to be used with Terraform > 0.12.
38
38
39
39
## Authors
40
40
41
- Module managed by [ Marcin Cuber] ( https://github.com/marcincuber ) ([ LinkedIn] ( https://www.linkedin.com/in/marcincuber/ ) ).\
42
- Module managed by [ Abdul Wahid] ( https://github.com/Ohid25 ) ([ LinkedIn] ( https://www.linkedin.com/in/abdul-wahid/ ) ).\
43
- Module managed by [ Sean Pascual] ( https://github.com/seanpascual ) ([ LinkedIn] ( https://www.linkedin.com/in/sean-edward-pascual/ ) ).
41
+ Module managed by [ uMotif] ( https://github.com/umotif-public/ ) .
44
42
45
43
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
46
44
## Requirements
47
45
48
46
| Name | Version |
49
47
| ------| ---------|
50
- | <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 0.12.31 |
48
+ | <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 1.0.11 |
51
49
| <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 3.53.0 |
52
50
53
51
## Providers
Original file line number Diff line number Diff line change 1
- provider "aws" {
2
- region = " eu-west-1"
3
- }
4
-
5
1
module "kms" {
6
2
source = " ../.."
7
3
Original file line number Diff line number Diff line change
1
+ terraform {
2
+ required_version = " 1.0.11"
3
+
4
+ required_providers {
5
+ aws = {
6
+ source = " hashicorp/aws"
7
+ version = " ~> 5"
8
+ }
9
+ }
10
+ }
11
+
12
+ provider "aws" {
13
+ region = " eu-west-1"
14
+ }
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ resource "aws_kms_alias" "main" {
16
16
count = var. enabled ? 1 : 0
17
17
18
18
name = " alias/${ var . alias_name } "
19
- target_key_id = join ( " " , aws_kms_key. main . * . id )
19
+ target_key_id = aws_kms_key. main [ 0 ] . id
20
20
21
21
depends_on = [
22
22
aws_kms_key . main
Original file line number Diff line number Diff line change 1
1
output "key_arn" {
2
- value = join ( " " , aws_kms_key. main . * . arn )
2
+ value = var . enabled ? aws_kms_key. main [ 0 ] . arn : null
3
3
description = " KMS Key ARN."
4
4
}
5
5
6
6
output "key_id" {
7
- value = join ( " " , aws_kms_key. main . * . key_id )
7
+ value = aws_kms_key. main [ 0 ] . key_id
8
8
description = " KMS Key ID."
9
9
}
10
10
11
11
output "alias_arn" {
12
- value = join ( " " , aws_kms_alias. main . * . arn )
12
+ value = var . enabled ? aws_kms_alias. main [ 0 ] . arn : null
13
13
description = " KMS Key Alias ARN."
14
14
}
15
15
16
16
output "alias_name" {
17
- value = join ( " " , aws_kms_alias. main . * . name )
17
+ value = var . enabled ? aws_kms_alias. main [ 0 ] . name : null
18
18
description = " KMS Key Alias name."
19
19
}
Original file line number Diff line number Diff line change 1
1
terraform {
2
- required_version = " >= 0.12.31 "
2
+ required_version = " >= 1.0.11 "
3
3
4
4
required_providers {
5
- aws = " >= 3.53.0"
5
+ aws = {
6
+ source = " hashicorp/aws"
7
+ version = " >= 3.53.0"
8
+ }
6
9
}
7
- }
10
+ }
You can’t perform that action at this time.
0 commit comments