Ada lebih banyak contoh AWS SDK yang tersedia di repo Contoh SDK AWS Doc
Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.
Gunakan DeleteFargateProfile
dengan CLI
Contoh kode berikut menunjukkan cara menggunakanDeleteFargateProfile
.
- AWS CLI
-
Contoh 1: Buat Profil EKS Fargate untuk pemilih dengan namespace
delete-fargate-profile
Contoh berikut membuat Profil EKS Fargate untuk pemilih dengan namespace.aws eks delete-fargate-profile \ --cluster-name
my-eks-cluster
\ --fargate-profile-namemy-fargate-profile
Output:
{ "fargateProfile": { "fargateProfileName": "my-fargate-profile", "fargateProfileArn": "arn:aws:eks:us-east-2:111122223333:fargateprofile/my-eks-cluster/my-fargate-profile/1ac72bb3-3fc6-2631-f1e1-98bff53bed62", "clusterName": "my-eks-cluster", "createdAt": "2024-03-19T11:48:39.975000-04:00", "podExecutionRoleArn": "arn:aws:iam::111122223333:role/role-name", "subnets": [ "subnet-09d912bb63ef21b9a", "subnet-04ad87f71c6e5ab4d", "subnet-0e2907431c9988b72" ], "selectors": [ { "namespace": "default", "labels": { "foo": "bar" } } ], "status": "DELETING", "tags": {} } }
Untuk informasi selengkapnya, lihat Profil AWS Fargate - Menghapus Fargate di Panduan Pengguna Amazon EKS.
-
Untuk detail API, lihat DeleteFargateProfile
di Referensi AWS CLI Perintah.
-