Skip to content

Commit 4ee89aa

Browse files
authored
Make EncryptionKey optional in Neptune CloudFormation template (#663)
* Make EncryptionKey optional in Neptune CloudFormation template * update changelog
1 parent 42f2f0c commit 4ee89aa

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Starting with v1.31.6, this file will contain a record of major features and upd
55
## Upcoming
66

77
- Removed unused options from `%load`([Link to PR](https://github.com/aws/graph-notebook/pull/662))
8+
- Made EncryptionKey optional in Neptune CloudFormation template ([Link to PR](https://github.com/aws/graph-notebook/pull/663))
89

910
## Release 4.5.1 (July 31, 2024)
1011

additional-databases/sagemaker/neptune-notebook-cloudformation/neptune-workbench-stack.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ Conditions:
101101
Fn::Equals:
102102
- !Ref SageMakerNotebookRoleArn
103103
- ""
104+
UseEncryptionKey:
105+
Fn::Not:
106+
- Fn::Equals:
107+
- Ref: EncryptionKey
108+
- ""
104109

105110
Resources:
106111
NeptuneNotebookInstance:
@@ -133,7 +138,10 @@ Resources:
133138
- Key: aws-neptune-resource-id
134139
Value: !Ref NeptuneClusterResourceId
135140
KmsKeyId:
136-
Ref: EncryptionKey
141+
Fn::If:
142+
- UseEncryptionKey
143+
- Ref: EncryptionKey
144+
- Ref: AWS::NoValue
137145

138146
NeptuneNotebookInstanceLifecycleConfig:
139147
Type: AWS::SageMaker::NotebookInstanceLifecycleConfig

0 commit comments

Comments
 (0)