From d20a42aec84426790d99e2928d7240a19b930db8 Mon Sep 17 00:00:00 2001 From: Adrian Miranda Date: Wed, 22 Feb 2023 23:03:40 +0800 Subject: [PATCH 1/3] added self reference --- cdk/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdk/app.py b/cdk/app.py index 6905f25..cd4a94f 100644 --- a/cdk/app.py +++ b/cdk/app.py @@ -209,7 +209,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs): ) # App Mesh Configuration - # appmesh() + # self.appmesh() # All Outputs required for other stacks to build CfnOutput(self, "NSArn", value=self.namespace_outputs['ARN'], export_name="NSARN") From 919a775b5433c00ef220d806e623c62d0cbc12f0 Mon Sep 17 00:00:00 2001 From: Adrian Miranda Date: Thu, 23 Feb 2023 21:40:03 +0800 Subject: [PATCH 2/3] fixed self reference --- cdk/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdk/app.py b/cdk/app.py index cd4a94f..1c7186c 100644 --- a/cdk/app.py +++ b/cdk/app.py @@ -293,7 +293,7 @@ def appmesh(self): # image=ecs.ContainerImage.from_registry("amazon/aws-xray-daemon"), # logging=ecs.LogDriver.aws_logs( # stream_prefix='/xray-container', - # log_group=logGroup + # log_group=self.logGroup # ), # essential=True, # container_name="xray", From 4f9ef605f50e5f1533c970736f983022707d9ffd Mon Sep 17 00:00:00 2001 From: Adrian Miranda Date: Thu, 23 Feb 2023 21:42:37 +0800 Subject: [PATCH 3/3] fixed self reference --- cdk/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdk/app.py b/cdk/app.py index 1c7186c..f47af6b 100644 --- a/cdk/app.py +++ b/cdk/app.py @@ -345,7 +345,7 @@ def appmesh(self): self.mesh_gw_proxy_task_def.execution_role.add_managed_policy(iam.ManagedPolicy.from_aws_managed_policy_name("CloudWatchLogsFullAccess")) self.mesh_gw_proxy_task_def.task_role.add_managed_policy(iam.ManagedPolicy.from_aws_managed_policy_name("CloudWatchFullAccess")) - # mesh_gw_proxy_task_def.task_role.add_managed_policy(iam.ManagedPolicy.from_aws_managed_policy_name("AWSXRayDaemonWriteAccess")) + # self.mesh_gw_proxy_task_def.task_role.add_managed_policy(iam.ManagedPolicy.from_aws_managed_policy_name("AWSXRayDaemonWriteAccess")) self.mesh_gw_proxy_task_def.task_role.add_managed_policy(iam.ManagedPolicy.from_aws_managed_policy_name("AWSAppMeshEnvoyAccess")) self.mesh_gw_proxy_task_def.execution_role.add_to_policy(