cold-jackal-89755
08/15/2023, 1:28 PM.env file to a python_awslambda. We are already using a macro so because we have some docker lambdas and some just zips. I believe I have it set up right, but I'm wondering if I should be seeing the .env file inside the zip or is this just something that pex handles? If I run pants package and then unzip the /dist/lambda.zip I don't see the file in there.late-advantage-75311
08/15/2023, 2:27 PMcold-jackal-89755
08/15/2023, 2:29 PMcold-jackal-89755
08/15/2023, 2:59 PMāāā service
ā āāā lambda_code
ā ā āāā infrastructure.py
ā ā āāā runtime
ā ā āāā BUILD
ā ā āāā lambda_function.py
āāā config
ā āāā __init__.py
ā āāā .dev.envcold-jackal-89755
08/15/2023, 3:00 PMfile(
name="env",
source=f"config/.{env('STAGE')}.env",
)cold-jackal-89755
08/15/2023, 3:01 PMservice/lambda_code/runtime/config/.dev.envcold-jackal-89755
08/15/2023, 3:01 PMlate-advantage-75311
08/15/2023, 4:02 PMfile would not be added to an archive like a python_awslambda. Could this be the issue?cold-jackal-89755
08/15/2023, 4:06 PMresource Is there a way to traverse up a directory from the BUILD file though?cold-jackal-89755
08/15/2023, 4:07 PMlate-advantage-75311
08/15/2023, 4:10 PMlate-advantage-75311
08/15/2023, 4:10 PMlate-advantage-75311
08/15/2023, 4:10 PMcold-jackal-89755
08/15/2023, 4:11 PMlate-advantage-75311
08/15/2023, 4:11 PMcold-jackal-89755
08/15/2023, 4:12 PMāāā service
ā āāā lambda_code
ā ā āāā infrastructure.py
ā ā āāā runtime
ā ā āāā BUILD
ā ā āāā lambda_function.py
āāā service2
ā āāā lambda_code
ā ā āāā infrastructure.py
ā ā āāā runtime
ā ā āāā BUILD
ā ā āāā lambda_function.py
āāā config
ā āāā __init__.py
ā āāā .dev.envcold-jackal-89755
08/15/2023, 4:12 PMlate-advantage-75311
08/15/2023, 4:13 PMcold-jackal-89755
08/15/2023, 4:14 PM