-
Notifications
You must be signed in to change notification settings - Fork 4
Conversation
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.
Looks good, with minor changes
terraform/main.mk
Outdated
then echo "\n\033[32m[OK]\033[0m $(item) limit"; \ | ||
else echo "\n\033[33m[WARNING]\033[0m $(item) limit \(Value:$(shell echo $(AWS_LIMITS_LIST) | $(JQ) -r '.$(item)[].value')\) exceeded! \ | ||
Current value:$(shell grep -c "+ resource \"$(item)\"" $(ENV_DIR)/tfplan.txt) \ | ||
\033[33m To request a service quota increase:\033[0m \033[36m aws service-quotas request-service-quota-increase --service-code $(shell echo $(AWS_LIMITS_LIST) | $(JQ) -r '.$(item)[].service') --quota-code $(shell echo $(AWS_LIMITS_LIST) | $(JQ) -r '.$(item)[].quotacode') --desired-value \<your_desired_value\> \033[0m"; fi ))) ) |
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.
Let's add another newline before the actual commands list
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.
@AutomationD you know yesterday I spent time to try to format output with new lines but due to the echo
at the begining of AWS_LIMITS
command it doesn't work, any ideas how to make output info with new lines?
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.
@igorkotof try \n
?
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.
@AutomationD I tried - no result, also tried to replace echo
with printf
- didn't work as well :(
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.
@AutomationD Output fixed, please approve
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.
Looks good!
Find ability to estimate if all there are any limits that we would need to raise to deploy infra
Testing: