Skip to content

Commit 256ba62

Browse files
committed
3.0: Remove ddb to store config hash logic
Signed-off-by: Yulei Wang <yuleiwan@amazon.com>
1 parent 5b193af commit 256ba62

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

recipes/head_node_slurm_config.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,6 @@
8181
retry_delay 5
8282
end
8383

84-
execute 'initialize cluster config hash in DynamoDB' do
85-
command "#{node['cluster']['cookbook_virtualenv_path']}/bin/aws dynamodb put-item --table-name #{node['cluster']['ddb_table']}"\
86-
" --item '{\"Id\": {\"S\": \"CLUSTER_CONFIG_WITH_IMPLIED_VALUES\"}, \"Version\": {\"S\": \"#{node['cluster']['cluster_config_version']}\"}}' --region #{node['cluster']['region']}"
87-
retries 3
88-
retry_delay 5
89-
not_if { node['cluster']['cluster_config_version'].nil? }
90-
end
91-
9284
execute 'initialize compute fleet status in DynamoDB' do
9385
# Initialize the status of the compute fleet in the DynamoDB table. Set it to RUNNING.
9486
command "#{node['cluster']['cookbook_virtualenv_path']}/bin/aws dynamodb put-item --table-name #{node['cluster']['ddb_table']}"\

recipes/update_head_node_slurm.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,3 @@
6363
command "cp #{updated_cluster_config_path} #{node['cluster']['cluster_config_path']}"
6464
end
6565
end
66-
67-
execute 'update cluster config hash in DynamoDB' do
68-
command "#{node['cluster']['cookbook_virtualenv_path']}/bin/aws dynamodb put-item --table-name #{node['cluster']['ddb_table']}"\
69-
" --item '{\"Id\": {\"S\": \"CLUSTER_CONFIG_WITH_IMPLIED_VALUES\"}, \"Version\": {\"S\": \"#{node['cluster']['cluster_config_version']}\"}}' --region #{node['cluster']['region']}"
70-
retries 3
71-
retry_delay 5
72-
not_if { node['cluster']['cluster_config_version'].nil? }
73-
end

0 commit comments

Comments
 (0)