Skip to content

Commit b771bbc

Browse files
DEVOPS-1761 Updated volume type for EBS volume for the instance to use (#20)
* DEVOPS-1761 Updated volume type for EBS volume for the instance to use * DEVOPS-1761 Update documentation
1 parent 3723d88 commit b771bbc

File tree

6 files changed

+21
-31
lines changed

6 files changed

+21
-31
lines changed

‎.pre-commit-config.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.3.0
3+
rev: v4.4.0
44
hooks:
55
- id: check-added-large-files
66
args: ['--maxkb=500']
7-
- id: check-executables-have-shebangs
87
- id: pretty-format-json
98
args: ['--autofix', '--no-sort-keys', '--indent=2']
109
- id: check-byte-order-marker
@@ -18,7 +17,7 @@ repos:
1817
args: ['--allow-missing-credentials']
1918
- id: trailing-whitespace
2019
- repo: https://github.com/antonbabenko/pre-commit-terraform
21-
rev: v1.73.0
20+
rev: v1.77.1
2221
hooks:
2322
- id: terraform_fmt
2423
- id: terraform_docs

‎CHANGELOG.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ All notable changes to this project will be documented in this file.
55
<a name="unreleased"></a>
66
## [Unreleased]
77

8-
- Removing unneeded variables
9-
- Upgrade Amazon Linux AMI version to use 5.10 kernal version
8+
- DEVOPS-1761 Updated volume type for EBS volume for the instance to use
9+
10+
11+
<a name="2.4.0"></a>
12+
## [2.4.0] - 2022-07-13
13+
14+
- Upgrade Amazon Linux AMI version to use 5.10 kernel version ([#19](https://github.com/umotif-public/terraform-aws-bastion/issues/19))
1015

1116

1217
<a name="2.3.0"></a>
@@ -127,7 +132,8 @@ All notable changes to this project will be documented in this file.
127132
- Initial commit
128133

129134

130-
[Unreleased]: https://github.com/umotif-public/terraform-aws-bastion/compare/2.3.0...HEAD
135+
[Unreleased]: https://github.com/umotif-public/terraform-aws-bastion/compare/2.4.0...HEAD
136+
[2.4.0]: https://github.com/umotif-public/terraform-aws-bastion/compare/2.3.0...2.4.0
131137
[2.3.0]: https://github.com/umotif-public/terraform-aws-bastion/compare/2.2.0...2.3.0
132138
[2.2.0]: https://github.com/umotif-public/terraform-aws-bastion/compare/2.1.0...2.2.0
133139
[2.1.0]: https://github.com/umotif-public/terraform-aws-bastion/compare/2.0.3...2.1.0

‎README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ No modules.
7676
| [aws_launch_template.bastion](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/launch_template) | resource |
7777
| [aws_security_group.bastion](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group) | resource |
7878
| [aws_ami.amazon_linux](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ami) | data source |
79-
| [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |
8079
| [aws_iam_policy_document.bastion_role_assume_role_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
8180
| [aws_iam_policy_document.bastion_role_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
8281
| [aws_partition.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/partition) | data source |
@@ -94,7 +93,6 @@ No modules.
9493
| <a name="input_asg_scale_up_max_size"></a> [asg\_scale\_up\_max\_size](#input\_asg\_scale\_up\_max\_size) | Auto Scalling Group value for maximum capacity of bastion hosts. Scale up action. | `number` | `1` | no |
9594
| <a name="input_asg_scale_up_min_size"></a> [asg\_scale\_up\_min\_size](#input\_asg\_scale\_up\_min\_size) | Auto Scalling Group value for minimum capacity of bastion hosts. Scale up action. | `number` | `1` | no |
9695
| <a name="input_asg_scale_up_recurrence"></a> [asg\_scale\_up\_recurrence](#input\_asg\_scale\_up\_recurrence) | The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format. Scale up action. | `string` | `"0 9 * * MON-FRI"` | no |
97-
| <a name="input_availability_zones"></a> [availability\_zones](#input\_availability\_zones) | Availability zones for the default Ireland region. | `list(string)` | <pre>[<br> "eu-west-1a",<br> "eu-west-1b",<br> "eu-west-1c"<br>]</pre> | no |
9896
| <a name="input_bastion_instance_types"></a> [bastion\_instance\_types](#input\_bastion\_instance\_types) | Bastion instance types used for spot instances. | `list(string)` | <pre>[<br> "t4g.nano",<br> "t4g.micro",<br> "t4g.small"<br>]</pre> | no |
9997
| <a name="input_delete_on_termination"></a> [delete\_on\_termination](#input\_delete\_on\_termination) | Whether the volume should be destroyed on instance termination. | `bool` | `true` | no |
10098
| <a name="input_desired_capacity"></a> [desired\_capacity](#input\_desired\_capacity) | Auto Scalling Group value for desired capacity of bastion hosts. | `number` | `1` | no |
@@ -112,15 +110,13 @@ No modules.
112110
| <a name="input_name_prefix"></a> [name\_prefix](#input\_name\_prefix) | A prefix used for naming resources. | `string` | n/a | yes |
113111
| <a name="input_on_demand_base_capacity"></a> [on\_demand\_base\_capacity](#input\_on\_demand\_base\_capacity) | Auto Scalling Group value for desired capacity for instance lifecycle type on-demand of bastion hosts. | `number` | `0` | no |
114112
| <a name="input_public_subnets"></a> [public\_subnets](#input\_public\_subnets) | Classless Inter-Domain Routing ranges for public subnets. | `list(string)` | n/a | yes |
115-
| <a name="input_region"></a> [region](#input\_region) | AWS region in which resources will get deployed. Defaults to Ireland. | `string` | `"eu-west-1"` | no |
116113
| <a name="input_ssh_key_name"></a> [ssh\_key\_name](#input\_ssh\_key\_name) | SSH key used to connect to the bastion host | `string` | n/a | yes |
117-
| <a name="input_ssh_port"></a> [ssh\_port](#input\_ssh\_port) | SSH port used to access a bastion host. | `number` | `22` | no |
118114
| <a name="input_tags"></a> [tags](#input\_tags) | Default tags attached to all resources. | `map(string)` | <pre>{<br> "ServiceType": "ceng-eks"<br>}</pre> | no |
119115
| <a name="input_termination_policies"></a> [termination\_policies](#input\_termination\_policies) | A list of policies to decide how the instances in the auto scale group should be terminated. The allowed values are OldestInstance, NewestInstance, OldestLaunchConfiguration, ClosestToNextInstanceHour, OldestLaunchTemplate, AllocationStrategy. | `list(string)` | <pre>[<br> "OldestInstance"<br>]</pre> | no |
120116
| <a name="input_time_zone"></a> [time\_zone](#input\_time\_zone) | Used for ASG Scale Up/Down. Valid values are the canonical names of the IANA time zones (such as Etc/GMT+9 or London/Europe) | `string` | `"Etc/UTC"` | no |
121117
| <a name="input_userdata_file_content"></a> [userdata\_file\_content](#input\_userdata\_file\_content) | The user data to provide when launching the instance. | `string` | `""` | no |
122118
| <a name="input_volume_size"></a> [volume\_size](#input\_volume\_size) | The size of the volume in gigabytes. | `number` | `20` | no |
123-
| <a name="input_volume_type"></a> [volume\_type](#input\_volume\_type) | The type of volume. Can be `standard`, `gp2`, or `io1`. | `string` | `"gp2"` | no |
119+
| <a name="input_volume_type"></a> [volume\_type](#input\_volume\_type) | The volume type. Can be one of standard, 'gp2', 'gp3', 'io1', 'io2', 'sc1' or 'st1'. | `string` | `"gp3"` | no |
124120
| <a name="input_vpc_id"></a> [vpc\_id](#input\_vpc\_id) | VPC ID where bastion hosts and security groups will be created. | `string` | n/a | yes |
125121

126122
## Outputs

‎data.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
data "aws_caller_identity" "current" {}
21
data "aws_partition" "current" {}
32

43
data "aws_ami" "amazon_linux" {

‎examples/core/versions.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
terraform {
2+
required_version = ">= 1.0.11"
3+
4+
required_providers {
5+
aws = ">= 4.0.0, < 5.0.0"
6+
}
7+
}

‎variables.tf

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,6 @@ variable "name_prefix" {
33
type = string
44
}
55

6-
variable "region" {
7-
type = string
8-
default = "eu-west-1"
9-
description = "AWS region in which resources will get deployed. Defaults to Ireland."
10-
}
11-
12-
variable "availability_zones" {
13-
type = list(string)
14-
default = ["eu-west-1a", "eu-west-1b", "eu-west-1c"]
15-
description = "Availability zones for the default Ireland region."
16-
}
17-
186
variable "bastion_instance_types" {
197
type = list(string)
208
description = "Bastion instance types used for spot instances."
@@ -80,11 +68,6 @@ variable "min_size" {
8068
default = 1
8169
}
8270

83-
variable "ssh_port" {
84-
description = "SSH port used to access a bastion host."
85-
default = 22
86-
}
87-
8871
variable "ingress_cidr_blocks" {
8972
type = list(string)
9073
description = "List of CIDR ranges to allow ssh access at security group level. Defaults to 0.0.0.0/0"
@@ -205,8 +188,8 @@ variable "encrypted" {
205188

206189
variable "volume_type" {
207190
type = string
208-
description = "The type of volume. Can be `standard`, `gp2`, or `io1`."
209-
default = "gp2"
191+
description = "The volume type. Can be one of standard, 'gp2', 'gp3', 'io1', 'io2', 'sc1' or 'st1'."
192+
default = "gp3"
210193
}
211194

212195
variable "time_zone" {

0 commit comments

Comments
 (0)