https://pulumi.com logo
Title
s

stocky-petabyte-29883

07/25/2022, 5:25 PM
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

billowy-army-68599

07/25/2022, 5:30 PM
that looks like quite an old guest post. What are you trying to achieve?
s

stocky-petabyte-29883

07/25/2022, 5:32 PM
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

billowy-army-68599

07/25/2022, 5:36 PM
this is a network problem, you need a bastion host or a vpn
s

stocky-petabyte-29883

07/25/2022, 5:52 PM
Is it possible to do with pulumi?
b

billowy-army-68599

07/25/2022, 5:53 PM
create a vpn? yes, you can use AWS Client VPN for example, or another vpn provider
s

stocky-petabyte-29883

07/25/2022, 6:01 PM
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

billowy-army-68599

07/25/2022, 6:17 PM
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

stocky-petabyte-29883

07/25/2022, 6:19 PM
If I create a bastion host, can i create a tunnel during the pulumi execution to talk to it?
b

billowy-army-68599

07/25/2022, 6:22 PM
yep, using
pulumi-command
s

stocky-petabyte-29883

07/25/2022, 6:23 PM
Cool I ll check it out. Thank you