Skip to content

Commit

Permalink
feat: add ecr endpoint to vpc (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
smohiudd authored Oct 15, 2024
1 parent 93466b1 commit a226793
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions network/infrastructure/construct.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ def __init__(
"cloudwatch-logs": aws_ec2.InterfaceVpcEndpointAwsService.CLOUDWATCH_LOGS,
"s3": aws_ec2.GatewayVpcEndpointAwsService.S3,
"dynamodb": aws_ec2.GatewayVpcEndpointAwsService.DYNAMODB,
"ecr": aws_ec2.InterfaceVpcEndpointAwsService.ECR,
"ecr-docker": aws_ec2.InterfaceVpcEndpointAwsService.ECR_DOCKER,
"sts": aws_ec2.InterfaceVpcEndpointAwsService.STS,
}

for id, service in vpc_endpoints.items():
Expand Down
3 changes: 3 additions & 0 deletions standalone_base_infrastructure/network_construct.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ def __init__(
"cloudwatch-logs": aws_ec2.InterfaceVpcEndpointAwsService.CLOUDWATCH_LOGS,
"s3": aws_ec2.GatewayVpcEndpointAwsService.S3,
"dynamodb": aws_ec2.GatewayVpcEndpointAwsService.DYNAMODB,
"ecr": aws_ec2.InterfaceVpcEndpointAwsService.ECR, # allows airflow to pull task images
"ecr-docker": aws_ec2.InterfaceVpcEndpointAwsService.ECR_DOCKER, # allows airflow to pull task images
"sts": aws_ec2.InterfaceVpcEndpointAwsService.STS, # allows airflow tasks to assume access roles
}

for id, service in vpc_endpoints.items():
Expand Down

0 comments on commit a226793

Please sign in to comment.