gcloud container aws clusters create (CLUSTER : --location=LOCATION) --aws-region=AWS_REGION --cluster-version=CLUSTER_VERSION --config-encryption-kms-key-arn=CONFIG_ENCRYPTION_KMS_KEY_ARN --database-encryption-kms-key-arn=DATABASE_ENCRYPTION_KMS_KEY_ARN --fleet-project=FLEET_PROJECT --iam-instance-profile=IAM_INSTANCE_PROFILE --pod-address-cidr-blocks=POD_ADDRESS_CIDR_BLOCKS --role-arn=ROLE_ARN --service-address-cidr-blocks=SERVICE_ADDRESS_CIDR_BLOCKS --subnet-ids=[SUBNET_ID,…] --vpc-id=VPC_ID [--admin-groups=[GROUP,…]] [--admin-users=USER,[USER,…]] [--annotations=ANNOTATION,[ANNOTATION,…]] [--async] [--binauthz-evaluation-mode=BINAUTHZ_EVALUATION_MODE] [--description=DESCRIPTION] [--disable-per-node-pool-sg-rules] [--enable-managed-prometheus] [--instance-type=INSTANCE_TYPE] [--logging=COMPONENT,[COMPONENT,…]] [--main-volume-iops=MAIN_VOLUME_IOPS] [--main-volume-kms-key-arn=MAIN_VOLUME_KMS_KEY_ARN] [--main-volume-size=MAIN_VOLUME_SIZE] [--main-volume-throughput=MAIN_VOLUME_THROUGHPUT] [--main-volume-type=MAIN_VOLUME_TYPE] [--role-session-name=ROLE_SESSION_NAME] [--root-volume-iops=ROOT_VOLUME_IOPS] [--root-volume-kms-key-arn=ROOT_VOLUME_KMS_KEY_ARN] [--root-volume-size=ROOT_VOLUME_SIZE] [--root-volume-throughput=ROOT_VOLUME_THROUGHPUT] [--root-volume-type=ROOT_VOLUME_TYPE] [--security-group-ids=[SECURITY_GROUP_ID,…]] [--ssh-ec2-key-pair=SSH_EC2_KEY_PAIR] [--tags=TAG,[TAG,…]] [--validate-only] [--proxy-secret-arn=PROXY_SECRET_ARN --proxy-secret-version-id=PROXY_SECRET_VERSION_ID] [GCLOUD_WIDE_FLAG …]
(DEPRECATED) Create an Anthos cluster on AWS.
This command is deprecated. See https://cloud.google.com/kubernetes-engine/multi-cloud/docs/aws/deprecations/deprecation-announcement
for more details.
my-cluster
managed in location us-west1, run:
gcloud container aws clusters create my-cluster --location=us-west1 --aws-region=AWS_REGION --cluster-version=CLUSTER_VERSION --database-encryption-kms-key-arn=KMS_KEY_ARN --iam-instance-profile=IAM_INSTANCE_PROFILE --pod-address-cidr-blocks=POD_ADDRESS_CIDR_BLOCKS --role-arn=ROLE_ARN --service-address-cidr-blocks=SERVICE_ADDRESS_CIDR_BLOCKS --subnet-ids=SUBNET_ID --vpc-id=VPC_ID
To set the project attribute:
cluster on the command line with a fully
specified name;
--project on the command line;
core/project.
CLUSTER
To set the cluster attribute:
cluster on the command line.
--location=LOCATIONlocation attribute:
cluster on the command line with a fully
specified name;
--location on the command line;
container_aws/location.
--aws-region=AWS_REGION--cluster-version=CLUSTER_VERSION--config-encryption-kms-key-arn=CONFIG_ENCRYPTION_KMS_KEY_ARN--database-encryption-kms-key-arn=DATABASE_ENCRYPTION_KMS_KEY_ARN--fleet-project=FLEET_PROJECT--iam-instance-profile=IAM_INSTANCE_PROFILE--pod-address-cidr-blocks=POD_ADDRESS_CIDR_BLOCKS--role-arn=ROLE_ARN--service-address-cidr-blocks=SERVICE_ADDRESS_CIDR_BLOCKS--subnet-ids=[SUBNET_ID,…]--vpc-id=VPC_ID--admin-groups=[GROUP,…]--admin-users=USER,[USER,…]--annotations=ANNOTATION,[ANNOTATION,…]--async--binauthz-evaluation-mode=BINAUTHZ_EVALUATION_MODEBINAUTHZ_EVALUATION_MODE must be one of:
DISABLED, PROJECT_SINGLETON_POLICY_ENFORCE.
--description=DESCRIPTION--disable-per-node-pool-sg-rules--enable-managed-prometheusSee https://cloud.google.com/stackdriver/docs/managed-prometheus/setup-managed#enable-mgdcoll-gke for more info.
Managed Prometheus is enabled by default for cluster versions 1.27 or greater, use --no-enable-managed-prometheus to disable.--instance-type=INSTANCE_TYPE--logging=COMPONENT,[COMPONENT,…]Examples:
gcloud container aws clusters create --logging=SYSTEMgcloud container aws clusters create --logging=SYSTEM,WORKLOAD
COMPONENT must be one of: SYSTEM,
WORKLOAD.
--main-volume-iops=MAIN_VOLUME_IOPS--main-volume-kms-key-arn=MAIN_VOLUME_KMS_KEY_ARN--main-volume-size=MAIN_VOLUME_SIZEGB for gigabyte, or TB for terabyte. If no
size unit is specified, GB is assumed.
--main-volume-throughput=MAIN_VOLUME_THROUGHPUT--main-volume-type=MAIN_VOLUME_TYPEMAIN_VOLUME_TYPE must be one
of: gp2, gp3.
--role-session-name=ROLE_SESSION_NAME--root-volume-iops=ROOT_VOLUME_IOPS--root-volume-kms-key-arn=ROOT_VOLUME_KMS_KEY_ARN--root-volume-size=ROOT_VOLUME_SIZEGB for gigabyte, or TB for terabyte. If no
size unit is specified, GB is assumed.
--root-volume-throughput=ROOT_VOLUME_THROUGHPUT--root-volume-type=ROOT_VOLUME_TYPEROOT_VOLUME_TYPE must be one
of: gp2, gp3.
--security-group-ids=[SECURITY_GROUP_ID,…]--ssh-ec2-key-pair=SSH_EC2_KEY_PAIR--tags=TAG,[TAG,…]gcloud container aws clusters create EXAMPLE_CLUSTER --tags=tag1=one,tag2=two--validate-only--proxy-secret-arn=PROXY_SECRET_ARN--proxy-secret-version-id=PROXY_SECRET_VERSION_ID--access-token-file,
--account, --billing-project,
--configuration,
--flags-file,
--flatten, --format, --help, --impersonate-service-account,
--log-http,
--project, --quiet, --trace-token, --user-output-enabled,
--verbosity.
Run $ gcloud help for details.
gcloud alpha container aws clusters create
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.