Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tf_mod_aws_eks_cluster
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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_eks_cluster
Commits
bc5669dd
Commit
bc5669dd
authored
Aug 28, 2018
by
Chris Merrett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable optional custom AMI's
parent
06486105
Pipeline
#5326
passed with stage
in 16 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
variables.tf
variables.tf
+5
-0
workers.tf
workers.tf
+1
-1
No files found.
variables.tf
View file @
bc5669dd
variable
"ami_id"
{
description
=
"Custom AMI ID for the EKS cluster; defaults to latest Amazon-provided AMI if empty"
default
=
""
}
variable
"cluster_name"
{
description
=
"Name for the EKS cluster"
}
...
...
workers.tf
View file @
bc5669dd
...
...
@@ -2,7 +2,7 @@ resource "aws_launch_configuration" "workers" {
associate_public_ip_address
=
false
ebs_optimized
=
"
${
var
.
ebs_optimized_workers
}
"
iam_instance_profile
=
"
${
aws_iam_instance_profile
.
workers
.
name
}
"
image_id
=
"
${data
.
aws_ami
.
eks_worker
.
id
}
"
image_id
=
"
${
var
.
ami_id
!=
""
?
var
.
ami_id
:
data
.
aws_ami
.
eks_worker
.
id
}
"
instance_type
=
"
${
var
.
instance_type
}
"
name_prefix
=
"
${
var
.
cluster_name
}
-eks-workers-"
security_groups
=
[
"
${
aws_security_group
.
workers
.
id
}
"
]
...
...
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