Tried to call get_server() on the coordinator of a Cluster
Example
import pulumi_azure_native.dbforpostgresql as apg
# ...
cluster = apg.Cluster(
f"{name}-cluster",
# Stuff here
)
cname = cluster.server_names.apply(
lambda names: [n for n in names if n.name.endswith('-c')][0]
)
coordinator = apg.get_server(env.resource_group.name, cname)
CLI
Version 3.106.0
Go Version go1.22.0
Go Compiler gc
Plugins
NAME VERSION
azure-native 2.29.0
azuread 5.47.1
python unknown
random 4.15.1
tailscale 0.14.0
Host
OS darwin
Version 14.3.1
Arch arm64
This project is written in python: executable='/Users/jamie/.local/share/virtualenvs/blount-z19IO5O9/bin/python3' version='3.12.1'
Current Stack: organization/deborah/dev
TYPE URN
[REDACTED]
Found no pending operations associated with dev
Backend
Name Jamies-MacBook-Pro.local
URL file://~
User jamie
Organizations
Token type personal
Dependencies:
NAME VERSION
mypy-extensions 1.0.0
nodeenv 1.8.0
pip 23.3.2
pulumi_azure_native 2.29.0
pulumi_azuread 5.47.1
pulumi_random 4.15.1
pulumi_tailscale 0.14.0
typing_extensions 4.9.0
xonsh 0.14.4
Pulumi locates its logs in /var/folders/wf/m1npswwj7013_hlxb2qx84j40000gn/T/ by default
Additional context
I'm ultimately trying to use Database and FirewallRule with my Cluster, but they want a server_name, not anything directly from the cluster.
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
What happened?
Tried to call
get_server()
on the coordinator of a ClusterExample
Output of
pulumi about
Additional context
I'm ultimately trying to use
Database
andFirewallRule
with myCluster
, but they want aserver_name
, not anything directly from the cluster.Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).