-
Notifications
You must be signed in to change notification settings - Fork 266
Apply 'extra tags' to autoscaling groups #1314
Conversation
64cce88
to
1b16a5a
Compare
installer/frontend/cluster-config.js
Outdated
const extraAutoScalingTags = {}; | ||
_.each(cc[AWS_TAGS], ({key, value}) => { | ||
if(key && value) { | ||
extraAutoScalingTags.key = key; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would also be OK to dump these three lines into the loop above.
edit:
It looks like extraAutoScalingTags
should be an array and you should push objects onto it like so:
const extraAutoScalingTags = [];
...
extraAutoScalingTags.push({key, value, propagate_at_launch: true});
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixing now.
I kept the autoscaling tags in a separate loop to keep the code clean.
39db2d3
to
5db4011
Compare
@@ -54,6 +54,13 @@ | |||
"value": "testing" | |||
} | |||
], | |||
"awsASGTags": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should remove "awsASGTags" from both progress files (which will also get rid of the console.errors) - you'd only want these here if we were storing the tags in memory at this location, but we only really want to output a new tfvar.
installer/frontend/cluster-config.js
Outdated
@@ -20,6 +20,7 @@ export const AWS_SECRET_ACCESS_KEY = 'awsSecretAccessKey'; | |||
export const AWS_SESSION_TOKEN = 'awsSessionToken'; | |||
export const AWS_SSH = 'aws_ssh'; | |||
export const AWS_TAGS = 'awsTags'; | |||
export const AWS_ASG_TAGS = 'awsASGTags'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is being used.
5db4011
to
cb4f436
Compare
Revert "Merge pull request #1314 from estroz/autoscaling-group-tags"
installer/frontend/: 'tectonic_autoscaling_group_extra_tags' will be populated by data from user-provided tags.
User-defined 'extra' tags are not being applied to autoscaling groups because tag data doesn't populate
tectonic_autoscaling_group_extra_tags
.Applies to #1115