forked from aws/aws-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow invoking built CDK synthesized templates (aws#3549)
* feat: allow invoking built CDK synthesized templates * run black * fixing testing issue * add unit testing to cover custom resource Id * run black * skip normalizing the resources that have been normalized before * apply pr comments * apply pr comments
- Loading branch information
Showing
14 changed files
with
827 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...uildcmd/asset.6598609927b272b36fdf01072092f9851ddcd1b41ba294f736ce77091f5cc456/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
ARG BASE_RUNTIME | ||
|
||
FROM public.ecr.aws/lambda/python:$BASE_RUNTIME | ||
|
||
ARG FUNCTION_DIR="/var/task" | ||
|
||
RUN mkdir -p $FUNCTION_DIR | ||
|
||
COPY main.py $FUNCTION_DIR | ||
|
||
COPY __init__.py $FUNCTION_DIR | ||
|
||
COPY requirements.txt $FUNCTION_DIR | ||
|
||
RUN python -m pip install -r $FUNCTION_DIR/requirements.txt -t $FUNCTION_DIR |
Empty file.
19 changes: 19 additions & 0 deletions
19
...a/buildcmd/asset.6598609927b272b36fdf01072092f9851ddcd1b41ba294f736ce77091f5cc456/main.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import numpy | ||
|
||
# from cryptography.fernet import Fernet | ||
|
||
|
||
def handler(event, context): | ||
|
||
# Try using some of the modules to make sure they work & don't crash the process | ||
# print(Fernet.generate_key()) | ||
|
||
return {"pi": "{0:.2f}".format(numpy.pi)} | ||
|
||
|
||
def first_function_handler(event, context): | ||
return "Hello World" | ||
|
||
|
||
def second_function_handler(event, context): | ||
return "Hello Mars" |
1 change: 1 addition & 0 deletions
1
...d/asset.6598609927b272b36fdf01072092f9851ddcd1b41ba294f736ce77091f5cc456/requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
numpy<1.20.4 |
Empty file.
Oops, something went wrong.