Amazon web services AWS控制台中不显示计算环境

Amazon web services AWS控制台中不显示计算环境,amazon-web-services,boto3,aws-batch,Amazon Web Services,Boto3,Aws Batch,通过boto3创建的计算环境不会显示在AWS控制台中。我可以在批处理\u客户端中看到它们。请描述\u计算\u环境()调用响应: { 'computeEnvironmentName': 'name', 'computeEnvironmentArn': 'arn:aws:batch:us-east-1:<ID>:compute-environment/ml-retraining-compute-env-second', 'ecsClusterArn': 'arn:aws:ec

通过boto3创建的计算环境不会显示在AWS控制台中。我可以在批处理\u客户端中看到它们。请描述\u计算\u环境()调用响应:

{
  'computeEnvironmentName': 'name',
  'computeEnvironmentArn': 'arn:aws:batch:us-east-1:<ID>:compute-environment/ml-retraining-compute-env-second',
  'ecsClusterArn': 'arn:aws:ecs:us-east-1:<ID>:cluster/ml-retraining-compute-env-second_Batch_b18fcd09-8d7e-351b-bc0f-13ffa83a6b15',
  'type': 'MANAGED',
  'state': 'ENABLED',
  'status': 'INVALID',
  'statusReason': "CLIENT_ERROR - The security group 'sg-2436d85c' does not exist",
  'computeResources': {
    'type': 'EC2',
    'minvCpus': 0,
    'maxvCpus': 512,
    'desiredvCpus': 24,
    'instanceTypes': [
      'optimal'
    ],
    'subnets': [
      'subnet-fa22de86'
    ],
    'securityGroupIds': [
      'sg-2436d85c'
    ],
    'instanceRole': 'arn:aws:iam::<ID>:instance-profile/ecsInstanceRole',
    'tags': {
      'component': 'ukai-training-pipeline',
      'product': 'Cormorant',
      'jira_project_team': 'CORPRJ',
      'business_unit': 'Threat Systems Products',
      'created_by': 'ml-pipeline'
    }
  },
  'serviceRole': 'arn:aws:iam::<ID>:role/AWSBatchServiceRole'
}
ERROR - Error setting compute environment: An error occurred
(ClientException) when calling   the CreateComputeEnvironment operation: Object already exists.

根据评论,问题在于控制台中不同区域的使用


解决方案是更改区域。

也许您在控制台中设置了不同的区域?是的,绝对正确,@Marcin。谢谢!没问题。如果你不介意的话,我添加了一个答案供将来参考。