我已经通过 AWS PHP SDK 成功创建了 VPC。但是,无论如何我都看不到将 VPC 作为给定区域的默认 VPC。
视觉的:
当我使用下面的代码时,所有 VPC 都默认为false。
创建 VPC 的代码
$result = $client->createVpc(array(
'DryRun' => true || false,
// CidrBlock is required
'CidrBlock' => 'string',
'InstanceTenancy' => 'string',
));
希望这可以让我改变,但不
$result = $client->modifyVpcAttribute(array(
// VpcId is required
'VpcId' => 'string',
'EnableDnsSupport' => array(
'Value' => true || false,
),
'EnableDnsHostnames' => array(
'Value' => true || false,
),
));
任何想法或想法如何将 Vpc 设置为默认值?我也检查了 AWS-CLI,它没有这样做的选项。