Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

terraform.limits #115

Merged
merged 5 commits into from
Jan 27, 2021
Merged

terraform.limits #115

merged 5 commits into from
Jan 27, 2021

Conversation

igorkotof
Copy link
Contributor

@igorkotof igorkotof commented Jan 20, 2021

Find ability to estimate if all there are any limits that we would need to raise to deploy infra

Testing:
asciicast

@igorkotof igorkotof requested a review from AutomationD January 20, 2021 21:45
Copy link
Contributor

@AutomationD AutomationD left a 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 Show resolved Hide resolved
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 ))) )
Copy link
Contributor

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

Copy link
Contributor Author

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?

Copy link
Contributor

@AutomationD AutomationD Jan 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@igorkotof try \n ?

Copy link
Contributor Author

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 :(

Copy link
Contributor Author

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
image

Copy link
Contributor

@AutomationD AutomationD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@igorkotof igorkotof merged commit ba24813 into master Jan 27, 2021
@igorkotof igorkotof deleted the feature/aws-service-limits branch January 27, 2021 15:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants