Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tf_mod_aws_efs_backup
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
steamhaus
tf_mod_aws_efs_backup
Commits
3433b111
Commit
3433b111
authored
Mar 12, 2018
by
Adrian Horrocks
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changing backup ec2 instance type to gp2
parent
1ba0f89b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
asg.tf
asg.tf
+2
-0
variables.tf
variables.tf
+10
-0
No files found.
asg.tf
View file @
3433b111
...
...
@@ -31,6 +31,7 @@ data "template_file" "userdata" {
efs_mount_target
=
"
${
var
.
efs_mount_target
}
"
s3_bucket_path
=
"
${
var
.
s3_bucket_path
==
""
?
join
(
""
,
aws_s3_bucket
.
efs_backup
.
*
.
id
)
:
var
.
s3_bucket_path
}
"
backup_archive_name
=
"
${
var
.
backup_archive_name
}
"
source_directory
=
"
${
var
.
source_directory
}
"
region
=
"
${data
.
aws_region
.
current
.
name
}
"
}
}
...
...
@@ -49,6 +50,7 @@ resource "aws_launch_configuration" "backup_efs_node" {
user_data
=
"
${data
.
template_file
.
userdata
.
rendered
}
"
root_block_device
{
volume_type
=
"
${
var
.
root_volume_type
}
"
volume_size
=
"
${
var
.
root_volume_size
}
"
}
}
...
...
variables.tf
View file @
3433b111
...
...
@@ -17,6 +17,11 @@ variable "instance_type" {
default
=
"t2.micro"
}
variable
"instance_block_device"
{
description
=
"The instance type of the backup instance"
default
=
"gp2"
}
variable
"security_groups"
{
description
=
"A list of security group IDs for the backup instance to be a member of"
type
=
"list"
...
...
@@ -60,6 +65,11 @@ variable "root_volume_size" {
default
=
10
}
variable
"root_volume_type"
{
description
=
"The type of storage the instance will be created with"
default
=
"gp2"
}
variable
"key_name"
{
description
=
"An optional SSH key pair to launch the backup instance with"
default
=
""
...
...
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