Have Consul Intentions use the consul provider
Previously we were overriding the opts argument for each consul
intention. This wasn't discovered since during testing we wanted the
default localhost:8500, but now that its being executed from a
pipeline, the pipeline uses the wrong address.
@@ -36,5 +36,7 @@ class ConsulIntentions(pulumi.ComponentResource):
kind=intention["Kind"],
name=intention["Name"],
config_json=json.dumps({"Sources": intention["Sources"]}),
- opts=pulumi.ResourceOptions(parent=self),
+ opts=pulumi.ResourceOptions.merge(
+ opts, pulumi.ResourceOptions(parent=self)
+ ),
)
