Skip to content

Commit a39a002

Browse files
author
Dexter Lee
committed
Clean up unused code
1 parent bea1e03 commit a39a002

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

templates/datahub-infra-deployment.yaml

+3-11
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@ Resources:
447447
Description: 'Role for ES to access resources in my VPC'
448448

449449
RDSSecret:
450+
Condition: isCreateMySQL
450451
Type: AWS::SecretsManager::Secret
451452
Properties:
452453
Description: Secrets for RDS
@@ -461,6 +462,7 @@ Resources:
461462
Value: "true"
462463

463464
ESSecret:
465+
Condition: isCreateElasticSearch
464466
Type: AWS::SecretsManager::Secret
465467
Properties:
466468
Description: Secrets for RDS
@@ -564,6 +566,7 @@ Resources:
564566
Type: AWS::CloudFormation::Stack
565567
DependsOn:
566568
- VPCStack
569+
- ESServiceRole
567570
Properties:
568571
Tags:
569572
- Key: Name
@@ -750,17 +753,6 @@ Resources:
750753
ESMasterUserPassword:
751754
Fn::Sub: "{{resolve:secretsmanager:${ESSecret}::password}}"
752755

753-
# PrivateLinkStack:
754-
# Type: AWS::CloudFormation::Stack
755-
# DependsOn:
756-
# - AdminStack
757-
# Properties:
758-
# Tags:
759-
# - Key: Name
760-
# Value: !Sub "${AWS::StackName}"
761-
# - Key: Component
762-
# Value: !Sub "${AWS::StackName}-PrivateLink"
763-
# TemplateURL: !Sub "https://${TemplateBucketName}.s3.amazonaws.com/${TemplateBucketKeyPrefix}/templates/nested/privatelink.yaml"
764756

765757
Outputs:
766758
# VPC stack

0 commit comments

Comments
 (0)