s

    stocky-petabyte-29883

    2 months ago
    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

    2 months ago
    that looks like quite an old guest post. What are you trying to achieve?
    s

    stocky-petabyte-29883

    2 months ago
    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

    2 months ago
    this is a network problem, you need a bastion host or a vpn
    s

    stocky-petabyte-29883

    2 months ago
    Is it possible to do with pulumi?
    b

    billowy-army-68599

    2 months ago
    create a vpn? yes, you can use AWS Client VPN for example, or another vpn provider
    s

    stocky-petabyte-29883

    2 months ago
    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

    2 months ago
    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

    2 months ago
    If I create a bastion host, can i create a tunnel during the pulumi execution to talk to it?
    b

    billowy-army-68599

    2 months ago
    yep, using
    pulumi-command
    s

    stocky-petabyte-29883

    2 months ago
    Cool I ll check it out. Thank you