Skip to content

Conversation

@joshuamkite
Copy link

Description

Add include_default_tag boolean variable to control whether the default terraform-aws-modules = "apigateway-v2" tag is included in resources.

Based on the include_default_tag variable from the terraform-aws-modules/lambda module.

Changes

  • Add include_default_tag variable (default: true)
  • Update tag merge logic in main.tf
  • Add test case in examples/complete-http/main.tf
  • Update terraform-docs in README

Usage

module "api_gateway" {
  source = "terraform-aws-modules/apigateway-v2/aws"
  
  include_default_tag = false
  
  tags = {
    Environment = "production"
  }
}

Backward compatible - defaults to true to maintain existing behavior.

@joshuamkite joshuamkite changed the title Feature/default tag bool feat: default tag bool Oct 25, 2025
@joshuamkite joshuamkite changed the title feat: default tag bool fix: default tag bool Oct 25, 2025
@joshuamkite joshuamkite changed the title fix: default tag bool feat: Add include_default_tag variable Oct 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant