Skip to content

Commit ded8eed

Browse files
committed
Add additional dependancy for portfolio association to increase gap between role constraint creation
1 parent 6f5df1a commit ded8eed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

infra/service_catalog.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def __init__(
9999
principal_arn=execution_role_arn.value_as_string,
100100
principal_type="IAM",
101101
)
102+
portfolio_association.add_depends_on(product)
102103

103104
# Ensure we run the LaunchRoleConstrait last as there are timing issues on product/portfolio being created
104105
role_constraint = aws_servicecatalog.CfnLaunchRoleConstraint(

0 commit comments

Comments
 (0)