Skip to content

feat: Update api-gateway-rest-api to 0.8.0 #16

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

Conversation

pablotp
Copy link
Contributor

@pablotp pablotp commented Mar 13, 2025

what

why

  • To be able to set the variables:
    • stage_name
    • throttling_burst_limit
    • throttling_rate_limit

references

Summary by CodeRabbit

  • New Features
    • Updated the API gateway module to version 0.8.0, reflecting the latest enhancements.
    • Introduced new configuration options for specifying the stage name and setting throttling limits for API requests, enabling more flexible control over API performance.

Copy link

coderabbitai bot commented Mar 13, 2025

Walkthrough

This pull request updates the version number of the api_gateway_rest_api module across several documentation and configuration files. The version is raised from 0.3.1 to 0.8.0 in the relevant files, and new configuration options are introduced. Specifically, three new parameters—stage_name, throttling_burst_limit, and throttling_rate_limit—are added to enhance API Gateway configuration. Corresponding variable declarations for these parameters are also included.

Changes

File(s) Change Summary
README.md
README.yaml
Updated module version api_gateway_rest_api from 0.3.1 to 0.8.0
src/README.md
src/main.tf
- Updated module version from 0.3.1 to 0.8.0
- Added new parameters: stage_name, throttling_burst_limit, and throttling_rate_limit
src/variables.tf Added new variable declarations for stage_name (string, default ""), throttling_burst_limit (number, default -1), and throttling_rate_limit (number, default -1)

Sequence Diagram(s)

sequenceDiagram
    participant Dev as Developer
    participant Var as Variables (src/variables.tf)
    participant File as Configuration Files (src/main.tf & src/README.md)
    participant API as API Gateway Module
    Dev->>Var: Define new parameters<br/>(stage_name, throttling limits)
    Var->>File: Provide configuration values
    File->>API: Instantiate module with updated version and parameters
    API-->>File: Configure API gateway using inputs
Loading

Poem

I'm a rabbit with a skip in my code,
Hopping through versions on a winding road.
New parameters bloom like springtime delight,
Stage names and throttles make my heart light.
In each file I scurry with joyous pace,
Celebrating changes with a happy, twitchy face! 🐇
Leaping ahead, code and rabbit in grace!


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

mergify bot commented Mar 13, 2025

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🟢 Require terratest

Wonderful, this rule succeeded.

This rule require terratest status

  • check-success = test/terratest

@pablotp pablotp force-pushed the update-api-gateway-rest-api branch from f11fa06 to 9013a99 Compare March 13, 2025 10:56
@mergify mergify bot added the needs-test Needs testing label Mar 13, 2025
@pablotp pablotp force-pushed the update-api-gateway-rest-api branch from 9013a99 to b76ceec Compare March 13, 2025 10:58
@pablotp pablotp force-pushed the update-api-gateway-rest-api branch 2 times, most recently from 960c063 to 86d5a5c Compare April 2, 2025 09:54
@pablotp pablotp changed the title feat: Update api-gateway-rest-api to 0.7.2 feat: Update api-gateway-rest-api to 0.8.0 Apr 2, 2025
@pablotp pablotp marked this pull request as ready for review April 2, 2025 09:55
@pablotp pablotp requested review from a team as code owners April 2, 2025 09:55
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (5)
README.md (1)

140-140: Alt Text for Image:
Consider adding an alt attribute to the image on this line to improve accessibility and adhere to markdownlint guidelines.

src/variables.tf (3)

136-140: Addition of Variable stage_name:
A new variable stage_name is defined with a default of an empty string. Consider whether an empty string is the best default or if null might better indicate the absence of a stage name.


142-146: Definition of throttling_burst_limit:
The new variable is introduced with a default value of -1. Please verify that the downstream module interprets -1 as the intended signal (e.g., to disable a limit) or if a different default (such as null) would be more appropriate.


148-152: Definition of throttling_rate_limit:
Similarly, this variable is defined with a default of -1. Confirm that using -1 is the correct approach within the module logic and consider documenting its semantic meaning (e.g., “no throttling limit”) if it isn’t already clear.

src/README.md (1)

67-67: Module Version Discrepancy:
The module version here is set to "0.7.2", which differs from the "0.8.0" update in the other documentation files. Please verify whether this discrepancy is intentional or if it should be aligned with the other files.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2877d0f and 86d5a5c.

📒 Files selected for processing (5)
  • README.md (1 hunks)
  • README.yaml (1 hunks)
  • src/README.md (4 hunks)
  • src/main.tf (2 hunks)
  • src/variables.tf (1 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
src/README.md

140-140: Images should have alternate text (alt text)
null

(MD045, no-alt-text)

⏰ Context from checks skipped due to timeout of 90000ms (3)
  • GitHub Check: Mergify Merge Protections
  • GitHub Check: Mergify Merge Protections
  • GitHub Check: Summary
🔇 Additional comments (6)
README.yaml (1)

63-63: Module Version Update in Documentation:
The version for the api_gateway_rest_api module is updated to "0.8.0", which aligns with the PR objective. Please verify that all downstream documentation and references consistently reflect this change.

README.md (2)

67-67: Module Version Consistency:
The module version is updated to "0.8.0" here, which is in line with the top-level documentation update. Ensure that all references across the repository match this version.


115-120: New Input Parameters Documentation:
The new input parameters—stage_name, throttling_burst_limit, and throttling_rate_limit—are now included in the Inputs table with appropriate types and default values. This addition clearly informs users about the enhanced API Gateway configuration options.

🧰 Tools
🪛 LanguageTool

[grammar] ~117-~117: Did you mean “too false to”?
Context: ..."> enabled | Set to false to prevent the module from creating any re...

(TOO_ADJECTIVE_TO)

src/main.tf (2)

13-13: Module Version Update in Terraform Configuration:
The api_gateway_rest_api module’s version is now set to "0.8.0". This update should enable the new features from the upgraded module. Ensure that downstream resources and dependencies reflect this version change.


25-27: Passing New Parameters to the Module:
The addition of stage_name, throttling_burst_limit, and throttling_rate_limit in the module configuration is correctly implemented. Please confirm that the targeted module version supports these parameters as mentioned in the release notes.

src/README.md (1)

115-120: Incorporation of New Inputs:
The newly added inputs for stage_name, throttling_burst_limit, and throttling_rate_limit are documented clearly. This provides users with the enhanced configuration options described in the PR objectives.

@pablotp pablotp force-pushed the update-api-gateway-rest-api branch from 86d5a5c to b24f54e Compare April 2, 2025 10:11
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
src/README.md (1)

140-140: Add Alternative Text to Image Tag

The image tag lacks alternative text, which is important for accessibility and to address markdownlint (MD045) warnings. Consider adding descriptive alt text. For example:

- [<img src="https://cloudposse.com/logo-300x69.svg" height="32" align="right"/>](https://cpco.io/component)
+ [<img src="https://cloudposse.com/logo-300x69.svg" alt="Cloud Posse logo" height="32" align="right"/>](https://cpco.io/component)
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

140-140: Images should have alternate text (alt text)
null

(MD045, no-alt-text)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 86d5a5c and b24f54e.

📒 Files selected for processing (5)
  • README.md (1 hunks)
  • README.yaml (1 hunks)
  • src/README.md (4 hunks)
  • src/main.tf (2 hunks)
  • src/variables.tf (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (4)
  • README.yaml
  • README.md
  • src/variables.tf
  • src/main.tf
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
src/README.md

140-140: Images should have alternate text (alt text)
null

(MD045, no-alt-text)

⏰ Context from checks skipped due to timeout of 90000ms (3)
  • GitHub Check: Mergify Merge Protections
  • GitHub Check: Mergify Merge Protections
  • GitHub Check: Summary
🔇 Additional comments (4)
src/README.md (4)

67-67: Module Version Update to 0.8.0

The module version for api_gateway_rest_api has been updated to 0.8.0 as intended. Please ensure that all downstream components and documentation references are adjusted accordingly if needed.


115-115: New Input Parameter stage_name Added

The new input variable stage_name (defaulting to an empty string) is now defined. This addition increases the flexibility in configuring API stages. Confirm that consumers of this module are aware of and handle this parameter appropriately.


118-118: New Input Parameter throttling_burst_limit Added

The input variable throttling_burst_limit has been introduced with a default value of -1. This will allow users to optionally specify a burst limit for API throttling. Please verify that the module’s logic correctly interprets the default value.


119-119: New Input Parameter throttling_rate_limit Added

The addition of throttling_rate_limit (defaulting to -1) further enhances control over throttling settings. Verify that the consuming configurations correctly handle this value to avoid unexpected behavior.

@GabisCampana
Copy link

@goruha

@goruha
Copy link
Contributor

goruha commented Apr 7, 2025

/terratest

Copy link

github-actions bot commented Apr 7, 2025

There are no real tests for this component. So we set terratest statuses to successful execution without running any tests

@goruha goruha merged commit 68b6de3 into cloudposse-terraform-components:main Apr 7, 2025
19 checks passed
Copy link

github-actions bot commented Apr 7, 2025

These changes were released in v1.535.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-test Needs testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants