기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.
글로벌 데이터 저장소 사용(CLI)
AWS Command Line Interface(AWS CLI)를 사용하면 명령줄에서 여러 AWS 서비스를 관리하고 스크립트를 통해 자동화할 수 있습니다. 임시(일회성) 작업에 AWS CLI를 사용할 수 있습니다.
AWS CLI 다운로드 및 구성
AWS CLI는 Windows, macOS 또는 Linux에서 실행됩니다. 다음 절차에 따라 다운로드 및 구성합니다.
CLI를 다운로드, 설치 및 구성하려면
-
AWS Command Line Interface
웹 페이지에서 AWS CLI를 다운로드합니다. -
AWS Command Line Interface 사용 설명서의 AWS CLI 설치 및 AWS CLI 구성 지침을 따릅니다.
글로벌 데이터 스토어에 AWS CLI 사용
글로벌 데이터 스토어를 사용하려면 다음 CLI 작업을 사용합니다.
-
create-global-replication-group
aws elasticache create-global-replication-group \ --global-replication-group-id-suffix
my global datastore
\ --primary-replication-group-idsample-repl-group
\ --global-replication-group-descriptionan optional description of the global datastore
Amazon ElastiCache는 글로벌 데이터 스토어를 생성할 때 자동으로 ID에 접두사를 적용합니다. AWS 리전에는 고유한 접두사가 있습니다. 예를 들어 미국 서부(캘리포니아 북부) 리전에서 생성된 글로벌 데이터 스토어 ID는 사용자가 제공한 접미사 이름과 함께 ‘virxk’로 시작합니다. 접미사는 자동으로 생성된 접두사와 결합되어 여러 리전에서 글로벌 데이터 스토어 이름의 고유성을 보장합니다.
다음 표에는 AWS 리전 및 해당 글로벌 데이터 스토어 ID 접두사가 나와 있습니다.
리전 이름/리전 Prefix 미국 동부(오하이오) 리전
us-east-2
fpkhr
리전 - 미국 동부(버지니아 북부)
us-east-1
ldgnf
미국 서부(캘리포니아 북부) 리전
us-west-1
virxk
미국 서부(오레곤) 리전
us-west-2
sgaui
캐나다(중부) 리전
ca-central-1
bxodz
아시아 태평양(뭄바이) 리전
ap-south-1
erpgt
Asia Pacific (Tokyo) Region
ap-northeast-1
quwsw
아시아 태평양(서울) 리전
ap-northeast-2
lfqnh
아시아 태평양(오사카) 리전
ap-northeast-3
nlapn
Asia Pacific (Singapore) Region
ap-southeast-1
vlqxn
아시아 태평양(시드니) 리전
ap-southeast-2
vbgxd
유럽(프랑크푸르트) 리전
eu-central-1
iudkw
Europe (Ireland) Region
eu-west-1
gxeiz
유럽(런던) 리전
eu-west-2
okuqm
EU(파리) 리전
eu-west-3
fgjhi
남아메리카(상파울루) 리전
sa-east-1
juxlw
중국(베이징) 리전
cn-north-1
emvgo
중국(닝샤) 리전
cn-northwest-1
ckbem
아시아 태평양(홍콩) 리전
ap-east-1
knjmp
AWS GovCloud(미국 서부)
us-gov-west-1
sgwui
-
create-replication-group - 이 작업을 사용하여 글로벌 데이터 스토어의 이름을
--global-replication-group-id
파라미터에 제공하여 글로벌 데이터 스토어에 대한 보조 클러스터를 생성합니다.aws elasticache create-replication-group \ --replication-group-id
secondary replication group name
\ --replication-group-description“Replication group description"
\ --global-replication-group-idglobal datastore name
이 작업을 호출하고
--global-replication-group-id
값으로 전달하면 ElastiCache for Redis에서 다음 파라미터에 대한 글로벌 복제 그룹의 기본 복제 그룹에서 값을 추론합니다. 다음 파라미터에 대한 값을 전달하지 마십시오."PrimaryClusterId",
"AutomaticFailoverEnabled",
"NumNodeGroups",
"CacheParameterGroupName",
"CacheNodeType",
"Engine",
"EngineVersion",
"CacheSecurityGroupNames",
"EnableTransitEncryption",
"AtRestEncryptionEnabled",
"SnapshotArns",
"SnapshotName"
-
describe-global-replication-groups
aws elasticache describe-global-replication-groups \ --global-replication-group-id
my global datastore
\ --show-member-infoan optional parameter that returns a list of the primary and secondary clusters that make up the global datastore
-
modify-global-replication-group
aws elasticache modify-global-replication-group \ --global-replication-group-id
my global datastore
\ --automatic-failover-enabled \ --cache-node-typenode type
\ --cache-parameter-group-nameparameter group name
\ --engine-versionengine version
\ -—apply-immediately \ --global-replication-group-descriptiondescription
-
delete-global-replication-group
aws elasticache delete-global-replication-group \ --global-replication-group-id
my global datastore
\ --retain-primary-replication-groupdefaults to true
-
disassociate-global-replication-group
aws elasticache disassociate-global-replication-group \ --global-replication-group-id
my global datastore
\ --replication-group-idmy secondary cluster
\ --replication-group-regionthe AWS Region in which the secondary cluster resides
-
failover-global-replication-group
aws elasticache failover-replication-group \ --global-replication-group-id
my global datastore
\ --primary-regionThe AWS Region of the primary cluster
\ --primary-replication-group-idThe name of the global datastore, including the suffix.
-
increase-node-groups-in-global-replication-group
aws elasticache increase-node-groups-in-global-replication-group \ --apply-immediately
yes
\ --global-replication-group-idglobal-replication-group-name
\ --node-group-count3
-
decrease-node-groups-in-global-replication-group
aws elasticache decrease-node-groups-in-global-replication-group \ --apply-immediately
yes
\ --global-replication-group-idglobal-replication-group-name
\ --node-group-count3
-
rebalance-shards-in-global-replication-group
aws elasticache rebalance-shards-in-global-replication-group \ --apply-immediately
yes
\ --global-replication-group-idglobal-replication-group-name
도움말을 사용하여 사용 가능한 모든 ElastiCache for Redis 명령을 나열합니다.
aws elasticache help
도움말을 사용하면 특정 명령을 설명하고 그 사용법에 대해 자세히 알아볼 수도 있습니다.
aws elasticache create-global-replication-group help