https://pulumi.com logo
Title
h

high-morning-17948

01/09/2023, 4:07 PM
Is there a way to upload a file to EFS after creating with pulumi sdk. The purpose is that a Fargate Task Contianer needs a config file when it starts. I want to init the EFS after creation with each of the config files for each of the services during deployment. I have the config file as part of the github repo.
d

dry-keyboard-94795

01/09/2023, 4:50 PM
hmm, tough one. They're only really mountable from within the VPC. You could setup a lambda function to do it, and call
aws.lambda.Invocation
from inside pulumi. https://www.pulumi.com/registry/packages/aws/api-docs/lambda/invocation/
h

high-morning-17948

01/09/2023, 4:55 PM
I use paramstore for env variables config. Is that the docker images I'm using use a config file for some setup
Is there a way to do it wtih S3
d

dry-keyboard-94795

01/09/2023, 4:56 PM
you could copy the envvars to the correct file as part of an entrypoint script
h

high-morning-17948

01/09/2023, 4:56 PM
?
Do you know any example that uses this approach so I can use it for reference?
d

dry-keyboard-94795

01/09/2023, 5:10 PM
not one to hand, but the docker docs include some guidance https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#entrypoint
h

high-morning-17948

01/09/2023, 6:00 PM
Thanks for the help, @dry-keyboard-94795