Skip to content
Permalink
Browse files

awscli aging differently cross platform

  • Loading branch information
Jim Van Fleet
Jim Van Fleet committed Sep 6, 2016
1 parent 3bd3d94 commit 3c79a6cf5d2801ed64e8e975b645921981ed4ba0
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/perms.sh
@@ -2,8 +2,8 @@

aws_acct_id="823003027569"
bucket="internet2-tier-appliance-us-west-1"
vagrant_key=$(aws s3api list-objects-v2 --bucket $bucket --query 'reverse(sort_by(Contents[?contains(Key, `vagrant`)], &LastModified))[0].[Key]' --output text | tr -d '\n' )
ova_key=$(aws s3api list-objects-v2 --bucket $bucket --query 'reverse(sort_by(Contents[?contains(Key, `ova`)], &LastModified))[0].[Key]' --output text | tr -d '\n' )
vagrant_key=$(aws s3api list-objects --bucket $bucket --query 'reverse(sort_by(Contents[?contains(Key, `vagrant`)], &LastModified))[0].[Key]' --output text | tr -d '\n' )
ova_key=$(aws s3api list-objects --bucket $bucket --query 'reverse(sort_by(Contents[?contains(Key, `ova`)], &LastModified))[0].[Key]' --output text | tr -d '\n' )

echo "Found $vagrant_key"
aws s3api put-object-acl --bucket $bucket --key $vagrant_key --acl public-read

0 comments on commit 3c79a6c

Please sign in to comment.
You can’t perform that action at this time.