Skip to content

Commit

Permalink
promote path logic to product
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Feb 27, 2026
1 parent 4692efc commit c19d55e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 0 additions & 6 deletions modules/ec2/data.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# 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
4 changes: 4 additions & 0 deletions modules/product/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ data "aws_servicecatalog_provisioning_artifacts" "this" {
product_id = local.product_id
}

# Data source to get the product and its valid paths
data "aws_servicecatalog_launch_paths" "product" {
product_id = var.product_id
}
2 changes: 1 addition & 1 deletion modules/product/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resource "aws_servicecatalog_provisioned_product" "this" {
product_id = local.product_id
provisioning_artifact_id = local.provisioning_artifact_id
region = local.region
path_id = var.path_id
path_id = data.aws_servicecatalog_launch_paths.product.id
accept_language = var.accept_language
ignore_errors = var.ignore_errors
notification_arns = var.notification_arns
Expand Down

0 comments on commit c19d55e

Please sign in to comment.