Skip to content

Instantly share code, notes, and snippets.

@zackramjan
Created June 4, 2020 16:30
Show Gist options
  • Save zackramjan/a669b164b79e2e3d15acaf28d367fa96 to your computer and use it in GitHub Desktop.
Save zackramjan/a669b164b79e2e3d15acaf28d367fa96 to your computer and use it in GitHub Desktop.
#!/bin/bash
#PREFIX=awsgpfs
PREFIX=awsgpfs
echo creating account
mmcloudgateway account create --cloud-nodeclass tctnodeclass --account-name ${PREFIX} --cloud-type S3 --username AKIAZJ357KC6UJ6Y3RQK --pwd-file /tmp/cloudPW
mmcloudgateway account list
echo ----------------------------------------------
echo creating csap
#NO mmcloudgateway cloudStorageAccessPoint create --cloud-nodeclass tctnodeclass --cloud-storage-access-point-name ${PREFIX}accesspoint --account-name ${PREFIX} --url s3 --region us-east-2
#NO mmcloudgateway cloudStorageAccessPoint create --cloud-nodeclass tctnodeclass --cloud-storage-access-point-name ${PREFIX}accesspoint --account-name ${PREFIX} --url "https://s3-us-east-2.amazonaws.com" --region us-east-2
#NO mmcloudgateway cloudStorageAccessPoint create --cloud-nodeclass tctnodeclass --cloud-storage-access-point-name ${PREFIX}accesspoint --account-name ${PREFIX} --url s3
#WORKS mmcloudgateway cloudStorageAccessPoint create --cloud-nodeclass tctnodeclass --cloud-storage-access-point-name ${PREFIX}accesspoint --account-name ${PREFIX} --url "https://s3-us-east-2.amazonaws.com"
#WORKS mmcloudgateway cloudStorageAccessPoint create --cloud-nodeclass tctnodeclass --cloud-storage-access-point-name ${PREFIX}accesspoint --account-name ${PREFIX} --url "https://s3.amazonaws.com"
#WORKS mmcloudgateway cloudStorageAccessPoint create --cloud-nodeclass tctnodeclass --cloud-storage-access-point-name ${PREFIX}accesspoint --account-name ${PREFIX} --s3
#WORKS mmcloudgateway cloudStorageAccessPoint create --cloud-nodeclass tctnodeclass --cloud-storage-access-point-name ${PREFIX}accesspoint --account-name ${PREFIX} --s3 --region us-west-1
#NO (us-east-2 not recog) mmcloudgateway cloudStorageAccessPoint create --cloud-nodeclass tctnodeclass --cloud-storage-access-point-name ${PREFIX}accesspoint --account-name ${PREFIX} --s3 --region us-east-2
mmcloudgateway cloudStorageAccessPoint create --cloud-nodeclass tctnodeclass --cloud-storage-access-point-name ${PREFIX}accesspoint --account-name ${PREFIX} --s3 --region us-standard
mmcloudgateway cloudStorageAccessPoint list
echo ----------------------------------------------
echo creating cloudservice
mmcloudgateway cloudService create --cloud-nodeclass tctnodeclass --cloud-service-name ${PREFIX}cloudservice --cloud-service-type Tiering --account-name ${PREFIX}
mmcloudgateway cloudService list
echo creating container pairset
#NO mmcloudgateway containerpairset create --cloud-nodeclass tctnodeclass --container-pair-set-name ${PREFIX}container --cloud-service-name ${PREFIX}cloudservice --scope-to-filesystem --path /ibm/primary/tcttest --data-location https://s3-us-east-2.amazonaws.com --meta-location https://s3-us-east-2.amazonaws.com
#WORKS (But had to run this cmd twice?) mmcloudgateway containerpairset create --cloud-nodeclass tctnodeclass --container-pair-set-name ${PREFIX}container --cloud-service-name ${PREFIX}cloudservice --scope-to-filesystem --path /ibm/primary/tcttest --data-location us-west-1 --meta-location us-west-1
#NO (due to us-east-2 not recog) mmcloudgateway containerpairset create --cloud-nodeclass tctnodeclass --container-pair-set-name ${PREFIX}container --cloud-service-name ${PREFIX}cloudservice --scope-to-filesystem --path /ibm/primary/tcttest --data-location us-east-2 --meta-location us-east-2
#mmcloudgateway containerpairset create --cloud-nodeclass tctnodeclass --container-pair-set-name ${PREFIX}container --cloud-service-name ${PREFIX}cloudservice --scope-to-filesystem --path /ibm/primary/tcttest
mmcloudgateway containerpairset create --cloud-nodeclass tctnodeclass --container-pair-set-name ${PREFIX}container --cloud-service-name ${PREFIX}cloudservice --scope-to-filesystem --path /ibm/primary/tcttest --data-location us-standard --meta-location us-standard
mmcloudgateway containerpairset list
echo ----------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment