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
e8a43eee
Commit
e8a43eee
authored
Sep 12, 2018
by
Chris Merrett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Worker lifecycle and permissions additions
parent
140c11e0
Pipeline
#5391
passed with stage
in 16 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
data.tf
data.tf
+3
-1
workers.tf
workers.tf
+8
-0
No files found.
data.tf
View file @
e8a43eee
...
...
@@ -75,10 +75,12 @@ data "aws_iam_policy_document" "workers_autoscaling" {
actions
=
[
"autoscaling:DescribeAutoScalingGroups"
,
"autoscaling:DescribeAutoScalingInstances"
,
"autoscaling:DescribeLaunchConfigurations"
,
"autoscaling:DescribeTags"
,
"autoscaling:GetAsgForInstance"
,
"autoscaling:SetDesiredCapacity"
,
"autoscaling:TerminateInstanceInAutoScalingGroup"
,
"autoscaling:
DescribeLaunchConfigurations
"
,
"autoscaling:
UpdateAutoScalingGroup
"
,
"ec2:DescribeLaunchTemplateVersions"
,
]
...
...
workers.tf
View file @
e8a43eee
...
...
@@ -7,6 +7,10 @@ resource "aws_launch_configuration" "workers" {
name_prefix
=
"
${
var
.
cluster_name
}
-eks-workers-"
security_groups
=
[
"
${
aws_security_group
.
workers
.
id
}
"
]
user_data_base64
=
"
${
base64encode
(
data
.
template_file
.
workers_userdata
.
rendered
)
}
"
lifecycle
{
create_before_destroy
=
true
}
}
resource
"aws_autoscaling_group"
"workers"
{
...
...
@@ -40,6 +44,10 @@ resource "aws_autoscaling_group" "workers" {
value
=
"owned"
propagate_at_launch
=
true
}
lifecycle
{
ignore_changes
=
[
"desired_capacity"
]
}
}
resource
"aws_security_group"
"workers"
{
...
...
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