Create a presigned S3 download URL
Create a download link that works for 1 hour, without making the object public
aws s3 presign s3://<name>/path/file.tgz --expires-in 3600
- tool
- aws14 commands
More aws commands
-
aws eks update-kubeconfig --name <cluster> --region <id> --alias <cluster> --kubeconfig ~/.kube/configAdd or refresh an EKS context with a short alias instead of the long ARN
-
aws ecr get-login-password --region <id> | docker login --username AWS --password-stdin <id>.dkr.ecr.<id>.amazonaws.comLog Docker in to ECR through stdin, so the token does not end up in shell history
-
aws ssm start-session --target i-<id> --region <id>Open an interactive shell on an instance without an open port 22 or a bastion
-
aws logs tail /aws/lambda/<name> --follow --since 10m --format shortStream a log group like tail -f. Much easier than polling with filter-log-events
-
aws iam simulate-principal-policy --policy-source-arn <id> --action-names s3:GetObject --resource-arns <id> --query 'EvaluationResults[].{action:EvalActionName,decision:EvalDecision}' --output tableCheck if a principal can do an action before you grant access. Shows allow or deny