Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move to CDK v2, add test for prod and beta pipeline #119

Open
wants to merge 1 commit into
base: mainline
Choose a base branch
from

Conversation

ltn7130
Copy link

@ltn7130 ltn7130 commented Nov 16, 2022

I refactored most of the code files to migrate to CDK v2, I also added tests for beta and prod in Pipeline.py

pycodestyle==2.8.0
pycparser==2.20
pyparsing==3.0.7
pytest==7.0.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like removing this broke the pytest github action

Comment on lines -116 to +136
'RegisterVisitLambda',
function_name=core.PhysicalName.GENERATE_IF_NEEDED,
'HelloHandler',
function_name=PhysicalName.GENERATE_IF_NEEDED,
code=aws_lambda.Code.from_asset('visit/lambda_code/log_visit'),
environment={
'ORIGINAL_TABLE_NAME': original_table_name,
'DOMAIN_NAME': domain_name,
'VISITS_TABLE_NAME': visits_table_name,
'USERS_TABLE_NAME': users_table_name,
},
handler='log_visit.handler',
runtime=aws_lambda.Runtime.PYTHON_3_9)
handler = 'hello.handler',
runtime=aws_lambda.Runtime.PYTHON_3_7)
# self, 'HelloHandler',
# code = aws_lambda.Code.from_asset('lambda'),
# handler = 'hello.handler',
# self.lambda_visit.role.add_to_policy(sending_authorization_policy)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These seem like erroneous changes

@Mjtlittle Mjtlittle added the pr: stale PR is either old or needs further attention before merging label Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: stale PR is either old or needs further attention before merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants