Hi I am trying to create an aurora instance via pu...
# general
s
Hi I am trying to create an aurora instance via pulumi aws provider and then use the myql provider to provision a user. I am following this document here, https://www.pulumi.com/blog/managing-your-mysql-databases-with-pulumi/ In the example it talks about adding vpc for the cluster but no mention of how to setup the mysql provider with it
b
that looks like quite an old guest post. What are you trying to achieve?
s
I have an aurora instance inside a private vpc, I want to connect to it via a mysql provider and create a user and assign permissions
b
this is a network problem, you need a bastion host or a vpn
s
Is it possible to do with pulumi?
b
create a vpn? yes, you can use AWS Client VPN for example, or another vpn provider
s
no, I mean connect to it using the mysql provider, I would like to have all of this in one single pulumi up if possible
b
it’s possible to achieve that yes, but it requires you implementing some network routing mechanism like a VPN or a bastion host. the mysql provider just connects to whatever address you provide it with, if you can’t reach that address because it’s private, it won’t be possible in one pulumi up
s
If I create a bastion host, can i create a tunnel during the pulumi execution to talk to it?
b
yep, using
pulumi-command
s
Cool I ll check it out. Thank you