Skip to content

Commit f8843d0

Browse files
author
Rodrigo Tassinari de Oliveira
committed
Nome do snapshot não pode conter underscore.
1 parent c149e66 commit f8843d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tasks/aws_deploy.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ namespace :aws_deploy do
134134
def aws_rds_create_snapshot
135135
db_name = AwsDeploy.configuration.rds_instance_identifier
136136
raise "Invalid RDS DB instance name" if (db_name.nil? || db_name == '')
137-
snapshot_name = "#{db_name}_#{Time.now.utc.strftime('%Y-%m-%d-%H-%M-%S-%Z')}"
137+
snapshot_name = "#{db_name}-#{Time.now.utc.strftime('%Y%m%d%H%M%S%Z')}"
138138
aws_inform "Criando novo snapshot do banco '#{db_name}' com nome '#{snapshot_name}'..."
139139
aws_run "rds-create-db-snapshot #{db_name} --db-snapshot-identifier #{snapshot_name}"
140140
snapshot_name

0 commit comments

Comments
 (0)