pulumi_wasm_providers_aws_mini::ec2

Module default_vpc

source
Expand description

Provides a resource to manage the default AWS VPC in the current AWS Region.

If you created your AWS account after 2013-12-04 you have a default VPC in each AWS Region.

This is an advanced resource and has special caveats to be aware of when using it. Please read this document in its entirety before using this resource.

The aws.ec2.DefaultVpc resource behaves differently from normal resources in that if a default VPC exists, this provider does not create this resource, but instead “adopts” it into management. If no default VPC exists, the provider creates a new default VPC, which leads to the implicit creation of other resources. By default, pulumi destroy does not delete the default VPC but does remove the resource from the state. Set the force_destroy argument to true to delete the default VPC.

§Example Usage

Basic usage with tags:

resources:
  default:
    type: aws:ec2:DefaultVpc
    properties:
      tags:
        Name: Default VPC

§Import

Using pulumi import, import Default VPCs using the VPC id. For example:

$ pulumi import aws:ec2/defaultVpc:DefaultVpc default vpc-a01106c2

Structs§

Functions§

  • Registers a new resource with the given unique name and arguments