sparse-intern-71089
06/07/2022, 8:46 PMgreat-queen-39697
06/07/2022, 9:06 PMdamp-fall-55922
06/07/2022, 9:09 PM__init__.py
damp-fall-55922
06/07/2022, 9:10 PMgreat-queen-39697
06/07/2022, 9:10 PMdamp-fall-55922
06/07/2022, 9:10 PMmycomponent/__init__.py
and then wrapped it in `class MyCustomFargateApp(pulumi.ComponentResource):``great-queen-39697
06/07/2022, 9:11 PMpulumi up
(or preview) from the root, or from mycomponent
?damp-fall-55922
06/07/2022, 9:11 PM__main__.py
I referenced it as:
app = mycomponent.MyCustomFargateApp(ServiceName, ImageUrl, HealthCheckPath, DesiredCount=DesiredCount, AppListenPort=AppListenPort)
damp-fall-55922
06/07/2022, 9:11 PMgreat-queen-39697
06/07/2022, 9:12 PMdamp-fall-55922
06/07/2022, 9:13 PMpulumi_aws.lb.ListenerRule
great-queen-39697
06/07/2022, 9:13 PMdamp-fall-55922
06/07/2022, 9:13 PMgreat-queen-39697
06/07/2022, 9:13 PMgreat-queen-39697
06/07/2022, 9:14 PMdamp-fall-55922
06/07/2022, 9:14 PMgreat-queen-39697
06/07/2022, 9:14 PMdamp-fall-55922
06/07/2022, 9:15 PMgreat-queen-39697
06/07/2022, 9:15 PMdamp-fall-55922
06/07/2022, 9:15 PMgreat-queen-39697
06/07/2022, 9:15 PMgreat-queen-39697
06/07/2022, 9:15 PMdamp-fall-55922
06/07/2022, 9:15 PMgreat-queen-39697
06/07/2022, 9:16 PMbillowy-army-68599
pulumi stack export
(which should give you a JSON representation of the entire project) and look through it for the offending resource? it should have a provider associated with itbillowy-army-68599
damp-fall-55922
06/07/2022, 10:46 PMdamp-fall-55922
06/07/2022, 10:49 PMpulumi_aws.lb.ListenerRule
implementation and uncommented the pulumi_aws_native.elasticloadbalancingv2.ListenerRule
implementation and this is what pulumi up
looks like https://l.hr/GRqqe9damp-fall-55922
06/07/2022, 10:51 PMdamp-fall-55922
06/07/2022, 10:53 PMdamp-fall-55922
06/07/2022, 10:53 PMdamp-fall-55922
06/07/2022, 10:54 PMbillowy-army-68599
billowy-army-68599
damp-fall-55922
06/07/2022, 11:00 PMdamp-fall-55922
06/07/2022, 11:00 PMopts=pulumi.ResourceOptions(parent=self, version="0.18.0")
it works exactly like I’d want it to 😄damp-fall-55922
06/07/2022, 11:00 PMdamp-fall-55922
06/07/2022, 11:01 PMdamp-fall-55922
06/07/2022, 11:01 PMdamp-fall-55922
06/07/2022, 11:01 PMopts=child_opts
over and over again — it failsdamp-fall-55922
06/07/2022, 11:02 PMopts=pulumi.ResourceOptions(parent=self)
, it works finedamp-fall-55922
06/07/2022, 11:02 PMaws
package versiondamp-fall-55922
06/07/2022, 11:04 PMdamp-fall-55922
06/07/2022, 11:05 PMdamp-fall-55922
06/07/2022, 11:07 PMpulumi.ResourceOptions
, and then pass that into a mixture of pulumi_aws
and pulumi_aws_native
resources via opts=my_opts
, the first one will
if opts.version is None:
opts.version = _utilities.get_version()
which will set “version” on the my_opts object and that will then get passed into the next resource which will reuse the version as if it was hardcodedbillowy-army-68599
damp-fall-55922
06/07/2022, 11:12 PMdamp-fall-55922
06/07/2022, 11:14 PMdamp-fall-55922
06/07/2022, 11:20 PMdamp-fall-55922
06/07/2022, 11:22 PMgreat-queen-39697
06/08/2022, 3:41 PMgreat-queen-39697
06/08/2022, 3:44 PMdamp-fall-55922
06/08/2022, 3:44 PMbillowy-army-68599