https://pulumi.com logo
#general
Title
# general
b

bored-river-53178

02/06/2020, 8:21 AM
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

millions-furniture-75402

05/19/2020, 1:22 PM
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

bored-river-53178

05/19/2020, 6:30 PM
no, I just used the 'name' parameter to create an initial db
👍 1