Skip to content

Commit

Permalink
fix(path_id) look up path_id from product_id
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Feb 27, 2026
1 parent 3242413 commit 69f6da1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions modules/ec2/data.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Data source to get the product and its valid paths
data "aws_servicecatalog_product" "ec2_product" {
id = var.product_id
accept_language = "en"
}

data "aws_vpc" "vpc" {
count = var.vpc_name != "" ? 1 : 0
filter {
Expand Down
2 changes: 1 addition & 1 deletion modules/ec2/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module "ec2" {
# Service Catalog configuration
portfolio_id = var.portfolio_id
product_id = var.product_id
path_id = var.path_id
path_id = data.aws_servicecatalog_product.ec2_product.paths[0].id
accept_language = var.accept_language
timeout = var.timeout
ignore_errors = var.ignore_errors
Expand Down

0 comments on commit 69f6da1

Please sign in to comment.