Skip to content

Commit ff4758e

Browse files
author
Eldyn Castillo
committed
added cdk environment for variables, again
1 parent 7bd7837 commit ff4758e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

python/appmesh-ecs/app.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import aws_cdk as cdk
55
from core_infrastructure.ecs.ecs_stack import ECSStack
66
from core_infrastructure.appmesh.appmesh_stack import AppMeshStack
7-
87
from core_infrastructure.ecr.ecr_stack import ECRStack
98
from task_definitions.color_app_task_definition_stack import ColorAppTaskDefinitionStack
109
from colorapp.appmesh_colorapp import ServiceMeshColorAppStack
@@ -16,8 +15,8 @@
1615
appmesh_colorapp_stack = ServiceMeshColorAppStack(app, "AppmeshColorappStack")
1716

1817
colorapp_task_definition_stack = ColorAppTaskDefinitionStack(app, "ColorAppTaskDefinitionStack",env=cdk.Environment(
19-
account=cdk.Aws.ACCOUNT_ID,
20-
region=cdk.Aws.REGION
18+
account=os.getenv('CDK_DEFAULT_ACCOUNT'),
19+
region=os.getenv('CDK_DEFAULT_REGION')
2120
))
2221

2322
appmesh_stack.add_dependency(ecs_stack)

0 commit comments

Comments
 (0)