This file contains hidden or 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
import base64 | |
import boto3 | |
from botocore.exceptions import ClientError | |
from git import Actor, Repo | |
import json | |
import os | |
def handler(event, context): | |
print('request: {}'.format(json.dumps(event))) |
This file contains hidden or 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
import {Duration, Stack, StackProps} from "aws-cdk-lib"; | |
import {Construct} from "constructs"; | |
import {Repository} from "aws-cdk-lib/aws-ecr"; | |
import {Function, LayerVersion, Runtime} from "aws-cdk-lib/aws-lambda"; | |
import {ArnPrincipal, Effect, ManagedPolicy, PolicyStatement} from "aws-cdk-lib/aws-iam"; | |
import {PythonFunction} from "@aws-cdk/aws-lambda-python-alpha"; | |
import {DockerImageAsset} from "aws-cdk-lib/aws-ecr-assets"; | |
import * as path from "path"; | |
import * as ecrdeploy from 'cdk-ecr-deployment'; | |
import {Secret} from "aws-cdk-lib/aws-secretsmanager"; |