Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
terraform-aws-ec2-instance
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Terraform Modules
terraform-aws-ec2-instance
Commits
b06e3766
Unverified
Commit
b06e3766
authored
Aug 26, 2021
by
schniber
Committed by
GitHub
Aug 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Add support for EBS GP3 throughput (#233)
parent
4fa103f9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
main.tf
examples/basic/main.tf
+4
-2
main.tf
main.tf
+3
-1
No files found.
examples/basic/main.tf
View file @
b06e3766
...
...
@@ -93,8 +93,9 @@ module "ec2" {
enable_volume_tags
=
false
root_block_device
=
[
{
volume_type
=
"gp
2
"
volume_type
=
"gp
3
"
volume_size
=
10
throughput
=
200
tags
=
{
Name
=
"my-root-block"
}
...
...
@@ -104,8 +105,9 @@ module "ec2" {
ebs_block_device
=
[
{
device_name
=
"/dev/sdf"
volume_type
=
"gp
2
"
volume_type
=
"gp
3
"
volume_size
=
5
throughput
=
200
encrypted
=
true
kms_key_id
=
aws_kms_key
.
this
.
arn
}
...
...
main.tf
View file @
b06e3766
...
...
@@ -35,6 +35,7 @@ resource "aws_instance" "this" {
kms_key_id
=
lookup
(
root_block_device
.
value
,
"kms_key_id"
,
null
)
volume_size
=
lookup
(
root_block_device
.
value
,
"volume_size"
,
null
)
volume_type
=
lookup
(
root_block_device
.
value
,
"volume_type"
,
null
)
throughput
=
lookup
(
root_block_device
.
value
,
"throughput"
,
null
)
tags
=
lookup
(
root_block_device
.
value
,
"tags"
,
null
)
}
}
...
...
@@ -50,6 +51,7 @@ resource "aws_instance" "this" {
snapshot_id
=
lookup
(
ebs_block_device
.
value
,
"snapshot_id"
,
null
)
volume_size
=
lookup
(
ebs_block_device
.
value
,
"volume_size"
,
null
)
volume_type
=
lookup
(
ebs_block_device
.
value
,
"volume_type"
,
null
)
throughput
=
lookup
(
ebs_block_device
.
value
,
"throughput"
,
null
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment