您可以通过 AWS CLI 编辑 AWS 资源的 "name" 属性吗?

Can you edit the "name" attribute for AWS resources via the AWS CLI?

在 AWS 控制台中,我可以编辑不同资源(例如 EC2 实例、VPC 资源等)的名称属性,但是可以通过 CLI/SDK?

修改此名称属性吗

是的,它只是一个标签。确保您使用的是 Name(大写)

示例

aws ec2 create-tags --resources "vpc-xxxxxxxxx" --tags Key=Name,Value=something-other-than-default