Is there any way to create an RDS instance, make i...
# general
b
Is there any way to create an RDS instance, make it publicly accessible, create a database (with
@pulumi/mysql
, for example) and then remove public access from the instance? I would like to automate database creation in RDS with pulumi, but don't want to make my instances publicly available. Right now the only alternative I see is using lambda.
I basically want the setup described here https://www.pulumi.com/blog/managing-your-mysql-databases-with-pulumi/#example-2-using-a-rds-instance, but without leaving the instance with
publiclyAccessible = true
afterwards
m
Did you ever find a solution to this? I ran into a similar issue, but am unable to use a lambda in the same VPC because of the note in the bottom of this document: https://www.pulumi.com/docs/tutorials/aws/serializing-functions/
Note that 
pulumi
 will not include 
@pulumi/...
 packages with the Lambda. These packages exist solely to provide deployment time functionality, and do not contain any code that can work properly at run time. They are automatically stripped from a Lambda both to prevent accidental usage and to help reduce the size of the uploaded Lambda.
b
no, I just used the 'name' parameter to create an initial db
👍 1