generated from cloudposse/terraform-example-module
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support AWS SSM tailscaled state #41
Merged
Merged
Changes from 11 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
f714468
feat: support extra arguments for tailscaled
gberenice 1ed0f2d
Merge branch 'main' into feature/add-extra-flags
gberenice 2464faf
chore: adds prettierignore
gberenice 7fb22e4
Merge branch 'feature/add-extra-flags' of github.com:masterpointio/te…
gberenice 34a1a0a
chore: update trunk less often
gberenice 9aef7ae
chore: update git ignore list
gberenice d9bc3b0
feat: support aws ssm state
gberenice 66702c5
feat: adds CRabbit config
gberenice d179278
chore: fix merge conflicts
gberenice 574177c
chore: remove the comment
gberenice 09b372c
feat: support configuring ASG size and capacity
gberenice a497d78
feat: add SSM write permissions
gberenice 9d3f884
chore: description suggestion
gberenice File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
# Docs: https://docs.coderabbit.ai/configure-coderabbit | ||
# Schema: https://coderabbit.ai/integrations/schema.v2.json | ||
# Support: https://discord.gg/GsXnASn26c | ||
|
||
language: en | ||
|
||
tone_instructions: | | ||
Provide feedback in a professional, friendly, constructive, and concise tone. | ||
Offer clear, specific suggestions and best practices to help enhance the code quality and promote learning. | ||
|
||
early_access: true | ||
|
||
knowledge_base: | ||
# The scope of learnings to use for the knowledge base. | ||
# `local` uses the repository's learnings, | ||
# `global` uses the organization's learnings, | ||
# `auto` uses repository's learnings for public repositories and organization's learnings for private repositories. | ||
# Default value: `auto` | ||
learnings: | ||
scope: global | ||
issues: | ||
scope: global | ||
pull_requests: | ||
scope: global | ||
|
||
reviews: | ||
profile: chill | ||
auto_review: | ||
# Ignore reviewing if the title of the pull request contains any of these keywords (case-insensitive) | ||
ignore_title_keywords: | ||
- wip | ||
- draft | ||
- test | ||
# Set the commit status to 'pending' when the review is in progress and 'success' when it is complete. | ||
commit_status: false | ||
# Post review details on each review. Additionally, post a review status when a review is skipped in certain cases. | ||
review_status: false | ||
path_instructions: | ||
- path: "**/*.tf" | ||
instructions: | | ||
You're a Terraform expert who has thoroughly studied all the documentation from Hashicorp https://developer.hashicorp.com/terraform/docs and OpenTofu https://opentofu.org/docs/. | ||
You have a strong grasp of Terraform syntax and prioritize providing accurate and insightful code suggestions. | ||
As a fan of the Cloud Posse / SweetOps ecosystem, you incorporate many of their best practices https://docs.cloudposse.com/best-practices/terraform/ while balancing them with general Terraform guidelines. | ||
tools: | ||
# By default, all tools are enabled. | ||
# Masterpoint uses Trunk (https://trunk.io) so we do not need a lot of this feedback due to overlap. | ||
shellcheck: | ||
enabled: false | ||
ruff: | ||
enabled: false | ||
markdownlint: | ||
enabled: false | ||
github-checks: | ||
enabled: false | ||
languagetool: | ||
enabled: false | ||
biome: | ||
enabled: false | ||
hadolint: | ||
enabled: false | ||
swiftlint: | ||
enabled: false | ||
phpstan: | ||
enabled: false | ||
golangci-lint: | ||
enabled: false | ||
yamllint: | ||
enabled: false | ||
gitleaks: | ||
enabled: false | ||
checkov: | ||
enabled: false | ||
detekt: | ||
enabled: false | ||
eslint: | ||
enabled: false | ||
rubocop: | ||
enabled: false | ||
buf: | ||
enabled: false | ||
regal: | ||
enabled: false | ||
actionlint: | ||
enabled: false | ||
pmd: | ||
enabled: false | ||
cppcheck: | ||
enabled: false | ||
circleci: | ||
enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
💡 Codebase verification
Add validation blocks to enforce ASG size constraints
The variables are defined with appropriate types and defaults (max_size=2, min_size=1, desired_capacity=1), which satisfy the basic constraint. However, to prevent misconfiguration, consider adding validation blocks to enforce:
Example locations needing attention:
variables.tf
: Add validation blocks tomax_size
,min_size
, anddesired_capacity
variables🔗 Analysis chain
LGTM! Verify ASG size constraints
The ASG configuration parameters are correctly added. However, ensure that the values satisfy: min_size ≤ desired_capacity ≤ max_size.
Let's verify the variable constraints:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 296
Script:
Length of output: 599