Basicamente um shell script para fazer o trabalho, onde:
for key in `aws s3 ls --recursive s3://{bucket}/{caminho} | awk '{ print $4}'`;
do echo "==> $key";
aws s3api restore-object --bucket {bucket} --key $key --restore-request '{"Days": 1}';
done
Nele você vai passar o nome do bucket e o caminho como parâmetros, e aí o for vai se encarregar de carregar todos objetos através do loop, pega o que precisamos e através da variável $key utilizando o aws s3api, é feita a requisição de restore
Para acompanhar como anda o restore, basta seguir esta documentação da AWS -> How can I restore an S3 object from the Amazon S3 Glacier storage class using the AWS CLI?
cya! 🎶🎶🎶
| Todas Tags |
| Cheats |
16
|
| DevOps |
15
|
| MacOS |
7
|
| Shell |
6
|
| Continuous Learning |
5
|
| Automation |
4
|
| Git |
4
|
| Azure |
3
|
| Managed Services |
3
|
| Pensamentos |
3
|
| PowerShell |
3
|
| AppleScript |
2
|
| Aws |
2
|
| ITIL |
2
|
| Microservices |
2
|
| PlatformEngineer |
2
|
| SRE |
2
|
| Webserver |
2
|
| Ansible |
1
|
| Apple |
1
|
| Billing |
1
|
| Brokerage |
1
|
| Cloud Computing |
1
|
| CloudOps |
1
|
| Containers |
1
|
| Continuos Learning |
1
|
| DevSecOps |
1
|
| Docker |
1
|
| Engineering |
1
|
| Github |
1
|
| Gitlab |
1
|
| Google Script |
1
|
| Hugo |
1
|
| Internet |
1
|
| Kubernetes |
1
|
|
1
|
| Markdown |
1
|
| Nginx |
1
|
| Observabilidade |
1
|
| OpenSSL |
1
|
| Proxy Pass |
1
|
| Serverless |
1
|
| Sysadmin |
1
|
| Terraform |
1
|