Skip to content

Commit ad8d9cd

Browse files
authored
Merge pull request #89 from tschaffter/dev-to-stage
Merge dev into stage
2 parents adc4f86 + 7fb1317 commit ad8d9cd

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# get the environment
1818
environment = utils.get_environment()
1919
stack_name_prefix = f"openchallenges-{environment}"
20-
image_version = "1.1.2"
20+
image_version = "1.3.1"
2121

2222
# get VARS from cdk.json
2323
env_vars = app.node.try_get_context(environment)

openchallenges/data_integration_lambda.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def __init__(self, scope: Construct, id: str) -> None:
2828
def _build_lambda_role(self) -> iam.Role:
2929
return iam.Role(
3030
self,
31-
"LambdaRole",
31+
f"{id}-LambdaRole",
3232
assumed_by=iam.ServicePrincipal("lambda.amazonaws.com"),
3333
managed_policies=[
3434
iam.ManagedPolicy.from_aws_managed_policy_name(
@@ -51,7 +51,7 @@ def _build_lambda_function(self, role: iam.Role) -> lambda_.Function:
5151
"""
5252
return lambda_.DockerImageFunction(
5353
self,
54-
"LambdaFunction",
54+
f"{id}-LambdaFunction",
5555
code=lambda_.DockerImageCode.from_image_asset(
5656
# Directory relative to where you execute cdk deploy contains a
5757
# Dockerfile with build instructions.

openchallenges/data_integration_stack.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __init__(
4141
"""
4242
super().__init__(scope, id, **kwargs)
4343

44-
data_integration_lambda = DataIntegrationLambda(self, "data-integration-lambda")
44+
data_integration_lambda = DataIntegrationLambda(self, f"{id}-lambda")
4545

4646
target = scheduler_targets.LambdaInvoke(
4747
data_integration_lambda.lambda_function,
@@ -52,13 +52,13 @@ def __init__(
5252
# to this group the future)
5353
schedule_group = scheduler_alpha.Group(
5454
self,
55-
"group",
56-
group_name="schedule-group",
55+
f"{id}-schedule-group",
56+
group_name=f"{id}-schedule-group",
5757
)
5858

5959
scheduler_alpha.Schedule(
6060
self,
61-
"schedule",
61+
f"{id}-schedule",
6262
schedule=props.schedule,
6363
target=target,
6464
group=schedule_group,

0 commit comments

Comments
 (0)